Build parent pom only, skip module build

2010-01-20 Thread Vach, Matthias
Hi all,
is there an option to build a parent pom without its childs?

Example structure:
-
/pom.xml
/mod1/...
/mod2/...

pom.xml is of packaging-type pom and contains a sections like:
-
modules
modulemod1module
modulemod2module
/modules



I need to build only that pom.xml to bring/update it to the local repo.

Regards Matthias

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Build parent pom only, skip module build

2010-01-20 Thread subir.sasikumar
You can put the module under a profiles and activate/deactivate it.

Subir

-Original Message-
From: Vach, Matthias [mailto:matthias.v...@sap.com]
Sent: Wednesday, January 20, 2010 3:30 PM
To: Maven Users List
Subject: Build parent pom only, skip module build

Hi all,
is there an option to build a parent pom without its childs?

Example structure:
-
/pom.xml
/mod1/...
/mod2/...

pom.xml is of packaging-type pom and contains a sections like:
-
modules
modulemod1module
modulemod2module
/modules



I need to build only that pom.xml to bring/update it to the local
repo.

Regards Matthias

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Build parent pom only, skip module build

2010-01-20 Thread Dennis Lundberg
The option you are looking for is -N

Vach, Matthias wrote:
 Hi all,
 is there an option to build a parent pom without its childs?
 
 Example structure:
 -
 /pom.xml  
 /mod1/...
 /mod2/...
 
 pom.xml is of packaging-type pom and contains a sections like:
 -
 modules
   modulemod1module
   modulemod2module
 /modules
 
 
 
 I need to build only that pom.xml to bring/update it to the local repo.
 
 Regards Matthias
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


-- 
Dennis Lundberg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



codehaus jboss-maven-plugin deploy question

2010-01-20 Thread sirbul25

Hi all

I'm using maven 2 with the jboss-maven-plugin from org.codehaus.mojo
version 1.4

In the usage page on their site shows that I need to specify the jbosshome.
Which is local to the machine that the maven script is running on.
I have this working fine on my local box as my jboss test server runs on my
local box,
where I run the deploy from.
So my cifure is as follows:

plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjboss-maven-plugin/artifactId
 version1.4/version
 configuration
  jbossHome${jbossInvestAdminServerRoot}/jbossHome
  serverNamedefault/serverName
  fileNames
   fileName${jbossInvestSpectrumName}/fileName
  /fileNames
 /configuration
/plugin

and I pull the info for the $properties names from my maven settings.xml

Now if I just want to deploy to a jboss server on a different machine/url to
the build server,
how would I configure that?

Any assistance will be greatly appreciated.

Thanks
Craig
-- 
View this message in context: 
http://old.nabble.com/codehaus-jboss-maven-plugin-deploy-question-tp27240471p27240471.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: codehaus jboss-maven-plugin deploy question

2010-01-20 Thread Anders Hammar
http://mojo.codehaus.org/jboss-maven-plugin/examples/deploy-undeploy-examples.html
look under Deploying the files via JMX/HTTP.

/Anders

On Wed, Jan 20, 2010 at 12:49, sirbul25 womble.spa...@gmail.com wrote:


 Hi all

 I'm using maven 2 with the jboss-maven-plugin from org.codehaus.mojo
 version 1.4

 In the usage page on their site shows that I need to specify the jbosshome.
 Which is local to the machine that the maven script is running on.
 I have this working fine on my local box as my jboss test server runs on my
 local box,
 where I run the deploy from.
 So my cifure is as follows:

 plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjboss-maven-plugin/artifactId
  version1.4/version
  configuration
  jbossHome${jbossInvestAdminServerRoot}/jbossHome
  serverNamedefault/serverName
  fileNames
   fileName${jbossInvestSpectrumName}/fileName
  /fileNames
  /configuration
 /plugin

 and I pull the info for the $properties names from my maven settings.xml

 Now if I just want to deploy to a jboss server on a different machine/url
 to
 the build server,
 how would I configure that?

 Any assistance will be greatly appreciated.

 Thanks
 Craig
 --
 View this message in context:
 http://old.nabble.com/codehaus-jboss-maven-plugin-deploy-question-tp27240471p27240471.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




RE: Build parent pom only, skip module build

2010-01-20 Thread Vach, Matthias
THX that was what I'm looking for :-)

-Original Message-
From: Dennis Lundberg [mailto:denn...@apache.org] 
Sent: Mittwoch, 20. Januar 2010 11:34
To: Maven Users List
Subject: Re: Build parent pom only, skip module build

The option you are looking for is -N

Vach, Matthias wrote:
 Hi all,
 is there an option to build a parent pom without its childs?
 
 Example structure:
 -
 /pom.xml  
 /mod1/...
 /mod2/...
 
 pom.xml is of packaging-type pom and contains a sections like:
 -
 modules
   modulemod1module
   modulemod2module
 /modules
 
 
 
 I need to build only that pom.xml to bring/update it to the local repo.
 
 Regards Matthias
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 


-- 
Dennis Lundberg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Problem with buildnumber-maven-plugin

2010-01-20 Thread Todd Thiessen
Thanks for the clarification. That makes more sense.

I agree. I sounds like you don't really want the timestamp from the buildnumber 
plugin.

---
Todd Thiessen
 

 -Original Message-
 From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de] 
 Sent: Tuesday, January 19, 2010 6:21 PM
 To: Maven Users List
 Subject: Re: Problem with buildnumber-maven-plugin
 
 Hi Todd,
 
  My problem is
  exactly the timestampcause on the build time of each 
 module the 
  timestamp is changing over my tree
 
  
  I guess I don't really understand what the problem with 
 this is ;-). 
  The build time each module's artifact IS actually different.
 Yeah that's what i understood and expected...
 
   If your not
  interested in the built time of the module, then I can't really see 
  why your module needs a build time.
 May be i didn't explain my intention good enough...
 
 I would like to create a timestamp starting with the build 
 (root of my reactor build) to use this timestamp for 
 different things (Overall Site information, put the 
 information into different SQL Scripts, Shell-Scripts, RPM 
 Comment etc.)...
 
 That means i would like to record the start time of my build
 
 So may be i misunderstnad the intention of the 
 buildnumber-maven-pluginMay be i have to use and external 
 source for this kind of information e.g. Hudson...but i 
 thought i could manage it with Maven itself...
 
 Many thanks for your help.
 
 Kind regards
 Karl Heinz Marbaise
 -- 
 SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
 Hauptstrasse 177 USt.IdNr: DE191347579
 52146 Würselen   http://www.soebes.de
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



What command-line version of maven should I be using?

