Re: question on capabilities of AntRun plugin

2010-08-26 Thread Cody zhang
Hi,Jacob Can you paste your code example? Best Regards, --Cody.Zhang 2010/8/27 Jacob Beard > Hi, > > I have question on the capabilities of the AntRun plugin. This example > shows the Maven classpaths being copied into Ant properties, which are then > used in Ant: > > > http://m

Re: Change development version

2010-08-26 Thread Anders Hammar
Just a comment regarding your example. I'm assuming that the actual "release" (the final one) will be 1.4, right? And that you're thinking that you will be releasing some kind of milestone called 1.4-pre-1, right? In that case, I would still call the development version 1.4-SNAPSHOT all the way unt

Re: Is the archetype creation documentation confusing to anyone else?

2010-08-26 Thread Hervé BOUTEMY
true, I made bad copy/paste (and a few other english typos, as you can see). Thanks for the report. I fixed it, it should be available on the site in a few hours. If you find other errors int he documentation, please open Jira issues. It's even better if you can propose a patch :) Regards, Her

Re: Multiple profile execution in maven

2010-08-26 Thread Jesse Farinacci
Greetings, On Thu, Aug 26, 2010 at 11:29 PM, Sridhar Laxmipuram Srinivasan wrote: > I have tried everything ie with multiple -Ps, comma separated list but in > vain :), I think it is a bug, if anybody has any workaround please let me know > $ echo "This worked for me just 2 minutes ago!" $ mvn

RE: Multiple profile execution in maven

2010-08-26 Thread Sridhar Laxmipuram Srinivasan
I have tried everything ie with multiple -Ps, comma separated list but in vain :), I think it is a bug, if anybody has any workaround please let me know Thnkx sridharl -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent:

question on capabilities of AntRun plugin

2010-08-26 Thread Jacob Beard
Hi, I have question on the capabilities of the AntRun plugin. This example shows the Maven classpaths being copied into Ant properties, which are then used in Ant: http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html I thougth it would be useful to reference these cla

Is the archetype creation documentation confusing to anyone else?

2010-08-26 Thread lukewpatterson
Which is the new way? archetype.xml or archetype-metadata.xml ? The "Guide to Creating Archetypes" http://maven.apache.org/guides/mini/guide-creating-archetypes.html says to use: "an archetype descriptor (archetype.xml in directory: src/main/resources/META-INF/maven/)." but then it also says:

Re: How to deploy secondary artifacts using deploy plugin

2010-08-26 Thread Victor Calvello
Thanks Kalle, worked like a charm! On Thu, Aug 26, 2010 at 5:20 PM, Kalle Korhonen wrote: > You need to tell Maven about the additional artifacts. Attach them to > your module with buildhelper plugin, specifying a different > type/classifier. See > http://mojo.codehaus.org/build-helper-maven-plug

Re: Change development version

2010-08-26 Thread C. Benson Manica
Maybe indeed! This solves a lot of problems - thanks! On Thu, Aug 26, 2010 at 11:27 AM, Schrecker, Wolfgang < wolfgang.schrec...@atosorigin.com> wrote: > Maybe this plugin would help: > http://mojo.codehaus.org/versions-maven-plugin/ > > W. > > -Ursprüngliche Nachricht- > Von: C. Benson

Re: nexus, local repository, and m2eclipse

2010-08-26 Thread Anders Hammar
A Bot? Are we talking about Martin? :-) /Anders On Thu, Aug 26, 2010 at 16:58, Wayne Fay wrote: > > Maybe a good idea is to put a pointer to the nexus list in the most > obvious > > place(s) people would look in the Maven on-line docs, saying something > like "for > > questions about Nexus, pl

Re: No inherited profiles in effective-pom

2010-08-26 Thread Anders Hammar
But the config of profile in the parent is applied to the pom, right? I believe that's how it should be. /Anders On Thu, Aug 26, 2010 at 16:41, Hoehmann, Andreas < andreas.hoehmann@siemens.com> wrote: > Hello, > > I have parent artifact with a child artifact. > The parent contains a profile "

Re: How to deploy secondary artifacts using deploy plugin

2010-08-26 Thread Kalle Korhonen
You need to tell Maven about the additional artifacts. Attach them to your module with buildhelper plugin, specifying a different type/classifier. See http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Kalle On Thu, Aug 26, 2010 at 1:02 PM, Victor Calvello wrote: > Hi guys, > > I'm t

How to deploy secondary artifacts using deploy plugin

