Use a preGoal in maven.xml:
preGoal name=test:test
ant:delete
ant:fileset dir=. includes=*.tmp /
/ant:delete
/preGoal
HTH,
-Lukas
laredotornado wrote:
Hi,
I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I
can run maven test:test to execute all of
There is no way to do that in maven 1.x (and for a good reason). See
http://maven.apache.org/maven-1.x/using/managing-dependencies.html#Using_SNAPSHOT_Dependencies
HTH,
-Lukas
laredotornado wrote:
Hi,
I'm using Maven 1.1. I have this dependency in my test/project.xml file ...
Hello,
I have a Maven installed in a linux Server and there is the local
repository.
Then I have my Eclipse in a Windows system.
How can I configure m2eclipse in order to search inside the linux
repository?
Thanks a lot.
-
You should specify the repository location either in your pom.xml or in
settings like that:
repository
idmaven2-repository.dev.java.net/id
nameJava.net Repository for Maven/name
urlhttp://download.java.net/maven/2//url
/repository
Adapt basing on your environment.
Regards,
Valentin
But I want (if it is possible) to configure it in Eclipse options, not in
the POM file because then I have to modify every project.
After installing m2Eclipse a new Maven option is created inside
Window--Preferences.
If I go to Maven Installations, I have to select where my Maven is installed
Hi all,
Well, I tried to find a clear title. But it wasn't so simple :-). So I'll
describe my question below.
This is more a best practice question than a feasibility one. In fact, we
already use but feel not sure if this is correct.
We have a multimodule project that contains some modules.
Or not :(
Here is the case layout (with Maven 2.0.10):
nuxeo-distribution/
|-- nuxeo-distribution-jboss/
|-- ...
Running from root module (nuxeo-distribution), default classifier of a
sub-module is deployed with a unique version:
Uploading:
But I want (if it is possible) to configure it in Eclipse options, not in
the POM file because then I have to modify every project.
Put the repository in the settings.xml of maven instead of the pom and it
will be set for your general maven setup not only for one project. From the
maven doc:
You
Have you tried configuring mirror to user's settings.xml
- http://maven.apache.org/settings.html#Mirrors
On Wed, Nov 4, 2009 at 12:02 PM, Exposito Aguilera, Francisco
francisco.expos...@es.issworld.com wrote:
But I want (if it is possible) to configure it in Eclipse options, not in
the POM
Hi,
Baptiste MATHUS wrote at Mittwoch, 4. November 2009 11:06:
Hi all,
Well, I tried to find a clear title. But it wasn't so simple :-). So I'll
describe my question below.
This is more a best practice question than a feasibility one. In fact, we
already use but feel not sure if this is
Hello Maven users,
By this
guidehttp://maven.apache.org/guides/mini/guide-central-repository-upload.htmlit
seems to be forbidden to upload artifacts to central with POMs that
reference other repositories, so that central repo is self-contained. Even
with this rule there seem to be many artifacts
I'm a little bit lost (and new in Maven)... Maybe I explain what I finally
want...
1) Linux server:
- Apache Maven
- Nexus
- A new corporate repository in order to have the jars we use in all
projects.
2) Windows
- Eclipse with m2eclipse
Functionality:
1) All
Hi everyone.
I have this resource:
resource
directorysrc/main/contents/directory
includes
include${runtime}/**/include
/includes
targetPathcontents/targetPath
/resource
let's suppose that ${runtime} has this value: stage.
The result
To me this sounds like a bug and you should file an issue report.
/Anders
On Wed, Nov 4, 2009 at 05:56, vijay shanker vijay.s...@gmail.com wrote:
Hi all;
I am using tomcat plugin to run my war project.
When I use this plugin form eclipse; it works very well. i found a folder
tomcat
I also see a strange behavior that tells me I am missing something:
with the configuration I described, I have my contents put in:
WEB-INF/classes/contents/stage
The same result I have if I put them in
src/main/webapp/contents/stage
without any additional configuration or targetPath, of
My understanding is:
1) No, central will not be cleaned. No changes are done to central as it
might break builds.
2) http://jira.codehaus.org/browse/MEV
3) I don't think so. The pom(s) you've found are old ones before the rules
were enforced (or even existed possibly)
/Anders
On Wed, Nov 4,
Hi,
Yes and please provide more informations (or a simple project to
reproduce the case)
Thanks !
--
Olivier
2009/11/4 Anders Hammar and...@hammar.net:
To me this sounds like a bug and you should file an issue report.
/Anders
On Wed, Nov 4, 2009 at 05:56, vijay shanker vijay.s...@gmail.com
Hi,
fist you have to understand that you cannot really share the settings.xml.
All you can do is, that you provide a template that can be copied by the
users and should be stored in the default location userhome/.m2/.
Exposito Aguilera, Francisco wrote at Mittwoch, 4. November 2009 12:30:
I'm
Hi,
In between, any workaround suggested?
should i use jetty plugin to run my project.?
Regards,
Vijay Shanker Dubey
Ph: +91-9818311884
On Wed, Nov 4, 2009 at 5:32 PM, Olivier Lamy ol...@apache.org wrote:
Hi,
Yes and please provide more informations (or a simple project to
reproduce the
Hi all,
I'm a Maven Newbie, so please forgive me if you find my question stupid.
In my project I use libraries such as Apache commons-collections and many
more. When I create an executable .JAR file of my project using the
org.apache.maven.plugins:maven-jar-plugin:2.2:jar
Goal, which I
OK, thanks!
I believe these rules existed before year 2009.
Herehttp://repo1.maven.org/maven2/org/springframework/ws/spring-ws-parent/1.5.8/is
one such
pomhttp://repo1.maven.org/maven2/org/springframework/ws/spring-ws-parent/1.5.8/spring-ws-parent-1.5.8.pomuploaded
in August 2009, and another
Hello,
I use the exec plugin, and I need to pass it different parameters based
on the target I define. So for example, if I write mvn test, then exec
should forward one set of arguements to the command it executes, and if
I write mvn compile, then it sends another arguement. How to do this?
Ok, it could be that these rules are still enforced by manual checking
today. There was a thread about this some weeks ago.
Reporting these issues would be good, I guess. It makes it possible to
address any future releases of these artifacts.
/Anders
On Wed, Nov 4, 2009 at 13:29, Stevo Slavić
Most likely you've put the configuration element wrong. It should be inside
the execution section.
/Anders
2009/11/4 Gajo Csaba csaba.g...@cosylab.com
Hello,
I use the exec plugin, and I need to pass it different parameters based on
the target I define. So for example, if I write mvn test,
If I put the configuration element inside the execution element, I get
an error saying that it needs to be inside the plugin element. This is
what I've tried:
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
Hi Csaba,
Gajo Csaba wrote at Mittwoch, 4. November 2009 13:29:
Hello,
I use the exec plugin, and I need to pass it different parameters based
on the target I define. So for example, if I write mvn test, then exec
should forward one set of arguements to the command it executes, and if
I
Hi
Is there a provision in Maven to notify by email or any other medium that
the build is failed/succeeded?
I dont want to use any CI tool like Hudson, Bamboo etc.
I just want to know if it is possible plainly with Maven.
Thanks
Zainab
--
View this message in context:
Ah ok, got it to work. Looks like I needed to define a global execution
as well
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
I have a webapp that runs in Jetty and Tomcat. To make it run cleanly in
JBoss, I need to subtract some jar files from the dependency graph.
Unless I'm confused, this is going to take a lot of POM XML, because those
jars are in the graph of several of my dependencies.
So, I'm wondering: is
Hi Frank,
On Wed, Nov 4, 2009 at 7:09 AM, maven_newbie99 fr...@visign.ch wrote:
second: is it possible not to include the whole dependent JARs but only
those classes within my dependencies that I really use in my code?
Try http://mojo.codehaus.org/minijar-maven-plugin/
--
There are 10 types
Hi all,
Today I discovered that jta-1.0.1B.jar is removed from the central Maven
repository.
See: http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B
Causing our builds to fail.
It still exists in
http://download.java.net/maven/2/javax/transaction/jta/1.0.1B
What steps can I take to
I don't think it has ever been there. Are you sure that it has been removed?
/A
On Wed, Nov 4, 2009 at 14:10, Johan Vogelzang johan.vogelz...@gmail.comwrote:
Hi all,
Today I discovered that jta-1.0.1B.jar is removed from the central Maven
repository.
See:
Hi Benson,
On Wed, Nov 4, 2009 at 8:03 AM, Benson Margulies bimargul...@gmail.com wrote:
I have a webapp that runs in Jetty and Tomcat. To make it run cleanly in
JBoss, I need to subtract some jar files from the dependency graph.
Unless I'm confused, this is going to take a lot of POM XML,
The problem is that it's not quite 'corporate'. The problem is this: you can
build a webapp with CXF services that is self-contained on Jetty and tomcat.
Then, to get it to run on JBoss, you want to start subtracting. OK, well, a
profile that subtracts. If the profile can just use
fist you have to understand that you cannot really share the
settings.xml.
It is easier to share the global settings.xml file (the one found in the
/conf directory of you maven installation. You can put all the corporate
repo information in the global settings.xml file location and this file
Benson,
On Wed, Nov 4, 2009 at 8:22 AM, Benson Margulies bimargul...@gmail.com wrote:
The problem is that it's not quite 'corporate'. The problem is this: you can
build a webapp with CXF services that is self-contained on Jetty and tomcat.
Then, to get it to run on JBoss, you want to start
How can I create the corporate repository?
Is it a new web project in Tomcat? How must I define it?
-Mensaje original-
De: news [mailto:n...@ger.gmane.org] En nombre de Jörg Schaible
Enviado el: miércoles, 04 de noviembre de 2009 13:03
Para: users@maven.apache.org
Asunto: RE: Maven
I see, if you mean a set of profiles, each with a dependencyManagement
that makes some things 'provided', then I'm following, and that is
what I need.
On Wed, Nov 4, 2009 at 8:32 AM, Jesse Farinacci jie...@gmail.com wrote:
Benson,
On Wed, Nov 4, 2009 at 8:22 AM, Benson Margulies
Hi Benson,
On Wed, Nov 4, 2009 at 8:39 AM, Benson Margulies bimargul...@gmail.com wrote:
I see, if you mean a set of profiles, each with a dependencyManagement
that makes some things 'provided', then I'm following, and that is
what I need.
No, that isn't what I mean. I would have a profile
Hi jieryn,
I could achieve what I want using your link (ueberjar). Many thanks.
The only thing I don't understand is why so many maven-specific libraries
are included in my taret? For eample:
mavenmodel, mavenmonitor, mavenpluginapi, mavenpluginregistry, ...
plexusarchiver,
Hi,
is the attribute escapeWindowsPaths in the maven-resources-plugin
actually working? I don't think it does with 2.4, or 2.4.1, at least
not with something like my.dir=${project.build.directory} in
src/main/filtered-resources/my.properties.
I have checked the sources of maven-resources-plugin
On Wed, Nov 4, 2009 at 12:54 PM, Daniele Dellafiore ilde...@gmail.comwrote:
I also see a strange behavior that tells me I am missing something:
with the configuration I described, I have my contents put in:
WEB-INF/classes/contents/stage
The same result I have if I put them in
We are building a Maven2 multi-module project using Hudson v1.323. When
using the 'deploy' goal, the build fails with the exception;
[INFO]
[ERROR] BUILD ERROR
[INFO]
Thanks all for your responses. Lukas, I went with yours and it worked
instantly. - Dave
Lukas Theussl-4 wrote:
Use a preGoal in maven.xml:
preGoal name=test:test
ant:delete
ant:fileset dir=. includes=*.tmp /
/ant:delete
/preGoal
HTH,
-Lukas
Please forget about my last post.
I have had, for some copy/paste reason, the following lines in my .pom:
dependency
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
version2.1/version
/dependency
which caused all these maven-specific libs to be added
A-ha! Ok, glad to hear you figured it out. :-)
On Wed, Nov 4, 2009 at 9:30 AM, maven_newbie99 fr...@visign.ch wrote:
Please forget about my last post.
I have had, for some copy/paste reason, the following lines in my .pom:
dependency
groupIdorg.apache.maven.plugins/groupId
Hmm, I thougt I was, but now I am not so sure anymore
Johan.
2009/11/4 Anders Hammar and...@hammar.net
I don't think it has ever been there. Are you sure that it has been
removed?
/A
On Wed, Nov 4, 2009 at 14:10, Johan Vogelzang johan.vogelz...@gmail.com
wrote:
Hi all,
Today
Anyway it seems that this artifact in not correctly deployed (or
synchronized).
Johan.
2009/11/4 Anders Hammar and...@hammar.net
I don't think it has ever been there. Are you sure that it has been
removed?
/A
On Wed, Nov 4, 2009 at 14:10, Johan Vogelzang johan.vogelz...@gmail.com
wrote:
It's correct in central. You can get it from there, as it states in the pom.
You need to download it manually. But you've found in at java.net, so use
that. Or some other implementation that is available at central (I guess
there is a geronimo one).
/A
On Wed, Nov 4, 2009 at 15:56, Johan
I do not see why this is correct in central.
The more recent version 1.1 seems to be correctly deployed to central see:
http://repo2.maven.org/maven2/javax/transaction/jta/1.1
You can see the jar file there.
We do not manage this dependency ourselfs. Jta is a transitive dependency,
that comes
I want to append the subversion revision to the file name of the
assembly but not the war file. I believe I already have access to the
${buildNumber} as it shows up in my manifest appropriately.
Clue?
Jim C.
-
To unsubscribe,
Hi Folks,
I have figured out how to create a single .JAR file that contains all my
dependencies. Using minijar:ueberjar I can extract all needed classes from
the .JAR dependencies and include only those classes that are really
referenced by my project. So far so good.
With the old method of
why activate with properties, better to just activate the profile you want, e.g.
mvn -Pdev clean install
also, you will need to put all the modules you don't want run with
that profile into a separate profile (probably one that is
activeByDefault) that way when you specify
-Pdev
(which will
Well, no. The generic solution is to put a maven repository manager inside
your own repository. This way, you'll be able to handle configuration very
simply without depending on public repositories only. It just doesn't scale.
Sometimes, you want things that'll never exist publicly. As Anders
Hi Frank,
On Wed, Nov 4, 2009 at 10:53 AM, maven_newbie99 fr...@visign.ch wrote:
But now that I create the .JAR file using minijar, I don't know how to
automatically generate and include the MANIFEST.MF file.
This sounds like a great requirement for minijar plugin. You should
file a new
Well, no, I don't think so. If you read documentation
http://maven.apache.org/maven-v4_0_0.xsd, the notifier tag is inside the
ciMgmt one. I'm not totally sure, but I guess this is by design something
that's to be read by an external ci system.
Maven isn't a CI build tool. Good tools are also the
I just discovered minijar. I seem to understand it does something close to
the shade plugin, but that'll only let useful dependencies present.
Though I am very interested in discovering this new plugin, wouldn't it be a
good idea to integrate minijar as an evolution of the shade plugin ?
I'm now
Suppose I use the same computer for server and client, right now.
I've created a Hosted repository in Nexus, where the repository path is
http://localhost:8081/nexus/content/repositories/ISS
Then I've used the embedded maven installation inside eclipse and defined
the user settings like that:
Assume that a command exists on all OS's and is in the command
execution path. 'svnversion', for example. Is there a plugin that
will allow one to execute it?
Jim C.
-
To unsubscribe, e-mail:
Hi,
Have you guys made the same experience with the directory-single goal of the
assembly plugin? It is supposed to for the assembly plugin to ignore the
format. The implication of this goal would be that the assembly plugin could be
used to store artifacts in a specific directory.
Now what i
exec-maven-plu...@mojo
2009/11/4 Jim Collings jlistn...@gmail.com:
Assume that a command exists on all OS's and is in the command
execution path. 'svnversion', for example. Is there a plugin that
will allow one to execute it?
Jim C.
Hi,
I'm using Maven 1.1 for a Java (1.5) project on Mac 10.5.6. I have a number
of unit tests within a sub-folder of my test directory. In order to run
everything smoothly, I must run a command like below when I cd into my test
directory:
maven -Dhttp.nonProxyHosts=localhost test:test
My
It seems to me that the API only supports execution of the 'svn'
command and it's various parameters and switches. The problem is that
in subversion, a different executable command is used to retrieve a
proper detailed version number of the local copy, that being
'svnversion'. Using this command,
I have set JAVA_HOME to a 1.5 java home.
I have traced the mvn shell script to watch it get used.
I have set source/ and target/ in the compiler plugin to 1.5. I
have checked the results with help:effective-pom.
Nonetheless, code that calls the new
DocumentBuilderFactory.newInstance(several
Ah, I can't use your suggestion. CXF itself has all these dependencies
that have to be trimmed for some containers. I'll just have to make
all the exclusions.
On Wed, Nov 4, 2009 at 8:49 AM, Jesse Farinacci jie...@gmail.com wrote:
Hi Benson,
On Wed, Nov 4, 2009 at 8:39 AM, Benson Margulies
A bit more detail from sh -x on the mvn command ... 1.5 goes in, 1.6 comes out.
+ '[' -z '' ']'
+ '[' -n /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home ']'
+ '[' -x
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/jre/sh/java
']'
+
My understanding is the by using that target attribute, maven is still using
the default java installation to compile, but the byte code generated will be
compatible with the java version specified.
Damon
-Original Message-
From: Benson Margulies [mailto:bimargul...@gmail.com]
Sent:
That doesn't help with bootclasspath inventory.
However, I've found my problem. On MacOS snow leopard, the So-called
Java 1.5 home is actually java 1.6!
On Wed, Nov 4, 2009 at 1:29 PM, Damon Jacobsen dajacob...@lifetouch.com wrote:
My understanding is the by using that target attribute, maven
I was just about to ask that, if the 1.5 home was symlinked to 1.6.
You may want to consider the animal-sniffer plugin to detect and error
on Java API incompatibles. The one from Codehaus mojos should be out
shortly, in the mean time Kohsuke's is working for me.
-Original Message-
From:
The issue with those old Sun libraries is that they require some kind of
click-through licensing agreement. That cannot be accomplished with Maven,
so that's why you have to download it manually.
In more recent version/implementations this limitation has been removed, my
guess is that that is
Use the finalName (
http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#finalName)
paramater.
/Anders
On Wed, Nov 4, 2009 at 16:42, Jim Collings jlistn...@gmail.com wrote:
I want to append the subversion revision to the file name of the
assembly but not the war file. I
Ok, that probably explains the difference between version 1.1 and 1.0.1B
Thanks,
Johan.
2009/11/4 Anders Hammar and...@hammar.net
The issue with those old Sun libraries is that they require some kind of
click-through licensing agreement. That cannot be accomplished with Maven,
so that's why
Babptiste,
I understand that this is a good solution for users who work for a comany
that service a managed repo.
First i didn't get the difference between the two deployed jta versions, but
thanks to Anders now I know...
Regards,
Johan.
2009/11/4 Baptiste MATHUS m...@batmat.net
Well, no. The
Sent from my [rhymes with tryPod] ;-)
On 4 Nov 2009, at 18:51, Jamie Whitehouse jamie.whiteho...@genesyslab.com
wrote:
I was just about to ask that, if the 1.5 home was symlinked to 1.6.
You may want to consider the animal-sniffer plugin to detect and error
on Java API incompatibles.
Hei,
[I've found a work-around. Sending this to the list in case it saves
someone else's time]
I am trying to remove source:jar from being invoked and attaching the
sources.jar to the build without success.
The reason I don't want it is that when I run e.g.
mvn --batch-mode release:prepare
Unfortunately I never did find a way to do what I described in the posting.
Perhaps this could eventually be a feature in Maven 3?
matinh wrote:
Hi stug23!
Did you make any progress on this topic? If yes, could you please explain
the details.
tia,
- martin
On 07 Sep 2009, stug23
We do something like this in a profile:
!-- Generate JBoss artifact --
!--
We generate another war with 'jboss' classifier,
excluding some jars from WEB-INF/lib
--
Is there an easy way to make a war project ONLY generate the exploded form (vs
both exploded AND non-exploded)?
I've dodged(?) using Maven since its inception, but quite clearly that
isn't possible anymore.
I was thinking of using the Jboss RESTEasy project, and then reailty
struck.
There are 471,932 jars (okay, that isn't true). They don't list which
are for what. But of course, there are a
Hello again list - sorry for that quick worded question, but here's another
(semi-related) one:
When you have an assembly defined as part of the standard build plugin section
AND another one nestled away in a profile, how can you avoid running the
default one that's in the standard build tags?
BIngo! Thanks!
On Wed, Nov 4, 2009 at 5:27 PM, Tomas Pollak tomas_pol...@yahoo.com wrote:
We do something like this in a profile:
!-- Generate JBoss artifact --
!--
We generate another war with 'jboss' classifier,
81 matches
Mail list logo