2010-01-20 Thread Steve Cohen
My workspace is in a mess.  I have this build error that I can make no
sense of.  Maven is trying for some reason I don't understand to copy
files from workspace/subproject/target/classes to
workspace/webproject/src/main/webapp/WEB-INF/classes and failing due to
an access denied error.  Access denied?  This is running on Windows.

I am not expecting this copy to happen.  The subproject is a simple
dependency, with no parent-child or module relationship.  I expect the
subproject jar to have been built and simply copied to WEB-INF/lib -
which in fact does happen.  So why the unwanted and redundant attempt to
copy class files and the access denied failure?

I could maybe answer this question myself with debugging output, but the
installed command line maven is ancient (2.0.7) and the build just works
over there.  So what Maven should I download to produce a build
compatible with what m2eclipse is doing?

Another question:  What maven goals does m2eclipse perform when doing
the eclipse automated builds?


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



What command-line version of maven should I be using?

2010-01-20 Thread Steve Cohen
My workspace is in a mess.  I have this build error that I can make no
sense of.  Maven is trying for some reason I don't understand to copy
files from workspace/subproject/target/classes to
workspace/webproject/src/main/webapp/WEB-INF/classes and failing due to
an access denied error.  Access denied?  This is running on Windows.

I am not expecting this copy to happen.  The subproject is a simple
dependency, with no parent-child or module relationship.  I expect the
subproject jar to have been built and simply copied to WEB-INF/lib -
which in fact does happen.  So why the unwanted and redundant attempt to
copy class files and the access denied failure?

I could maybe answer this question myself with debugging output, but the
installed command line maven is ancient (2.0.7) and the build just works
over there.  So what Maven should I download to produce a build
compatible with what m2eclipse is doing?

Another question:  What maven goals does m2eclipse perform when doing
the eclipse automated builds?



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: codehaus jboss-maven-plugin deploy question

2010-01-20 Thread sirbul25