2010-08-26 Thread Victor Calvello
Hi guys, I'm trying to deploy to a release nexus repository 2 artifacts with the same GAV but different classifier and packaging using the maven-deploy-plugin. The first one goes well. The problem is that fails when wants to upload or generate the pom for the second artifact because the first arti

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Anders Hammar
Nope, it's in the super-POM. I might remember the name incorrectly, but it exists. You can trigger it by a property as well (I think it performRelease=true). It should work for snapshots as well. However, I've never tried it. It attaches sources and javadocs. One note though: I've seen comments fr

Re: Why all these errors with mvn site:site concerning https://maven-repository.dev.java.net/nonav/repository

2010-08-26 Thread Fabricio Lemos
I´m also getting this error with maven 3.0-beta-2 and site plugin 3.0-beta-1. Can you point me to the Jira issue for this bug? thanks, Fabricio Lemos On 29/7/2010 02:19, Rick R wrote: On Tue, Jul 27, 2010 at 4:34 PM, Brian Fox wrote: one of the reports in there hits all repos known to the

RE: Ear plugin issue

2010-08-26 Thread EJ Ciramella
With -X -e, is it any clearer as to what it's looking for? What the GAV is? -Original Message- From: nishant@hsbcib.com [mailto:nishant@hsbcib.com] Sent: Thursday, August 26, 2010 1:37 PM To: Maven Users List Cc: Maven Users List Subject: Re: Ear plugin issue Just that unable t

Re: Ear plugin issue

2010-08-26 Thread nishant . raj
Just that unable to find clientModule Stephane Nicoll Aug 26 2010 18:35 Mail Size: 10664 Please respond to "Maven Users List" To Maven Users List cc Subject Re: Ear plugin issue Entity HSBC Bank plc - HBEU What error message do you get exactly? ClientModules is not a depende

Re: Ear plugin issue

2010-08-26 Thread Stephane Nicoll
What error message do you get exactly? ClientModules is not a dependency of the project or something else? S. On Thu, Aug 26, 2010 at 4:20 PM, wrote: > It seems the attachments are not allowed. I have included the ear pom > below.. > > > *

Re: Correcting a groupID

2010-08-26 Thread Vincent Latombe
You'll need a dependencyManagement to force A to use c-n:c-n:12 which will depends on org.apache.commons.net:c-n:12. 2010/8/26 Benson Margulies > On Thu, Aug 26, 2010 at 8:41 AM, Stephen Connolly > wrote: > > Why not have commons-net:commons-net become an empty jar which has a > > dependency on

Re: Maven community maintaining popular JS lib deps? (was: Re: downloading JavaScript libraries)

2010-08-26 Thread Jesse Farinacci
Greetings, On Thu, Aug 26, 2010 at 12:53 PM, Manos Batsis wrote: > > The only reason to package those javascript files in JARs and upload them to > the maven central repo is for other projects to reuse them as dependencies. > I don't think this is your case. This definitely wasn't what he asked

Re: downloading JavaScript libraries

2010-08-26 Thread Jesse Farinacci
Hi Jake, On Thu, Aug 26, 2010 at 11:51 AM, Jacob Beard wrote: > > I think this is where my comprehension is breaking down. In order for other > users to automatically download these new JavaScript library modules that I > would create, would these new modules need to be published in a Maven > rep

Maven community maintaining popular JS lib deps? (was: Re: downloading JavaScript libraries)

2010-08-26 Thread Manos Batsis
On 08/26/2010 06:51 PM, Jacob Beard wrote: On 10-08-26 11:27 AM, Jesse Farinacci wrote: Making them proper Maven modules and populating them ONE time manually when you create the artifact would enable all of your users to automatically download the artifact which contains the javascript library.

Re: downloading JavaScript libraries

2010-08-26 Thread Jacob Beard
Hi Jesse, On 10-08-26 11:27 AM, Jesse Farinacci wrote: Making them proper Maven modules and populating them ONE time manually when you create the artifact would enable all of your users to automatically download the artifact which contains the javascript library. I think this is where my compr

Re: Correcting a groupID

2010-08-26 Thread Benson Margulies
On Thu, Aug 26, 2010 at 8:41 AM, Stephen Connolly wrote: > Why not have commons-net:commons-net become an empty jar which has a > dependency on org.apache.commons:net > > that way, anyone with the old GA coords will just have an empty jar on their > classpath and the correct jar as well i don't s

Re: downloading JavaScript libraries

2010-08-26 Thread Jesse Farinacci
Greetings, On Thu, Aug 26, 2010 at 10:54 AM, Jacob Beard wrote: > > I'm new to Maven, and so I don't completely understand your answer. Why > would it be desirable to create a module for each JavaScript library in this > context, especially as this will not facilitate their automated downloading?

AW: Change development version

2010-08-26 Thread Schrecker, Wolfgang
Maybe this plugin would help: http://mojo.codehaus.org/versions-maven-plugin/ W. -Ursprüngliche Nachricht- Von: C. Benson Manica [mailto:cbman...@gmail.com] Gesendet: Donnerstag, 26. August 2010 17:23 An: Maven Users List Betreff: Change development version What is the "proper" way to u

Change development version

2010-08-26 Thread C. Benson Manica
What is the "proper" way to update the development version of a project (and its subprojects if any)? Say a project is currently at 1.4-SNAPSHOT but I decide I want to mark it as 1.4-pre-1-SNAPSHOT - is there a way to do that without manually editing all the poms involved? -- C. Benson Manica cb

Re: Maven build for compiling JavaScript project

2010-08-26 Thread Jacob Beard
Hi Manos, Reply below: On 10-08-26 11:01 AM, Manos Batsis wrote: - Introduce new ant targets without the dependencies to call in each appropriate Maven phase, thus preserving the old targets and the Ant build behavior to be used if needed and when not working with Maven This one sounds like a

Re: nexus, local repository, and m2eclipse

2010-08-26 Thread Wayne Fay
>  Maybe a good idea is to put a pointer to the nexus list in the most obvious > place(s) people would look in the Maven on-line docs, saying something like > "for > questions about Nexus, please post to the Nexus mailing list(s) found here". But Nexus is not the only MRM around, so should the Ma

Re: Executing ant, but only once

2010-08-26 Thread Baptiste MATHUS
You're using ant to replace variables or so? This is a standard maven feature: you want to have a look here http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Cheers 2010/8/26 Thomas Trepper >

Re: downloading JavaScript libraries

2010-08-26 Thread Jacob Beard
Manos, Thanks for the reply. This makes good sense to me. Jake On 10-08-26 10:54 AM, Manos Batsis wrote: On 08/26/2010 05:44 AM, Jacob Beard wrote: My project includes dependencies on several JavaScript libraries, including Dojo, RequireJS and beautify-js. I'm currently using Ant's get task t

Re: downloading JavaScript libraries

2010-08-26 Thread Jacob Beard
Hi Jesse, I'm new to Maven, and so I don't completely understand your answer. Why would it be desirable to create a module for each JavaScript library in this context, especially as this will not facilitate their automated downloading? Also, it still seems like it would be desirable to instr

Re: downloading JavaScript libraries

2010-08-26 Thread Manos Batsis
On 08/26/2010 05:54 PM, Manos Batsis wrote: On 08/26/2010 05:44 AM, Jacob Beard wrote: My project includes dependencies on several JavaScript libraries, including Dojo, RequireJS and beautify-js. I'm currently using Ant's get task to download these dependencies, but I'd like to integrate this wi

Re: Maven build for compiling JavaScript project

2010-08-26 Thread Manos Batsis
On 08/25/2010 11:43 PM, Jacob Beard wrote: On 10-08-25 02:41 PM, Manos Batsis wrote: The way I get this, you don't have to change the behavior of Maven's compiler plugin. If you check out [1], you'll see there are plenty of lifecycle phases to hook your ant tasks (or whatnot) and perform steps

No inherited profiles in effective-pom

2010-08-26 Thread Hoehmann, Andreas
Hello, I have parent artifact with a child artifact. The parent contains a profile "foo". The child contains a profile "bar". "mvn help:effective-pom" in child doesn't show the foo profile from parent but shows the "bar" profile. Is this a feature or a bug? ;) Regards Andreas -[http://www.aho

Executing ant, but only once

2010-08-26 Thread Thomas Trepper
Hi all, I have now the following part in the pom: org.apache.maven.plugins maven-antrun-plugin generate-version-info run process-sources which should execute an ant-task, which modifies and replaces some entries in the sources. I want this be executed only ONCE and before any

Re: downloading JavaScript libraries

2010-08-26 Thread Manos Batsis
On 08/26/2010 05:44 AM, Jacob Beard wrote: My project includes dependencies on several JavaScript libraries, including Dojo, RequireJS and beautify-js. I'm currently using Ant's get task to download these dependencies, but I'd like to integrate this with my Maven build. The way I thought I would

Re: Ear plugin issue