Thanks Anders, it does help if I look further than the usage page.. 
-(

got it running nicely on my local box, will now assist our infrastructure
team
get it running on the actual DEV and QA environments.

Cheers
-- 
View this message in context: 
http://old.nabble.com/codehaus-jboss-maven-plugin-deploy-question-tp27240471p27241893.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



What command-line version of maven should I be using?

2010-01-20 Thread Steve Cohen
My workspace is in a mess.  I have this build error that I can make no
sense of.  Maven is trying for some reason I don't understand to copy
files from workspace/subproject/target/classes to
workspace/webproject/src/main/webapp/WEB-INF/classes and failing due to
an access denied error.  Access denied?  This is running on Windows.

I am not expecting this copy to happen.  The subproject is a simple
dependency, with no parent-child or module relationship.  I expect the
subproject jar to have been built and simply copied to WEB-INF/lib -
which in fact does happen.  So why the unwanted and redundant attempt to
copy class files and the access denied failure?

I could maybe answer this question myself with debugging output, but the
installed command line maven is ancient (2.0.7) and the build just works
over there.  So what Maven should I download to produce a build
compatible with what m2eclipse is doing?

Another question:  What maven goals does m2eclipse perform when doing
the eclipse automated builds?




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: What command-line version of maven should I be using?

2010-01-20 Thread Anders Hammar
Is this a question related to building from Eclipse? The m2eclipse mailing
list is more suitable then.

m2eclipse 0.9.x is using the Maven 3 codebase. The latest dev builds
(0.9.9-dev) of m2eclipse are using the 3.0-alphas.

Your build error, which is understand is in Eclipse, is due to workspace
resolution I think.

/Anders

On Wed, Jan 20, 2010 at 14:37, Steve Cohen sco...@javactivity.org wrote:

 My workspace is in a mess.  I have this build error that I can make no
 sense of.  Maven is trying for some reason I don't understand to copy
 files from workspace/subproject/target/classes to
 workspace/webproject/src/main/webapp/WEB-INF/classes and failing due to
 an access denied error.  Access denied?  This is running on Windows.

 I am not expecting this copy to happen.  The subproject is a simple
 dependency, with no parent-child or module relationship.  I expect the
 subproject jar to have been built and simply copied to WEB-INF/lib -
 which in fact does happen.  So why the unwanted and redundant attempt to
 copy class files and the access denied failure?

 I could maybe answer this question myself with debugging output, but the
 installed command line maven is ancient (2.0.7) and the build just works
 over there.  So what Maven should I download to produce a build
 compatible with what m2eclipse is doing?

 Another question:  What maven goals does m2eclipse perform when doing
 the eclipse automated builds?



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: What command-line version of maven should I be using?

2010-01-20 Thread Steve Cohen
Anders Hammar wrote:
 Is this a question related to building from Eclipse? The m2eclipse mailing
 list is more suitable then.
 
 m2eclipse 0.9.x is using the Maven 3 codebase. The latest dev builds
 (0.9.9-dev) of m2eclipse are using the 3.0-alphas.
 
 Your build error, which is understand is in Eclipse, is due to workspace
 resolution I think.
 
 /Anders
 
 On Wed, Jan 20, 2010 at 14:37, Steve Cohen sco...@javactivity.org wrote:
 
 My workspace is in a mess.  I have this build error that I can make no
 sense of.  Maven is trying for some reason I don't understand to copy
 files from workspace/subproject/target/classes to
 workspace/webproject/src/main/webapp/WEB-INF/classes and failing due to
 an access denied error.  Access denied?  This is running on Windows.

 I am not expecting this copy to happen.  The subproject is a simple
 dependency, with no parent-child or module relationship.  I expect the
 subproject jar to have been built and simply copied to WEB-INF/lib -
 which in fact does happen.  So why the unwanted and redundant attempt to
 copy class files and the access denied failure?

 I could maybe answer this question myself with debugging output, but the
 installed command line maven is ancient (2.0.7) and the build just works
 over there.  So what Maven should I download to produce a build
 compatible with what m2eclipse is doing?

 Another question:  What maven goals does m2eclipse perform when doing
 the eclipse automated builds?



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 
VERY SORRY for the multiple repeats.  I WANTED to send this to the
M2Eclipse list but mistakenly sent it here.  Then, I often have problems
with posts to that list NOT getting through which is why I did the
resends.  Very sorry for the extra noise.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Jan-Kees van Andel
Hey,

In my project I have a dependency that I only want to have on my
compiler-plugin classpath, but not on my normal project classpath.

This is my code:
build
 ...
 plugins
   ...
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   verbosetrue/verbose
   compilerArguments
 s${basedir}/target/generated-sources/s
   /compilerArguments
 /configuration
 dependencies
   dependency
 groupIdmy.dependency.groupId/groupId
 artifactIdartifactId/artifactId
 version${parent.version}/version
 scopecompile/scope
   /dependency
 /dependencies
   /plugin
   ...
 /plugins
 ...
/build

When I run Maven with -X, I see the following output by the compiler plugin:
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
[DEBUG] Classpath: [C:\java\work\idea-9\...\buildergenerator\test\target\classes
 
C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
 C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

When I add the same dependency as a project dependency, I see the
following output:
[INFO] [compiler:compile]
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories:
[C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
[DEBUG] Classpath: [C:\java\work\idea-9\...\buildergenerator\test\target\classes
 
C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
 
C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-core\0.1-SNAPSHOT\buildergenerator-core-0.1-SNAPSHOT.jar
 C:\java\maven-repo\org\freemarker\freemarker\2.3.15\freemarker-2.3.15.jar
 C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

As you can see, I have one more dependency on my compiler classpath
(buildergenerator-core-0.1-SNAPSHOT.jar).

For some reason, the plugin dependency is not added to the compiler classpath.

Is there a way to fix this? I've also tried to add a classpath
element to compilerArguments, but this had the effect of removing
all other dependencies from the classpath, which is of course also not
desirable.

Thanks ans regards,
Jan-Kees

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Multiple commons-logging versions break site:stage for multi-module projects

2010-01-20 Thread subir.sasikumar
Hi,

Using Maven 2.1.0 with jdk 1.6 unders Windows XP.

Problem is that with site:stage command fails with the following error

[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
Invalid class loader hierarchy.  You have more than one version of
'org.apache.c
ommons.logging.Log' visible, which is not allowed.
[INFO]

[INFO] Trace
java.lang.ExceptionInInitializerError
at
org.apache.maven.plugin.javadoc.JavadocUtil.fetchURL(JavadocUtil.java
:730)

I have commons-logging-1.1.1 added as a dependency in the projects.
I got this problem with usage of site-plugin version 2.1 which probably
uses commons-logging-1.0.4

With the previous plugin version it was working fine.

I am having a flat multi-module maven project structure.

Any help to exclude this dependency or work-around my problem is
appreciated.

Regards
Subir




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com


Re: Multiple commons-logging versions break site:stage for multi-module projects

2010-01-20 Thread Dennis Lundberg
subir.sasiku...@wipro.com wrote:
 Hi,
  
 Using Maven 2.1.0 with jdk 1.6 unders Windows XP.
  
 Problem is that with site:stage command fails with the following error
  
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] null
 Invalid class loader hierarchy.  You have more than one version of
 'org.apache.c
 ommons.logging.Log' visible, which is not allowed.
 [INFO]
 
 [INFO] Trace
 java.lang.ExceptionInInitializerError
 at
 org.apache.maven.plugin.javadoc.JavadocUtil.fetchURL(JavadocUtil.java
 :730)

Hint: Javadoc plugin

 I have commons-logging-1.1.1 added as a dependency in the projects.
 I got this problem with usage of site-plugin version 2.1 which probably
 uses commons-logging-1.0.4

The site plugin has a transitive dependency on commons-logging:1.0.4,
but that shouldn't be a problem.

 With the previous plugin version it was working fine.
  
 I am having a flat multi-module maven project structure.
  
 Any help to exclude this dependency or work-around my problem is
 appreciated.

Please run this command on your project to find out which dependencies
come from where:

mvn dependency:tree

  
 Regards
 Subir
  
  
  
 
 Please do not print this email unless it is absolutely necessary. 
 
 The information contained in this electronic message and any attachments to 
 this message are intended for the exclusive use of the addressee(s) and may 
 contain proprietary, confidential or privileged information. If you are not 
 the intended recipient, you should not disseminate, distribute or copy this 
 e-mail. Please notify the sender immediately and destroy all copies of this 
 message and any attachments. 
 
 WARNING: Computer viruses can be transmitted via email. The recipient should 
 check this email and any attachments for the presence of viruses. The company 
 accepts no liability for any damage caused by any virus transmitted by this 
 email. 
 
 www.wipro.com
 


-- 
Dennis Lundberg

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Anders Hammar
I don't understand what you're trying to do. You're saying you have a
compile time dependency you don't want to add as a normal dependency? It
doesn't make sense to me. Is it a dependency of your code or something
different?

/Anders

On Wed, Jan 20, 2010 at 15:00, Jan-Kees van Andel 
jankeesvanan...@apache.org wrote:

 Hey,

 In my project I have a dependency that I only want to have on my
 compiler-plugin classpath, but not on my normal project classpath.

 This is my code:
 build
  ...
  plugins
   ...
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   verbosetrue/verbose
   compilerArguments
 s${basedir}/target/generated-sources/s
   /compilerArguments
 /configuration
 dependencies
   dependency
 groupIdmy.dependency.groupId/groupId
 artifactIdartifactId/artifactId
 version${parent.version}/version
 scopecompile/scope
   /dependency
 /dependencies
   /plugin
   ...
  /plugins
  ...
 /build

 When I run Maven with -X, I see the following output by the compiler
 plugin:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath:
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes

  
 C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 When I add the same dependency as a project dependency, I see the
 following output:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath:
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes

  
 C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar

  
 C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-core\0.1-SNAPSHOT\buildergenerator-core-0.1-SNAPSHOT.jar
  C:\java\maven-repo\org\freemarker\freemarker\2.3.15\freemarker-2.3.15.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 As you can see, I have one more dependency on my compiler classpath
 (buildergenerator-core-0.1-SNAPSHOT.jar).

 For some reason, the plugin dependency is not added to the compiler
 classpath.

 Is there a way to fix this? I've also tried to add a classpath
 element to compilerArguments, but this had the effect of removing
 all other dependencies from the classpath, which is of course also not
 desirable.

 Thanks ans regards,
 Jan-Kees

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




RE: Multiple Artifacts Question

2010-01-20 Thread David.A.Williams
I have to admit that I'm kinda curious what servers/versions you are
targeting and what kinds of server-specific files you need to include.
At this point, I'm finding that we very rarely need to go down this
road.

Wayne, we have EBJ and JMS modules with specific config files for Jboss and 
Weblogic.



Re: Multiple Artifacts Question

2010-01-20 Thread Anders Hammar
Are you talking about vendor specific deployment descriptors? If so, there
shouldn't be a problem having them all bundled, as JBoss AS will ignore the
WLS specific DD for example. However, if you need different configurations
(the same file but in a different flavor) that's a different story.

/Anders

On Wed, Jan 20, 2010 at 15:41, david.a.willi...@sungard.com wrote:

 I have to admit that I'm kinda curious what servers/versions you are
 targeting and what kinds of server-specific files you need to include.
 At this point, I'm finding that we very rarely need to go down this
 road.

 Wayne, we have EBJ and JMS modules with specific config files for Jboss and
 Weblogic.




RE: Multiple Artifacts Question

2010-01-20 Thread David.A.Williams
Are you talking about vendor specific deployment descriptors? If so,
there
shouldn't be a problem having them all bundled, as JBoss AS will ignore
the
WLS specific DD for example. However, if you need different
configurations
(the same file but in a different flavor) that's a different story.

Yes, that is part of it.  I was not aware that you can combine them.
For example. Here is an example of one of our EJBs.  Are you saying this
can be combined?  I apologize if this is a newbie question.  I'm SCM
person not a Java one.  Thanks for your help!!!  David


jboss.xml:

jboss
   enterprise-beans
  session
 ejb-namemyServiceLocal/ejb-name
 local-jndi-nameejb/myServiceLocal/local-jndi-name
  /session

  session
 ejb-namemyService/ejb-name
 jndi-nameejb/myService/jndi-name
 container-invoker-conf
optimizedtrue/optimized
   /container-invoker-conf
   port-component
port-component-nameEventService/port-component-name

port-component-uri/my-ejb-service/*/port-component-uri
 /port-component
  /session
   /enterprise-beans
 /jboss


weblogic-ejb-jar.xml:

?xml version=1.0 encoding=UTF-8?
weblogic-ejb-jar
  xmlns=http://www.bea.com/ns/weblogic/90;
xmlns:j2ee=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.bea.com/ns/weblogic/90
http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd;

   weblogic-enterprise-bean
  ejb-namemyServiceLocal/ejb-name
  local-jndi-nameejb/myServiceLocal/local-jndi-name
   /weblogic-enterprise-bean

   weblogic-enterprise-bean
  ejb-namemyService/ejb-name
  enable-call-by-referencetrue/enable-call-by-reference
  jndi-nameejb/myService/jndi-name
   /weblogic-enterprise-bean

/weblogic-ejb-jar



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple Artifacts Question

2010-01-20 Thread Anders Hammar
Not combine. Put both files in the jar. The files not applicable should be
ignored by the appserver. I've seen this with JBoss and Websphere DDs is
some product.

/Anders

On Wed, Jan 20, 2010 at 16:04, david.a.willi...@sungard.com wrote:

 Are you talking about vendor specific deployment descriptors? If so,
 there
 shouldn't be a problem having them all bundled, as JBoss AS will ignore
 the
 WLS specific DD for example. However, if you need different
 configurations
 (the same file but in a different flavor) that's a different story.

 Yes, that is part of it.  I was not aware that you can combine them.
 For example. Here is an example of one of our EJBs.  Are you saying this
 can be combined?  I apologize if this is a newbie question.  I'm SCM
 person not a Java one.  Thanks for your help!!!  David


 jboss.xml:

 jboss
   enterprise-beans
  session
 ejb-namemyServiceLocal/ejb-name
 local-jndi-nameejb/myServiceLocal/local-jndi-name
  /session

  session
 ejb-namemyService/ejb-name
 jndi-nameejb/myService/jndi-name
 container-invoker-conf
optimizedtrue/optimized
   /container-invoker-conf
   port-component
port-component-nameEventService/port-component-name

 port-component-uri/my-ejb-service/*/port-component-uri
 /port-component
  /session
   /enterprise-beans
  /jboss


 weblogic-ejb-jar.xml:

 ?xml version=1.0 encoding=UTF-8?
 weblogic-ejb-jar
  xmlns=http://www.bea.com/ns/weblogic/90;
 xmlns:j2ee=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://www.bea.com/ns/weblogic/90
 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd;

   weblogic-enterprise-bean
  ejb-namemyServiceLocal/ejb-name
  local-jndi-nameejb/myServiceLocal/local-jndi-name
   /weblogic-enterprise-bean

   weblogic-enterprise-bean
  ejb-namemyService/ejb-name
  enable-call-by-referencetrue/enable-call-by-reference
  jndi-nameejb/myService/jndi-name
   /weblogic-enterprise-bean

 /weblogic-ejb-jar



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: Multiple Artifacts Question

2010-01-20 Thread Wayne Fay
 Yes, that is part of it.  I was not aware that you can combine them.
 For example. Here is an example of one of our EJBs.  Are you saying this
 can be combined?  I apologize if this is a newbie question.  I'm SCM
 person not a Java one.  Thanks for your help!!!  David

Yes, that's what he's saying. Why don't you ask one of your devs to
produce a single war/ear with ALL of the vendor-specific files in it,
try loading it on both Weblogic and Jboss, and see if either one
complains. Or you could produce it and test it if you know what you're
doing.

I think you'll find that Jboss ignores the weblogic-*.xml files, and
Weblogic ignores the jboss ones. Only if you had an actual collision
(same file name, different contents per app server) would you really
need to be worried about this.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Multiple Artifacts Question

2010-01-20 Thread David Hoffer
Yes you can combine different container config files, since they are named
distinctly that's no problem.  But this doesn't solve the larger problem.
We often times do need to include/exclude different dependencies based on
the container.  So since we are forced to detail with these container
differences via some mechanism(profiles, overlays) we figure we might as
well as so include/exclude the right config files too.

-Dave

On Wed, Jan 20, 2010 at 8:13 AM, Anders Hammar and...@hammar.net wrote:

 Not combine. Put both files in the jar. The files not applicable should be
 ignored by the appserver. I've seen this with JBoss and Websphere DDs is
 some product.

 /Anders

 On Wed, Jan 20, 2010 at 16:04, david.a.willi...@sungard.com wrote:

  Are you talking about vendor specific deployment descriptors? If so,
  there
  shouldn't be a problem having them all bundled, as JBoss AS will ignore
  the
  WLS specific DD for example. However, if you need different
  configurations
  (the same file but in a different flavor) that's a different story.
 
  Yes, that is part of it.  I was not aware that you can combine them.
  For example. Here is an example of one of our EJBs.  Are you saying this
  can be combined?  I apologize if this is a newbie question.  I'm SCM
  person not a Java one.  Thanks for your help!!!  David
 
 
  jboss.xml:
 
  jboss
enterprise-beans
   session
  ejb-namemyServiceLocal/ejb-name
  local-jndi-nameejb/myServiceLocal/local-jndi-name
   /session
 
   session
  ejb-namemyService/ejb-name
  jndi-nameejb/myService/jndi-name
  container-invoker-conf
 optimizedtrue/optimized
/container-invoker-conf
port-component
 port-component-nameEventService/port-component-name
 
  port-component-uri/my-ejb-service/*/port-component-uri
  /port-component
   /session
/enterprise-beans
   /jboss
 
 
  weblogic-ejb-jar.xml:
 
  ?xml version=1.0 encoding=UTF-8?
  weblogic-ejb-jar
   xmlns=http://www.bea.com/ns/weblogic/90;
  xmlns:j2ee=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://www.bea.com/ns/weblogic/90
  http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd;
 
weblogic-enterprise-bean
   ejb-namemyServiceLocal/ejb-name
   local-jndi-nameejb/myServiceLocal/local-jndi-name
/weblogic-enterprise-bean
 
weblogic-enterprise-bean
   ejb-namemyService/ejb-name
   enable-call-by-referencetrue/enable-call-by-reference
   jndi-nameejb/myService/jndi-name
/weblogic-enterprise-bean
 
  /weblogic-ejb-jar
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 



Pushing a setting to users of a parent but not the parent itself

2010-01-20 Thread Benson Margulies
I'm trying to set up a corporate parent POM.

I want all the children of this pom to have a particular profile
turned on, but I don't want to turn this profile on in the case of
running maven on the parent itself to deploy it. Doing so produces a
circularity. I can use -P!foo, but I was hoping to find something to
put in the POM to have this effect.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Wanting to supply a profile only to top-level users of a parent

2010-01-20 Thread Benson Margulies
Here's the structure I'm trying to construct:

1: corporate parent

2: project toplevel (has modules)
3: individuals

There are many instances of #2, and many, many, instance of #3.

I have some complex POM content that I want to abstract from the #2
POMs into the #1 POM. Problem is, if I define a profile in the
corporate parent, everybody, down to level 3, gets it. If I set it
inheritedfalse/inherited, nobody gets it.

Is there a solution to this? If I set its activation to look for a
property which I set to true in all the #2 projects and false in the
#3 projects, is that going to work?

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Spring messages are not showing up

2010-01-20 Thread Ben Hsu



[crossposting to the surefire and log4j mailing lists]

 

Hello everybody,

 

Can you help me with a problem? I am running surefire unit tests against
a spring application. I am trying to see the debug messages spring puts
out. The messages show up when I deploy the application into JBoss, but
when I run the surefire unit tests they don't show up.

 

Here is my surefire config from my pom.xml file:

 

 !-- Surefire test runner plugin --

 plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-surefire-plugin/artifactId

version2.3/version

configuration

argLine-Dlog4j.debug/argLine

systemProperties

property  

  !-- Specific log4j config for tests --  

namelog4j.configuration/name  

 
valuefile:./src/main/config/test-log4j.properties/value  

   /property  

/systemProperties

/configuration

 /plugin

 

the log4j properties has this content:

log4j.rootLogger=TRACE, R

log4j.appender.R=org.apache.log4j.ConsoleAppender

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{3}:%L -
%m%n

 

and the -Dlog4j.debug produces this output:

log4j: Using URL [file:./src/main/config/test-log4j.properties] for
automatic log4j configuration.

log4j: Reading configuration from URL
file:./src/main/config/test-log4j.properties

log4j: Parsing for [root] with value=[TRACE, R].

log4j: Level token is [TRACE].

log4j: Category root set to TRACE

log4j: Parsing appender named R.

log4j: Parsing layout options for R.

log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %5p
%c{3}:%L - %m%n].

log4j: End of parsing for R.

log4j: Parsed R options.

log4j: Finished configuring.

 

Thank you everybody.

 



Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Stephen Connolly
scope=provided

2010/1/20 Jan-Kees van Andel jankeesvanan...@apache.org:
 Hey,

 In my project I have a dependency that I only want to have on my
 compiler-plugin classpath, but not on my normal project classpath.

 This is my code:
 build
  ...
  plugins
   ...
   plugin
     groupIdorg.apache.maven.plugins/groupId
     artifactIdmaven-compiler-plugin/artifactId
     configuration
       verbosetrue/verbose
       compilerArguments
         s${basedir}/target/generated-sources/s
       /compilerArguments
     /configuration
     dependencies
       dependency
         groupIdmy.dependency.groupId/groupId
         artifactIdartifactId/artifactId
         version${parent.version}/version
         scopecompile/scope
       /dependency
     /dependencies
   /plugin
   ...
  /plugins
  ...
 /build

 When I run Maven with -X, I see the following output by the compiler plugin:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath: 
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 When I add the same dependency as a project dependency, I see the
 following output:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath: 
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-core\0.1-SNAPSHOT\buildergenerator-core-0.1-SNAPSHOT.jar
  C:\java\maven-repo\org\freemarker\freemarker\2.3.15\freemarker-2.3.15.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 As you can see, I have one more dependency on my compiler classpath
 (buildergenerator-core-0.1-SNAPSHOT.jar).

 For some reason, the plugin dependency is not added to the compiler classpath.

 Is there a way to fix this? I've also tried to add a classpath
 element to compilerArguments, but this had the effect of removing
 all other dependencies from the classpath, which is of course also not
 desirable.

 Thanks ans regards,
 Jan-Kees

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Control the dependent jar name in war

2010-01-20 Thread Yang, Gang CTR USA
Hi,

I've searched but failed to find a way to control the dependent jar name
when it is bundled in the war. Specifically, I would like to remove the
trailing version number when the dependent jar is included in the
web-inf/lib. Does any one know a way?

Thanks,
Gang

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



POM Question about version element.

2010-01-20 Thread Karl Heinz Marbaise

Hi,

has someone seen something like the following in particular the component
part...

..lt;version component=gt;123123lt;/versiongt;


cause i can't find anything about that no docs, not in the XSD files for the
pom etc. not in the books etc.

Any idea?

Kind regards
Karl Heinz Marbaise
-- 
View this message in context: 
http://old.nabble.com/POM-Question-about-version-element.-tp27245629p27245629.html
Sent from the Maven - Users mailing list archive at Nabble.com.


newbie Assembly plugin question

2010-01-20 Thread Steve Cohen
I have the book Maven - the Definitive Guide and I don't find the
answer to this simple question there:

If you create an assembly descriptor, how do you reference that
descriptor in the POM?

I see examples of POM assembly plugin references and I see examples of
assembly descriptors but I see no example of how the POM plugin
reference invokes an assembly descriptor.

Can someone provide an example or a link to one?


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



mvn deploy:deploy does not work :(

2010-01-20 Thread Afkham Azeez
Hi folks,
We are using Maven 2.1.0 and have provided the following settings.xml file:

settings xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;

localRepository/home/azeez/.m2/repository/localRepository
interactiveModefalse/interactiveMode

servers
server
  idwso2-snapshot-repository/id
  usernamesnapshots/username
  passwordx/password
  filePermissions664/filePermissions
  directoryPermissions755/directoryPermissions
  !--configuration/configuration--
/server
/servers

/settings

In our project's POM file, we have the following distribution
management section:

 distributionManagement
 repository
   idwso2-maven2-repository/id
   nameWSO2 Maven2 Repository/name
   urlscp://dist.wso2.org/home/httpd/dist.wso2.org/maven2//url
   /repository
   snapshotRepository
   idwso2-snapshot-repository/id
   nameWSO2 Snapshot Repository/name
   
urlscp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2//url
   /snapshotRepository
  /distributionManagement

The maven-deploy-plugin version is 2.3. However, the password provided
in the settings.xml file seems to be ignored. We are always getting
this error:

Error retrieving previous build number for artifact
'org.apache.axis2:axis2-parent:pom': repository metadata for:
'snapshot org.apache.axis2:axis2-parent:SNAPSHOT' could not be
retrieved from repository: wso2-snapshot-repository due to an error:
Authentication failed: Cannot connect. Reason: Auth fail

However, we are able to SSH to that machine using the same username 
password given in the settings.xml file.

Any idea what could be the problem? We also noticed that the keyboard
interaction is used even when the password is supplied and this seems
to be a bug http://jira.codehaus.org/browse/WAGON-237

-- 
Thanks
Afkham Azeez

Blog: http://afkham.org

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: newbie Assembly plugin question

2010-01-20 Thread Karl Heinz Marbaise

Hi,

take a look here:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

or may be you will take a look here:

http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html

Kind Regards
Karl Heinz Marbaise
-- 
View this message in context: 
http://old.nabble.com/newbie-Assembly-plugin-question-tp27246617p27246836.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Control the dependent jar name in war

2010-01-20 Thread Wayne Fay
 I've searched but failed to find a way to control the dependent jar name
 when it is bundled in the war. Specifically, I would like to remove the
 trailing version number when the dependent jar is included in the
 web-inf/lib. Does any one know a way?

If only there was documentation about the WAR plugin which might
explain how to achieve this goal... oh wait, there is. Where did you
search?

http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-mapping.html

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Control the dependent jar name in war

2010-01-20 Thread Manfred Moser
On Wed, 20 Jan 2010 13:12:21 -0600, Wayne Fay wrote
  I've searched but failed to find a way to control the dependent jar name
  when it is bundled in the war. Specifically, I would like to remove the
  trailing version number when the dependent jar is included in the
  web-inf/lib. Does any one know a way?
 
 If only there was documentation about the WAR plugin which might
 explain how to achieve this goal... oh wait, there is. Where did you
 search?
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-
mapping.html

True. The bigger question is why you would want to remove this useful 
information from the file names?

manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: mvn deploy:deploy does not work :(

2010-01-20 Thread Gorham-Engard, Frank
Hi Afkham Azeez
The id is the field that connects the server entry to the repository entry. It 
should be the same in both places. And you need a server entry for each 
repository.

!-- Frank Gorham-Engard →


-Original Message-
From: Afkham Azeez [mailto:afk...@gmail.com] 
Sent: Wednesday, January 20, 2010 2:00 PM
To: Maven Users List
Subject: mvn deploy:deploy does not work :(

Hi folks,
We are using Maven 2.1.0 and have provided the following settings.xml file:

settings xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;

localRepository/home/azeez/.m2/repository/localRepository
interactiveModefalse/interactiveMode

servers
server
  idwso2-snapshot-repository/id
  usernamesnapshots/username
  passwordx/password
  filePermissions664/filePermissions
  directoryPermissions755/directoryPermissions
  !--configuration/configuration--
/server
/servers

/settings

In our project's POM file, we have the following distribution
management section:

 distributionManagement
 repository
   idwso2-maven2-repository/id
   nameWSO2 Maven2 Repository/name
   urlscp://dist.wso2.org/home/httpd/dist.wso2.org/maven2//url
   /repository
   snapshotRepository
   idwso2-snapshot-repository/id
   nameWSO2 Snapshot Repository/name
   
urlscp://dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2//url
   /snapshotRepository
  /distributionManagement

The maven-deploy-plugin version is 2.3. However, the password provided
in the settings.xml file seems to be ignored. We are always getting
this error:

Error retrieving previous build number for artifact
'org.apache.axis2:axis2-parent:pom': repository metadata for:
'snapshot org.apache.axis2:axis2-parent:SNAPSHOT' could not be
retrieved from repository: wso2-snapshot-repository due to an error:
Authentication failed: Cannot connect. Reason: Auth fail

However, we are able to SSH to that machine using the same username 
password given in the settings.xml file.

Any idea what could be the problem? We also noticed that the keyboard
interaction is used even when the password is supplied and this seems
to be a bug http://jira.codehaus.org/browse/WAGON-237

-- 
Thanks
Afkham Azeez

Blog: http://afkham.org

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Add dependency to maven-compiler-plugin classpath

2010-01-20 Thread Jan-Kees van Andel
Allright, I should have provided a bit more context. Here it is:

I've written an APT annotation processor which generates builder
classes for immutable objects. Objects annotated with @Immutable are
processed by this annotation processor and code is generated
appropriately.

It used to contain only one module, containing both the annotations,
the processor class and a META-INF file to configure the processor...

The annoying thing of this was that the compiler auto-detects any
processors on the classpath and invokes them automatically. This is
something I don't want, so I decided to split it up into two parts:
- First a project with the annotations (the project that uses the
builder, needs to have the annotations on its classpath, since they
are in the source code).
- The other project contains the processor and its configuration. This
is not a compile dependency and I don't want it in my distribution.
It's a tool and I only want it on the classpath when compiling.

The reason not to use a project dependency with scope=provided is
because of my IDE's. On my project, we use both IntelliJ and RSA and I
don't want the processor project on the classpath, since it modifies
the build/make process in the IDE. This causes issues with build/make,
because the processor gets invoked by it, leading to duplicate class
kind of compiler errors, because it's trying to generate a class
that's already generated by the maven-compiler-plugin.

So, long story short (and also after cleaning up my own mind), it
looks like I need a provided dependency, but I don't want it to be
included in my eclipse/idea classpath. I hoped to achieve this by
using a plugin dependency, but maybe I can just as easy exclude it
from those plugins (eclipse:idea)...

Regards,
Jan-Kees


2010/1/20 Stephen Connolly stephen.alan.conno...@gmail.com:
 scope=provided

 2010/1/20 Jan-Kees van Andel jankeesvanan...@apache.org:
 Hey,

 In my project I have a dependency that I only want to have on my
 compiler-plugin classpath, but not on my normal project classpath.

 This is my code:
 build
  ...
  plugins
   ...
   plugin
     groupIdorg.apache.maven.plugins/groupId
     artifactIdmaven-compiler-plugin/artifactId
     configuration
       verbosetrue/verbose
       compilerArguments
         s${basedir}/target/generated-sources/s
       /compilerArguments
     /configuration
     dependencies
       dependency
         groupIdmy.dependency.groupId/groupId
         artifactIdartifactId/artifactId
         version${parent.version}/version
         scopecompile/scope
       /dependency
     /dependencies
   /plugin
   ...
  /plugins
  ...
 /build

 When I run Maven with -X, I see the following output by the compiler plugin:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath: 
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 When I add the same dependency as a project dependency, I see the
 following output:
 [INFO] [compiler:compile]
 [DEBUG] Using compiler 'javac'.
 [DEBUG] Source directories:
 [C:\java\work\idea-9\...\buildergenerator\test\src\main\java]
 [DEBUG] Classpath: 
 [C:\java\work\idea-9\...\buildergenerator\test\target\classes
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-annotations\0.1-SNAPSHOT\buildergenerator-annotations-0.1-SNAPSHOT.jar
  C:\java\maven-repo\nl\...\buildergenerator\buildergenerator-core\0.1-SNAPSHOT\buildergenerator-core-0.1-SNAPSHOT.jar
  C:\java\maven-repo\org\freemarker\freemarker\2.3.15\freemarker-2.3.15.jar
  C:\java\maven-repo\joda-time\joda-time\1.6\joda-time-1.6.jar]

 As you can see, I have one more dependency on my compiler classpath
 (buildergenerator-core-0.1-SNAPSHOT.jar).

 For some reason, the plugin dependency is not added to the compiler 
 classpath.

 Is there a way to fix this? I've also tried to add a classpath
 element to compilerArguments, but this had the effect of removing
 all other dependencies from the classpath, which is of course also not
 desirable.

 Thanks ans regards,
 Jan-Kees

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: newbie Assembly plugin question

2010-01-20 Thread Steve Cohen
Karl Heinz Marbaise wrote:
 Hi,
 
 take a look here:
 http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
 
 or may be you will take a look here:
 
 http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
 
 Kind Regards
 Karl Heinz Marbaise
Thanks -

Duh, that was easy.  The descriptor tag contains a reference to the
assembly descriptor file.  Obvious, and yet the book shows no example of
this and I was misled.  The only examples of the descriptor tag point
to one of the predesigned descriptors such as jar-with-dependencies.

Perhaps something for the authors to think about.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-dependency-plugin unpack to different folder?

2010-01-20 Thread David Hoffer
Using the maven-dependency-plugin is there a way to unpack to a different
folder?  I.e. if I have a resource at /foo/bar/config.txt can I configure to
unpack at /props/config.txt?

-Dave


Re: maven-dependency-plugin unpack to different folder?

2010-01-20 Thread Dan Tran
for unpack goal, you can specify outputDirectory per artitfactItem
configuration.

-Dan


On Wed, Jan 20, 2010 at 12:09 PM, David Hoffer dhoff...@gmail.com wrote:
 Using the maven-dependency-plugin is there a way to unpack to a different
 folder?  I.e. if I have a resource at /foo/bar/config.txt can I configure to
 unpack at /props/config.txt?

 -Dave


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-dependency-plugin unpack to different folder?

2010-01-20 Thread David Hoffer
Right but how can I flatten or remove the folder from the artifactItem?  For
example if I say

artifactItem
...

outputDirectory${project.build.directory}/classes/outputDirectory
includesfoo/bar/config.txt/includes
/artifactItem

its going to include the foo/bar folder.  How can I get rid of this?

-Dave

On Wed, Jan 20, 2010 at 1:31 PM, Dan Tran dant...@gmail.com wrote:

 for unpack goal, you can specify outputDirectory per artitfactItem
 configuration.

 -Dan


 On Wed, Jan 20, 2010 at 12:09 PM, David Hoffer dhoff...@gmail.com wrote:
  Using the maven-dependency-plugin is there a way to unpack to a different
  folder?  I.e. if I have a resource at /foo/bar/config.txt can I configure
 to
  unpack at /props/config.txt?
 
  -Dave
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




RE: Control the dependent jar name in war

2010-01-20 Thread Yang, Gang CTR USA
Good question. I do not want to remove the version info for all lib
jars, but only selected few that are provided by our own project. It's
for compatibility with some of our tools for historic reason. So I was
searching dependency area and indeed missed the war plugin example. I
just tried the outputFileNameMapping property. Unfortunately, as I would
expect, it applied generally to all lib jars, which is not what I would
like to do. I was hoping dependency configuration would provide some
thing that can be applied selectively.

Gang

-Original Message-
From: Manfred Moser [mailto:manf...@mosabuam.com] 
Sent: Wednesday, January 20, 2010 2:14 PM
To: Maven Users List
Subject: Re: Control the dependent jar name in war

On Wed, 20 Jan 2010 13:12:21 -0600, Wayne Fay wrote
  I've searched but failed to find a way to control the dependent jar 
  name when it is bundled in the war. Specifically, I would like to 
  remove the trailing version number when the dependent jar is 
  included in the web-inf/lib. Does any one know a way?
 
 If only there was documentation about the WAR plugin which might 
 explain how to achieve this goal... oh wait, there is. Where did you 
 search?
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-
mapping.html

True. The bigger question is why you would want to remove this useful
information from the file names?

manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Customizing maven site

2010-01-20 Thread jaybytez

We are trying to utilize maven across our different platforms.

In fact one of our team members is creating plugins to build
code for our OpenVMS platform.

What I want to know is that the maven site generation is really
tailored to java and the reports it generates.

How would I best customize the maven site capabilities/goals,
so that the documentation could be generated, but Java specific
reports are not generated (like jdepend, javadoc, etc).

Do I just need to exclude these plugins in my pom.xml?

The generation of a site and documentation accompanying the
application codebase would be a huge benefit for centralizing
documentation/communication about our OpenVMS applications,
even if these individual reports are not generated.

Thanks,

jay
-- 
View this message in context: 
http://old.nabble.com/Customizing-maven-site-tp27249142p27249142.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: newbie Assembly plugin question

2010-01-20 Thread Ron Wheeler

+1

Steve Cohen wrote:

Karl Heinz Marbaise wrote:
  

Hi,

take a look here:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

or may be you will take a look here:

http://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html

Kind Regards
Karl Heinz Marbaise


Thanks -

Duh, that was easy.  The descriptor tag contains a reference to the
assembly descriptor file.  Obvious, and yet the book shows no example of
this and I was misled.  The only examples of the descriptor tag point
to one of the predesigned descriptors such as jar-with-dependencies.

Perhaps something for the authors to think about.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: newbie Assembly plugin question

2010-01-20 Thread Wayne Fay
 Perhaps something for the authors to think about.

If you don't post something in the Sonatype Jira about this, you'll be
the only person who knows about this omission.

The likelihood of one of the authors seeing your post here is probably
25% or so.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-dependency-plugin unpack to different folder?

2010-01-20 Thread Dan Tran
you need to make 2 executions, one to unpack and one to the move thru ant run

-D
On Wed, Jan 20, 2010 at 12:38 PM, David Hoffer dhoff...@gmail.com wrote:
 Right but how can I flatten or remove the folder from the artifactItem?  For
 example if I say

 artifactItem
                                    ...

 outputDirectory${project.build.directory}/classes/outputDirectory
                                    includesfoo/bar/config.txt/includes
 /artifactItem

 its going to include the foo/bar folder.  How can I get rid of this?

 -Dave

 On Wed, Jan 20, 2010 at 1:31 PM, Dan Tran dant...@gmail.com wrote:

 for unpack goal, you can specify outputDirectory per artitfactItem
 configuration.

 -Dan


 On Wed, Jan 20, 2010 at 12:09 PM, David Hoffer dhoff...@gmail.com wrote:
  Using the maven-dependency-plugin is there a way to unpack to a different
  folder?  I.e. if I have a resource at /foo/bar/config.txt can I configure
 to
  unpack at /props/config.txt?
 
  -Dave
 

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: newbie Assembly plugin question

2010-01-20 Thread Alexander
I think something near 18%, but not 25%!

2010/1/21 Wayne Fay wayne...@gmail.com

  Perhaps something for the authors to think about.

 If you don't post something in the Sonatype Jira about this, you'll be
 the only person who knows about this omission.

 The likelihood of one of the authors seeing your post here is probably
 25% or so.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




-- 
Regards,
Alexander


Re: maven-dependency-plugin unpack to different folder?

2010-01-20 Thread Wayne Fay
 its going to include the foo/bar folder.  How can I get rid of this?

I don't know if this will work, but worth a try:

outputDirectory${project.build.directory}/classes/foo/bar/outputDirectory
          includesconfig.txt/includes
/artifactItem

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Control the dependent jar name in war

2010-01-20 Thread Peter Hecht (hechtmail)

Hello,

Is the web page formatted correctly? 


The page says @{artifact...@.@{extension}@

should it be:

${artifactId}.${extension}

?

Pete

Wayne Fay wrote:

I've searched but failed to find a way to control the dependent jar name
when it is bundled in the war. Specifically, I would like to remove the
trailing version number when the dependent jar is included in the
web-inf/lib. Does any one know a way?



If only there was documentation about the WAR plugin which might
explain how to achieve this goal... oh wait, there is. Where did you
search?

http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-mapping.html

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


  


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Property loaded by plugin not available to gwt:run

2010-01-20 Thread Ryan Stewart


Anders Hammar wrote:
 
 When you execute
 mvn gwt:run
 you're not executing the maven lifecycle - just that goal of the gwt
 plugin.
 Thus, the plugin bindings you've specified are not executed. Try
 mvn install
 instead.
 

No, as I mentioned in my original post, the gwt:run goal causes the compile
phase to execute, meaning that the properties plugin does execute. You can
see it in the output I included. I'm thinking that maybe running it in this
way, the gwt plugin is executed somehow outside of the lifecycle that the
compile phase is executed in.
-- 
View this message in context: 
http://old.nabble.com/Property-loaded-by-plugin-not-available-to-gwt%3Arun-tp27227122p27251689.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven-dependency-plugin unpack to different folder?

2010-01-20 Thread subir.sasikumar

execution
idprepare-provided-dependencies/id
phasegenerate-resources/phase
goals
  goalcopy-dependencies/goal
/goals
/execution
Copy-dependencies may not copy resources may be.

You can also use maven-antrun-plugin and copy.
configuration
  tasks
copy todir=/props/
  fileset dir=/foo/bar//
/copy
  /tasks
/configuration

Subir

-Original Message-
From: David Hoffer [mailto:dhoff...@gmail.com]
Sent: Thursday, January 21, 2010 1:40 AM
To: Maven Users List
Subject: maven-dependency-plugin unpack to different folder?

Using the maven-dependency-plugin is there a way to unpack to a
different folder?  I.e. if I have a resource at /foo/bar/config.txt can
I configure to unpack at /props/config.txt?

-Dave

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Link to guide-multi-module is broken

2010-01-20 Thread subir.sasikumar
Hi,

This link seems to be broken
'http://maven.apache.org/guides/mini/guide-multi-module.html'

I navigated to this link from
'http://maven.apache.org/guides/mini/guide-ide-eclipse.html#Multiple_Mod
ule_Project' and anchor text is 'recommended hierachical project layout
http://maven.apache.org/guides/mini/guide-multi-module.html .'

Last published date is 20-01-2010

Is this a bug?

Which is the correct page?

/Subir




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com


Re: javadoc:aggregate - change output directory

2010-01-20 Thread ykyuen

Hi all,

The problem is solved, the configuration node should be pasted at the same
level as groupId
http://maven.apache.org/plugins/maven-javadoc-plugin/examples/output-configuration.html
Using Alternative Output Directory 

regards,
kit


ykyuen wrote:
 
 Hi all,
 
 i have a multi-module project and i would like to use the
 javadoc:aggregate to generate all the javadoc.
 
 so i follow the 
 http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
 javadoc:aggregate goal definition  to set my parent pom.xml
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   version2.6.1/version
   executions
   execution
   idaggregate/id
   phasejavadoc/phase
   goals
   goalaggregate/goal
   /goals
   configuration
   
 outputDirectory${project.build.directory}/javadoc/outputDirectory
   
 reportOutputDirectory${project.reporting.outputDirectory}/javadoc/reportOutputDirectory
   /configuration
   /execution
   /executions
 /plugin
 
 
 everything works fine except the output directory is still
 {parent.project}/target/site/apidocs rather than the path i specified in
 the parent pom.xml.
 
 how could i change the output directory of the aggregate javadoc?
 
 by the way, i dun know what is the difference between the
 outputDirectory and reportOutputDirectory. their descriptions are the
 same in 
 http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
 javadoc:aggregate goal definition 
 
 Thanks for your help.
 
 Regards,
 Kit
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/javadoc%3Aaggregate---change-output-directory-tp26975403p27253803.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org