2010-08-26 Thread Timothy Mcginnis
In add ${project.artifactId}-${project.version}.jar and make sure your project in Eclipse is named using the [artifactId]-[version] Name Template. Tim McGinnis 717 720-1962 Web Development AES/PHEAA From: nishant@hsbcib.com To: "Maven Users List" Cc: users@maven.apache.org Date: 08/26/

[Solved] Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Thomas Trepper
Hi all, I got the error, it was something inside the old pom, I accidently forgot to save before testing. Sorry for the inconvenience und thank you all very much for your help. Thomas Am 26.08.2010 16:12, schrieb Thomas Trepper: Hi Mathus, thanks a lot for your help. I have updated m

Re: Ear plugin issue

2010-08-26 Thread nishant . raj
It seems the attachments are not allowed. I have included the ear pom below.. ***

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Vincent Latombe
Huh? Is this some kind of predefined profile? I think you got mixed up Anders ;) 2010/8/26 Anders Hammar > mvn install -P release-profile > > Should do it. > > /Anders (mobile) > > Den 2010 8 26 16:13 skrev "Thomas Trepper" : > > Hi Mathus, > > > > thanks a lot for your help. I have updated my

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Anders Hammar
mvn install -P release-profile Should do it. /Anders (mobile) Den 2010 8 26 16:13 skrev "Thomas Trepper" : > Hi Mathus, > > thanks a lot for your help. I have updated my pom as you told me and I > executed mvn install, which works. Thanks a lot. But it produces only > the main jar. But I want to

Ear plugin issue

2010-08-26 Thread nishant . raj
Hi All, I am trying to get the ear plugin working. Followed all the guidelines but could not get it working as its not able to "find" the module that I want to package within the ear It looks for the module in my nexus repository but does not find it. I have also got the "Resolve workspace pro

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Thomas Trepper
Hi Mathus, thanks a lot for your help. I have updated my pom as you told me and I executed mvn install, which works. Thanks a lot. But it produces only the main jar. But I want to have javadoc, sources, etc also as jars, therefore I executed mvn clean source:jar source:test-jar jar:test-jar

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Baptiste MATHUS
First, I've simplified the pom your provided. http://pastebin.com/64XC39VS is totally equivalent for what you put. Could you run mvn install and show us the output? Thanks 2010/8/26 Baptiste MATHUS > Specifying that many plugins as you did is just a mean of getting in > trouble soon. > Launchi

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Baptiste MATHUS
Specifying that many plugins as you did is just a mean of getting in trouble soon. Launching a specific plugin, particularly some, with maven is something one almost never does. You'd better post here what's the problem running mvn package. This should work this way, simply. Using maven the way y

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Thomas Trepper
Yes, I tried that first, but it did not work and during the experiments to solve the issue the long commandline arised. Sorry for that, but the simple mvn install did not do it either. I will get the same error... Am 26.08.2010 15:12, schrieb Anders Hammar: Why the extremely troublesome mvn

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Anders Hammar
Why the extremely troublesome mvn command line? Why not just "mvn install"? /Anders On Thu, Aug 26, 2010 at 14:20, Thomas Trepper wrote: > Hi all, > > this is a snippet from my build, which says, that I have an artifact and > attached artifacts, but, whatever I am doing, I always get the messag

Re: Multiple profile execution in maven

2010-08-26 Thread Anders Hammar
I checked the docs at maven.apache.org and they say comma list. But as always, there might be bugs...:-) /Anders On Thu, Aug 26, 2010 at 14:42, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > I think you use multiple -P's to activate them > > -Px -Py > > but that could all just be m

Re: Multiple profile execution in maven

2010-08-26 Thread nishant . raj
You can use a comma separated list -Px,y Stephen Connolly Aug 26 2010 13:43 Mail Size: 6227 Please respond to "Maven Users List" To Maven Users List cc Subject Re: Multiple profile execution in maven Entity HSBC Bank plc - HBEU I think you use multiple -P's to activate them

Re: Multiple profile execution in maven

2010-08-26 Thread Stephen Connolly
I think you use multiple -P's to activate them -Px -Py but that could all just be my imagination ;-) On 26 August 2010 12:33, Anders Hammar wrote: > It should work. However, I'm not sure if I have ever enabled more than one > profile from command line. > Just for the heck of it, could you try

Re: Correcting a groupID

2010-08-26 Thread Stephen Connolly
Why not have commons-net:commons-net become an empty jar which has a dependency on org.apache.commons:net that way, anyone with the old GA coords will just have an empty jar on their classpath and the correct jar as well On 26 August 2010 00:13, Benson Margulies wrote: > Let me recap the pain s

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Thomas Trepper
Hi Brian, I am sorry, I do not know, you you exactly mean. For me it is a problem, because maven does not install my main artifact: com.blueclaim:logging-api:jar:0.0.4-SNAPSHOT Following is my pom: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

Re: Correcting a groupID

2010-08-26 Thread Ron Wheeler
On 26/08/2010 8:10 AM, sebb wrote: On 26 August 2010 12:42, Ron Wheeler wrote: On 25/08/2010 7:13 PM, Benson Margulies wrote: Let me recap the pain scenario here: Existing poms reference commons-net under the old group ID. commons-net releases a new version under a new group ID. Dependen

Re: Question to: "No primary artifact to install..."

2010-08-26 Thread Brian Fox
this means you have no artifact with an empty classifier. This is not necessarily a problem, if you're using the build helper or assembly to build attached artifacts. On Thu, Aug 26, 2010 at 8:20 AM, Thomas Trepper wrote: >  Hi all, > > this is a snippet from my build, which says, that I have an

Question to: "No primary artifact to install..."

2010-08-26 Thread Thomas Trepper
Hi all, this is a snippet from my build, which says, that I have an artifact and attached artifacts, but, whatever I am doing, I always get the message: No primary artifact to install, installing attached artifacts instead. Can anybody point me to the right direction please? Thanks a lot an

Re: Correcting a groupID

2010-08-26 Thread sebb
On 26 August 2010 12:42, Ron Wheeler wrote: >  On 25/08/2010 7:13 PM, Benson Margulies wrote: >> >> Let me recap the pain scenario here: >> >> Existing poms reference commons-net under the old group ID. >> >> commons-net releases a new version under a new group ID. >> >> Dependencies under the old

Re: Maven parent classpath issues

2010-08-26 Thread Aleksey Didik
Hello. Use ${basedir}/src/main/jibx/customization.xml instead your variant. By default work directory is a directory when you start mvn. Always use ${basedir} before you relative file paths. hth, Aleksey. 26.08.2010 15:51, nishant@hsbcib.com ?: src/main/jibx/customization.xml f

Re: Maven parent classpath issues

2010-08-26 Thread Anders Hammar
I'm guessing that you have the plugin bound in the parent pom. Move it to the child project and you should be fine. /Anders On Thu, Aug 26, 2010 at 13:51, wrote: > > Hi All, > > I am trying to build a project hierarchy. > > The structure looks something like this, > > > RootProject (Pom packagi

Re: nexus, local repository, and m2eclipse

2010-08-26 Thread Marshall Schor
Maybe a good idea is to put a pointer to the nexus list in the most obvious place(s) people would look in the Maven on-line docs, saying something like "for questions about Nexus, please post to the Nexus mailing list(s) found here". That way, users would get "just in time" education :-). -Marsh

Maven parent classpath issues

2010-08-26 Thread nishant . raj
Hi All, I am trying to build a project hierarchy. The structure looks something like this, RootProject (Pom packaging) Child Project (jar packaging) The child project uses a plugin which uses src/main/jibx/customization.xml file I can build the child project independently. The probl

Re: Correcting a groupID

2010-08-26 Thread Ron Wheeler
On 25/08/2010 7:13 PM, Benson Margulies wrote: Let me recap the pain scenario here: Existing poms reference commons-net under the old group ID. commons-net releases a new version under a new group ID. Dependencies under the old group ID won't be seen as 'the same thing' as the new group ID, s

Re: Multiple profile execution in maven

2010-08-26 Thread Anders Hammar
It should work. However, I'm not sure if I have ever enabled more than one profile from command line. Just for the heck of it, could you try adding a space between -P and the profiles list ("-P x,y")? /Anders On Thu, Aug 26, 2010 at 13:16, Sridhar Laxmipuram Srinivasan < sridh...@yahoo-inc.com> w

Multiple profile execution in maven

2010-08-26 Thread Sridhar Laxmipuram Srinivasan
Hi, I have 2 profiles which are deactivated by default but at run time I need to execute both of them, I have tried with -P, but of no use it always executes the latter, Could you kindly provide me a solution to this. I am using maven 2.2.1 version thnkx sridharl

parent pom installed/deployed additional "{$project.artifactId}-${project.version}-site.xml" artefact

2010-08-26 Thread Oleg Estekhin
Hi I have a multi-module project with a parent module and three child modules. On deployment the parent module somehow produced additional "{$project.artifactId}-${project.version}-site.xml" artefact which got installed and deployed along with the parent module's pom. The contents of that -s