RE: [***SPAM*** Score/Req: 10.4/5.0] SVN url password
Are you talking about SVN password or SCM password? The SCM will be picked up from settings.xml assuming you use the reporitory id that matches the server defined in settings.xml. The SVN credentials can be cached in your home directory under ".svn". Regards, Maciej > -Original Message- > From: Alejandro Nicolas Mascarell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 3:38 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] SVN url password > > Does anyone know where is the SCM user password provided when using SCM > url? > As from the specification (and checked on svnScmProviderRepository class) > the password is not gathered for the URL, as in the case on CVS. I have > checked whether the password was taken from settings.xml file but it seems > it is not the case. > > Thanks! > > Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVN url password
Does anyone know where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Thanks! Alex
[ANN] first release of Explosion plugin for Maven 1.X
http://maven-explosion.sourceforge.net/ “This Maven 1.x plugin (work in progress for Maven 2.x) allows to process an artifact (and its contained artifacts) into an exploded directory structure. The idea of this plugin is to let Maven normally build the artifacts (JARs, WARs and the EAR file) and then 'post processes' the main artifact (EAR, WAR or JAR) and explodes it. The process may be recursive, allowing exploding any other artifact contained in a previously exploded one. “ The plugin was tested with Maven 1.1-beta2. Christophe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [***SPAM*** Score/Req: 10.4/5.0] Re: Hibernate with Maven
Thanks, I also discovered that you can exclude it from download (if say this jar is already available on the server) You can do the following: org.hibernate hibernate 3.1.1 javax.transaction jta Seems to be working for me. Regards Maciej > -Original Message- > From: Napoleon Esmundo Ramirez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 1 February 2006 2:51 PM > To: Maven Users List > Subject: [***SPAM*** Score/Req: 10.4/5.0] Re: Hibernate with Maven > > Hello, > > AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be > redistributed > in ibiblio. You'll have to manually install that in your local repository > ( > http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html). > > You can download it here: http://java.sun.com/products/jta/ > > Cheers! > Nap > > On 2/1/06, Maciej Mastalarczuk <[EMAIL PROTECTED]> wrote: > > > > Hi Everyone, > > > > > > > > I am trying to compile a project that uses Hibernate (3.1.1) with Maven > 2. > > It seems like there is a dependency missing at ibiblio > > (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). > > > > > > > > Is it a known issue or I'm doing something wrong? > > > > > > > > Regards, > > > > > > > > Maciej Mastalarczuk > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate with Maven
Hello, AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be redistributed in ibiblio. You'll have to manually install that in your local repository ( http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html). You can download it here: http://java.sun.com/products/jta/ Cheers! Nap On 2/1/06, Maciej Mastalarczuk <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > > > > I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. > It seems like there is a dependency missing at ibiblio > (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). > > > > Is it a known issue or I'm doing something wrong? > > > > Regards, > > > > Maciej Mastalarczuk > > >
Hibernate with Maven
Hi Everyone, I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. It seems like there is a dependency missing at ibiblio (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). Is it a known issue or I'm doing something wrong? Regards, Maciej Mastalarczuk
Maven 1.1b Junit tests - Threads close down
Hi, I have a Junit test class, mytest and I am executing maven test. In mytest, I am executing multiple threads, when I execute maven test, the threads starts and close down automatically. I have set maven.junit.fork=true(in maven-test-plugin) but I still have the same problem. I believe this is a maven issue as when I run the junit test without maven, they work fine. Can anyone help? Thanks Ashley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Thanks all for the help! Brad Stephen Duncan wrote: A needs to be built, and installed in the local repository. It does not have to be deployed to any remote repository. -Stephen On 1/31/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote: Dov, Thanks for the reply. That sort of explains things. I think what I am really getting at is this: when a project (call it project B) has a dependency that is another one of your own projects (call the dependency A) , rather than a third party library (jar), is the dependency (A) being pulled from the repository, or is the dependency (A) being built from the project as a result of project B being built? If the answer is that A is pulled from the repository, it sounds like A must first be built and published to the repository. That's a simple conclusion -- but if that's the case, it means that in order to accomplish parallel development in projects A and B, it means that A is going to have to be published in some state of partial completion to the repository, in order for B to build? On the other hand, if the answer is that A is being built on demand from source, then it solves the parallel development issue, but it brings up the issue of how to specify that you want a project to build rather than the dependency to be pulled from the repository. I'm pretty sure the answer is the former, but I just need clarification on a couple of these items. Brad On Jan 31, 2006, at 4:07 PM, Dov Wasserman wrote: What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't "grab" it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of "compile", then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: my-group project-A 1.0-SNAPSHOT compile ... You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
A needs to be built, and installed in the local repository. It does not have to be deployed to any remote repository. -Stephen On 1/31/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote: > Dov, > > Thanks for the reply. That sort of explains things. I think what I am > really getting at is this: when a project (call it project B) has a > dependency that is another one of your own projects (call the > dependency A) , rather than a third party library (jar), is the > dependency (A) being pulled from the repository, or is the dependency > (A) being built from the project as a result of project B being > built? If the answer is that A is pulled from the repository, it > sounds like A must first be built and published to the repository. > That's a simple conclusion -- but if that's the case, it means that > in order to accomplish parallel development in projects A and B, it > means that A is going to have to be published in some state of > partial completion to the repository, in order for B to build? > > On the other hand, if the answer is that A is being built on demand > from source, then it solves the parallel development issue, but it > brings up the issue of how to specify that you want a project to > build rather than the dependency to be pulled from the repository. > > I'm pretty sure the answer is the former, but I just need > clarification on a couple of these items. > > Brad > > On Jan 31, 2006, at 4:07 PM, Dov Wasserman wrote: > > > What type of projects are A and B? Jars? War and jar? Jar is not meant > > to be deployed, so it doesn't "grab" it dependent projects, it just > > references them for compiling (or testing). A war is meant to be > > deployed on its own, so its dependencies are pulled into it's > > WEB-INF/lib directory along with it when it's packaged up into a .war > > file artifact. > > > > If you specify all your dependencies with scope of "compile", then > > they > > will all be pulled into the eventual war file, or other deployable > > artifact. > > > > Does that help explain things? > > > > -Original Message- > > From: Brad O'Hearne [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 31, 2006 5:49 PM > > To: Maven Users List > > Subject: Re: Need help setting up a transitive dependency > > > > Dov, > > > > Thanks for the reply. Ok, so this isn't going to trigger a build of > > project A, its just going to pull project A from the repository as it > > would any other dependency. Is this correct, or am I still missing > > something? How do I get project B to automatically pull all of project > > A's dependencies along with project A? Will this happen automatically? > > > > Brad > > > > Dov Wasserman wrote: > > > >> Add a section in project B's pom.xml: > >> > >> > >> > >>my-group > >>project-A > >>1.0-SNAPSHOT > >>compile > >> > >>... > >> > >> > >> You might need to configure the scope property to something other > >> than > >> compile if you don't want A's jar file to be included with B's > >> artifacts. Generally, you can leave it as compile. > >> > >> Hope this helps, > >> > >> -Dov > >> > >> > >> -Original Message- > >> From: Brad O'Hearne [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, January 31, 2006 5:39 PM > >> To: users@maven.apache.org > >> Subject: Need help setting up a transitive dependency > >> > >> Here's a maven 101 question: > >> > >> I need help setting up a transitive dependency. I have project A, > >> which > > > >> is properly set up and building using maven. Now I need to configure > >> project B to depend on project A. How do I configure this in my > >> pom.xml > > > >> to refer to another project? > >> > >> Thanks for your help > >> > >> Brad > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
It only works if you run the mojo on command line ;-) -D On 1/31/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > What's more, when I add @execute phase="compile" it still doesn't work... > > On 2/1/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > I see...but I still don't understand then, how I can bind my mojo to a > > specific phase in the lifecycle, without triggering a parallel > > lifecycle run (which is "@execute", right?). If I bind to the > > 'process-classes', and specifiy "@execute phase=compile" I wouldn't > > want to cause maven to initiate another run and recompile the project > > since it already did that. > > > > My second objective is to spare the plugin users from specifying the > > element because it seems to me it's a decision my plugin > > should make - not the users. > > > > Thanks for your kind help... > > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > A mojo is a goal, yes. What's to stop you from having two mojos, each > > > with the same default phase? > > > > > > -Original Message- > > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, January 31, 2006 6:02 PM > > > To: Maven Users List > > > Subject: Re: [m2] binding mojos to lifecycle > > > > > > Hi Mike, > > > > > > I'm not sure I follow - I specify the "@phase" inside my mojo (which > is > > > basically a goal, right?) so as-far-as-I-understand maven should know > > > which goal to invoke... > > > > > > > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > > Look at it the other way. You've told maven that you are interested > > > > in having this plugin execute at some point during your lifecycle > but > > > > you haven't defined which GOAL to execute. Remember a plugin can > have > > > > > > > N goals. Maven should use the goal's default phase if you don't > > > > specify the element of the execution. > > > > > > > > > > > > -Original Message- > > > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, January 31, 2006 5:39 PM > > > > To: Maven Users List > > > > Subject: [m2] binding mojos to lifecycle > > > > > > > > Hi, > > > > > > > > I have a small mojo which I want to bind to the 'process-classes' > > > > phase. I've read > > > > http://maven.apache.org/developers/mojo-api-specification.html which > > > > indicates I should add a "@phase process-classes" to the class > > > > comment, and I did: > > > > > > > > /** > > > > * > > > > * @goal generate > > > > * @phase process-classes > > > > * @author arik > > > > */ > > > > public class { > > > > ... > > > > } > > > > > > > > In the project that uses this plugin I declared: > > > > > > > > > > > > > > > > > > > > myGroupId > > > > myPluginArtifactId > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > But the mojo isn't activated. > > > > > > > > If, however, I add this to the invoking POM (inside the above > > > > > section): > > > > > > > > > > > > process-classes > > > > > > > > generate > > > > > > > > > > > > > > > > > > > > everything works. > > > > > > > > It looks like I'm missing something but I can't figure out what...I > > > > went through all of the guides in the M2 site, but couldn't find a > > > > reason for this. Isn't M2 supposed to bind my mojo automatically > (due > > > > to the @phase tag)? > > > > > > > > > > > > -- > > > > Regards, > > > > _ > > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Regards, > > > _ > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Regards, > > _ > > Arik Kfir[EMAIL PROTECTED] > > > > > -- > Regards, >_ >Arik Kfir[EMAIL PROTECTED] >
Re: [m2] binding mojos to lifecycle
What's more, when I add @execute phase="compile" it still doesn't work... On 2/1/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > I see...but I still don't understand then, how I can bind my mojo to a > specific phase in the lifecycle, without triggering a parallel > lifecycle run (which is "@execute", right?). If I bind to the > 'process-classes', and specifiy "@execute phase=compile" I wouldn't > want to cause maven to initiate another run and recompile the project > since it already did that. > > My second objective is to spare the plugin users from specifying the > element because it seems to me it's a decision my plugin > should make - not the users. > > Thanks for your kind help... > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > A mojo is a goal, yes. What's to stop you from having two mojos, each > > with the same default phase? > > > > -Original Message- > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 31, 2006 6:02 PM > > To: Maven Users List > > Subject: Re: [m2] binding mojos to lifecycle > > > > Hi Mike, > > > > I'm not sure I follow - I specify the "@phase" inside my mojo (which is > > basically a goal, right?) so as-far-as-I-understand maven should know > > which goal to invoke... > > > > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > > Look at it the other way. You've told maven that you are interested > > > in having this plugin execute at some point during your lifecycle but > > > you haven't defined which GOAL to execute. Remember a plugin can have > > > > > N goals. Maven should use the goal's default phase if you don't > > > specify the element of the execution. > > > > > > > > > -Original Message- > > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, January 31, 2006 5:39 PM > > > To: Maven Users List > > > Subject: [m2] binding mojos to lifecycle > > > > > > Hi, > > > > > > I have a small mojo which I want to bind to the 'process-classes' > > > phase. I've read > > > http://maven.apache.org/developers/mojo-api-specification.html which > > > indicates I should add a "@phase process-classes" to the class > > > comment, and I did: > > > > > > /** > > > * > > > * @goal generate > > > * @phase process-classes > > > * @author arik > > > */ > > > public class { > > > ... > > > } > > > > > > In the project that uses this plugin I declared: > > > > > > > > > > > > > > > myGroupId > > > myPluginArtifactId > > > > > > > > > > > > > > > > > > > > > > > > But the mojo isn't activated. > > > > > > If, however, I add this to the invoking POM (inside the above > > > section): > > > > > > > > > process-classes > > > > > > generate > > > > > > > > > > > > > > > everything works. > > > > > > It looks like I'm missing something but I can't figure out what...I > > > went through all of the guides in the M2 site, but couldn't find a > > > reason for this. Isn't M2 supposed to bind my mojo automatically (due > > > to the @phase tag)? > > > > > > > > > -- > > > Regards, > > > _ > > > Arik Kfir[EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Regards, > > _ > > Arik Kfir[EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Regards, > _ > Arik Kfir[EMAIL PROTECTED] > -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
I see...but I still don't understand then, how I can bind my mojo to a specific phase in the lifecycle, without triggering a parallel lifecycle run (which is "@execute", right?). If I bind to the 'process-classes', and specifiy "@execute phase=compile" I wouldn't want to cause maven to initiate another run and recompile the project since it already did that. My second objective is to spare the plugin users from specifying the element because it seems to me it's a decision my plugin should make - not the users. Thanks for your kind help... On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > A mojo is a goal, yes. What's to stop you from having two mojos, each > with the same default phase? > > -Original Message- > From: Arik Kfir [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 31, 2006 6:02 PM > To: Maven Users List > Subject: Re: [m2] binding mojos to lifecycle > > Hi Mike, > > I'm not sure I follow - I specify the "@phase" inside my mojo (which is > basically a goal, right?) so as-far-as-I-understand maven should know > which goal to invoke... > > > On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > Look at it the other way. You've told maven that you are interested > > in having this plugin execute at some point during your lifecycle but > > you haven't defined which GOAL to execute. Remember a plugin can have > > > N goals. Maven should use the goal's default phase if you don't > > specify the element of the execution. > > > > > > -Original Message- > > From: Arik Kfir [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 31, 2006 5:39 PM > > To: Maven Users List > > Subject: [m2] binding mojos to lifecycle > > > > Hi, > > > > I have a small mojo which I want to bind to the 'process-classes' > > phase. I've read > > http://maven.apache.org/developers/mojo-api-specification.html which > > indicates I should add a "@phase process-classes" to the class > > comment, and I did: > > > > /** > > * > > * @goal generate > > * @phase process-classes > > * @author arik > > */ > > public class { > > ... > > } > > > > In the project that uses this plugin I declared: > > > > > > > > > > myGroupId > > myPluginArtifactId > > > > > > > > > > > > > > > > But the mojo isn't activated. > > > > If, however, I add this to the invoking POM (inside the above > > section): > > > > > > process-classes > > > > generate > > > > > > > > > > everything works. > > > > It looks like I'm missing something but I can't figure out what...I > > went through all of the guides in the M2 site, but couldn't find a > > reason for this. Isn't M2 supposed to bind my mojo automatically (due > > to the @phase tag)? > > > > > > -- > > Regards, > > _ > > Arik Kfir[EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Regards, > _ > Arik Kfir[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards, _ Arik Kfir[EMAIL PROTECTED]
RE: [m2] phases and goals
Best I know of: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycl e.html -Original Message- From: William Ferguson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:12 PM To: users@maven.apache.org Subject: [m2] phases and goals Can someone point me to some doco that explains a phase, goal and mojo and lists the available phases. I thought I vaguely understood, but have become confused by the thread on "binding mojos to lifecycle". William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] binding mojos to lifecycle
A mojo is a goal, yes. What's to stop you from having two mojos, each with the same default phase? -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 6:02 PM To: Maven Users List Subject: Re: [m2] binding mojos to lifecycle Hi Mike, I'm not sure I follow - I specify the "@phase" inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > Look at it the other way. You've told maven that you are interested > in having this plugin execute at some point during your lifecycle but > you haven't defined which GOAL to execute. Remember a plugin can have > N goals. Maven should use the goal's default phase if you don't > specify the element of the execution. > > > -Original Message- > From: Arik Kfir [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 31, 2006 5:39 PM > To: Maven Users List > Subject: [m2] binding mojos to lifecycle > > Hi, > > I have a small mojo which I want to bind to the 'process-classes' > phase. I've read > http://maven.apache.org/developers/mojo-api-specification.html which > indicates I should add a "@phase process-classes" to the class > comment, and I did: > > /** > * > * @goal generate > * @phase process-classes > * @author arik > */ > public class { > ... > } > > In the project that uses this plugin I declared: > > > > > myGroupId > myPluginArtifactId > > > > > > > > But the mojo isn't activated. > > If, however, I add this to the invoking POM (inside the above > section): > > > process-classes > > generate > > > > > everything works. > > It looks like I'm missing something but I can't figure out what...I > went through all of the guides in the M2 site, but couldn't find a > reason for this. Isn't M2 supposed to bind my mojo automatically (due > to the @phase tag)? > > > -- > Regards, > _ > Arik Kfir[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] phases and goals
Can someone point me to some doco that explains a phase, goal and mojo and lists the available phases. I thought I vaguely understood, but have become confused by the thread on "binding mojos to lifecycle". William - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
Hi Mike, I'm not sure I follow - I specify the "@phase" inside my mojo (which is basically a goal, right?) so as-far-as-I-understand maven should know which goal to invoke... On 2/1/06, Mike Perham <[EMAIL PROTECTED]> wrote: > Look at it the other way. You've told maven that you are interested in > having this plugin execute at some point during your lifecycle but you > haven't defined which GOAL to execute. Remember a plugin can have N > goals. Maven should use the goal's default phase if you don't specify > the element of the execution. > > > -Original Message- > From: Arik Kfir [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 31, 2006 5:39 PM > To: Maven Users List > Subject: [m2] binding mojos to lifecycle > > Hi, > > I have a small mojo which I want to bind to the 'process-classes' > phase. I've read > http://maven.apache.org/developers/mojo-api-specification.html which > indicates I should add a "@phase process-classes" to the class comment, > and I did: > > /** > * > * @goal generate > * @phase process-classes > * @author arik > */ > public class { > ... > } > > In the project that uses this plugin I declared: > > > > > myGroupId > myPluginArtifactId > > > > > > > > But the mojo isn't activated. > > If, however, I add this to the invoking POM (inside the above > section): > > > process-classes > > generate > > > > > everything works. > > It looks like I'm missing something but I can't figure out what...I went > through all of the guides in the M2 site, but couldn't find a reason for > this. Isn't M2 supposed to bind my mojo automatically (due to the @phase > tag)? > > > -- > Regards, > _ > Arik Kfir[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
Hi Dan, Actually, what I want is the first option - I want that users of the plugin *won't* have to define 'executions' - only specify my plugin in their section (along with optional ) and rely on "me" to know at which phase to invoke. Perhaps I'm getting it all wrong: as I understood, if I specify "@phase xyz" than if the using project specifies: myPluginGroupId... myPluginArtifactId... Than my mojo should be invoked at the phase specified in the "@phase xyz", no? Thanks for the help! On 2/1/06, dan tran <[EMAIL PROTECTED]> wrote: > @phase xyz means you dont have to define phase in your plugin execution ( > use default phase defined mojo). But you still need to define > your plugin executions. > > However if you want hardwire to a phase when mojo is invoked from command > line use @execute. See maven-assembly-plugin for example. > > -D > > > > > On 1/31/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have a small mojo which I want to bind to the 'process-classes' > > phase. I've read > > http://maven.apache.org/developers/mojo-api-specification.html which > > indicates I should add a "@phase process-classes" to the class > > comment, and I did: > > > > /** > > * > > * @goal generate > > * @phase process-classes > > * @author arik > > */ > > public class { > > ... > > } > > > > In the project that uses this plugin I declared: > > > > > > > > > >myGroupId > >myPluginArtifactId > > > > > > > > > > > > > > > > But the mojo isn't activated. > > > > If, however, I add this to the invoking POM (inside the above > > section): > > > > > >process-classes > > > > generate > > > > > > > > > > everything works. > > > > It looks like I'm missing something but I can't figure out what...I > > went through all of the guides in the M2 site, but couldn't find a > > reason for this. Isn't M2 supposed to bind my mojo automatically (due > > to the @phase tag)? > > > > > > -- > > Regards, > >_ > >Arik Kfir[EMAIL PROTECTED] > > > > -- Regards, _ Arik Kfir[EMAIL PROTECTED]
RE: [m2] binding mojos to lifecycle
Look at it the other way. You've told maven that you are interested in having this plugin execute at some point during your lifecycle but you haven't defined which GOAL to execute. Remember a plugin can have N goals. Maven should use the goal's default phase if you don't specify the element of the execution. -Original Message- From: Arik Kfir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: Maven Users List Subject: [m2] binding mojos to lifecycle Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a "@phase process-classes" to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: myGroupId myPluginArtifactId But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above section): process-classes generate everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] binding mojos to lifecycle
@phase xyz means you dont have to define phase in your plugin execution ( use default phase defined mojo). But you still need to define your plugin executions. However if you want hardwire to a phase when mojo is invoked from command line use @execute. See maven-assembly-plugin for example. -D On 1/31/06, Arik Kfir <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a small mojo which I want to bind to the 'process-classes' > phase. I've read > http://maven.apache.org/developers/mojo-api-specification.html which > indicates I should add a "@phase process-classes" to the class > comment, and I did: > > /** > * > * @goal generate > * @phase process-classes > * @author arik > */ > public class { > ... > } > > In the project that uses this plugin I declared: > > > > >myGroupId >myPluginArtifactId > > > > > > > > But the mojo isn't activated. > > If, however, I add this to the invoking POM (inside the above > section): > > >process-classes > > generate > > > > > everything works. > > It looks like I'm missing something but I can't figure out what...I > went through all of the guides in the M2 site, but couldn't find a > reason for this. Isn't M2 supposed to bind my mojo automatically (due > to the @phase tag)? > > > -- > Regards, >_ >Arik Kfir[EMAIL PROTECTED] >
[m2] binding mojos to lifecycle
Hi, I have a small mojo which I want to bind to the 'process-classes' phase. I've read http://maven.apache.org/developers/mojo-api-specification.html which indicates I should add a "@phase process-classes" to the class comment, and I did: /** * * @goal generate * @phase process-classes * @author arik */ public class { ... } In the project that uses this plugin I declared: myGroupId myPluginArtifactId But the mojo isn't activated. If, however, I add this to the invoking POM (inside the above section): process-classes generate everything works. It looks like I'm missing something but I can't figure out what...I went through all of the guides in the M2 site, but couldn't find a reason for this. Isn't M2 supposed to bind my mojo automatically (due to the @phase tag)? -- Regards, _ Arik Kfir[EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Dov, Thanks for the reply. That sort of explains things. I think what I am really getting at is this: when a project (call it project B) has a dependency that is another one of your own projects (call the dependency A) , rather than a third party library (jar), is the dependency (A) being pulled from the repository, or is the dependency (A) being built from the project as a result of project B being built? If the answer is that A is pulled from the repository, it sounds like A must first be built and published to the repository. That's a simple conclusion -- but if that's the case, it means that in order to accomplish parallel development in projects A and B, it means that A is going to have to be published in some state of partial completion to the repository, in order for B to build? On the other hand, if the answer is that A is being built on demand from source, then it solves the parallel development issue, but it brings up the issue of how to specify that you want a project to build rather than the dependency to be pulled from the repository. I'm pretty sure the answer is the former, but I just need clarification on a couple of these items. Brad On Jan 31, 2006, at 4:07 PM, Dov Wasserman wrote: What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't "grab" it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of "compile", then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: my-group project-A 1.0-SNAPSHOT compile ... You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help setting up a transitive dependency
What type of projects are A and B? Jars? War and jar? Jar is not meant to be deployed, so it doesn't "grab" it dependent projects, it just references them for compiling (or testing). A war is meant to be deployed on its own, so its dependencies are pulled into it's WEB-INF/lib directory along with it when it's packaged up into a .war file artifact. If you specify all your dependencies with scope of "compile", then they will all be pulled into the eventual war file, or other deployable artifact. Does that help explain things? -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:49 PM To: Maven Users List Subject: Re: Need help setting up a transitive dependency Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: >Add a section in project B's pom.xml: > > > >my-group >project-A >1.0-SNAPSHOT >compile > > ... > > >You might need to configure the scope property to something other than >compile if you don't want A's jar file to be included with B's >artifacts. Generally, you can leave it as compile. > >Hope this helps, > >-Dov > > >-Original Message- >From: Brad O'Hearne [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 31, 2006 5:39 PM >To: users@maven.apache.org >Subject: Need help setting up a transitive dependency > >Here's a maven 101 question: > >I need help setting up a transitive dependency. I have project A, which >is properly set up and building using maven. Now I need to configure >project B to depend on project A. How do I configure this in my pom.xml >to refer to another project? > >Thanks for your help > >Brad > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help setting up a transitive dependency
Dov, Thanks for the reply. Ok, so this isn't going to trigger a build of project A, its just going to pull project A from the repository as it would any other dependency. Is this correct, or am I still missing something? How do I get project B to automatically pull all of project A's dependencies along with project A? Will this happen automatically? Brad Dov Wasserman wrote: Add a section in project B's pom.xml: my-group project-A 1.0-SNAPSHOT compile ... You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
works. thanks On 1/31/06, Brett Porter <[EMAIL PROTECTED]> wrote: > > My mistake. I will correct the metadata. > > On 2/1/06, Lee Meador <[EMAIL PROTECTED]> wrote: > > I have the same thing as Kristof in my parent POM in the > > section. There is no reference in the child POM. > > > > I removed the checkstyle plugin from my repository. > > > > But I get version 2.0-beta-1 downloading like Yann. This happens if I > put no > > version in the POM (as Kristof) or if I put 2.0 in > the > > POM. > > > > Thanks. > > > > -- Lee Meador > > > > On 1/31/06, Kristof Vanbecelaere <[EMAIL PROTECTED]> wrote: > > > > > > I manually removed a beta from my local repository. I refer to the > > > plugin using > > > > > > > > > org.apache.maven.plugins > > > maven-checkstyle-plugin > > > > > > > > >checkstyle-jjguidelines.xml > > > > > > > > > > > > > > > and running mvn site downloads it for me. > > > > > > On Jan 31, 2006, at 13:50, Yann Le Du wrote: > > > > > > > Hi, > > > > > > > > I've seen maven-checkstyle-plugin 2.0 is available since yesterday, > > > > which is > > > > good news ! > > > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > > > checkstyle-plugin/ > > > > > > > > Though, I'm still retrieving 2.0-beta-1, even with plugin update. > > > > > > > > maven-metadata still contains 2.0-beta-1 , this > > > > may be > > > > the cause - or is it on purpose ? > > > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > > > checkstyle-plugin/maven-metadata.xml > > > > > > > > - Yann > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > -- Lee Meador > > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
problem configuring a maven 2 project
Hi all, I am trying continuum. I am having problems getting it to work with a project under tigris. Does anyone have experience with this? thanks is advance
RE: Need help setting up a transitive dependency
Add a section in project B's pom.xml: my-group project-A 1.0-SNAPSHOT compile ... You might need to configure the scope property to something other than compile if you don't want A's jar file to be included with B's artifacts. Generally, you can leave it as compile. Hope this helps, -Dov -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 5:39 PM To: users@maven.apache.org Subject: Need help setting up a transitive dependency Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help setting up a transitive dependency
Here's a maven 101 question: I need help setting up a transitive dependency. I have project A, which is properly set up and building using maven. Now I need to configure project B to depend on project A. How do I configure this in my pom.xml to refer to another project? Thanks for your help Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 offline: Can't read the url
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brett Porter wrote: > fixed in SVN. Thanks Brett, great. > > On 1/31/06, Joerg Hohwiller <[EMAIL PROTECTED]> wrote: > > Hi there, > > it seems that the projectinfo plugin does not take care of the offline-mode. > If I run "mvn -o site" it fails with the Error > > [INFO] Can't read the url [http://www.apache.org/liceneses/LICENSE-2.0.txt] : > www.apache.org > > This is my license file. Anyways in offline mode maven should not check this > URL > because he can't. > > Am I missing something? > > Regards > Jörg - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD39+7mPuec2Dcv/8RAnv6AJ9XdIWXRM2v5jUW2cEjwPiyEK4CCQCggFb5 20egwnabs2I9eMJW81S6SoQ= =QQlK -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Discovering the plugin's dependencies inside a Mojo
Hi, I'm writing a small mojo, and I need to invoke an external process. That process needs some of the plugin's dependencies - how do I get the equivalent of "project.getRuntime...()" for the *plugin* itself (rather than the project it is currently building)? Regards, _ Arik Kfir[EMAIL PROTECTED]
Packaging dependent jars within a jar project
I have been trying to find a way to get Maven to produce a jar artifact that includes (some of) its dependent artifacts, without much luck. I have seen a few ways that promise this, but none panned out in the ways that we need. If anyone can suggest a way to do this, I'd be much obliged. I included my POM and assembly files below. I did get this to work somewhat using assembly descriptors, but I also need the manifest to have certain project-specific values which get inserted using the standard jar plugin under . They don't get inserted into the *-jar-with-dependencies that the assembly plugin produces. There's also talk about the Classworld's Uberjar plugin, but I cannot figure out how to invoke it. The artifact id is not found to download, and I don't know to configure it, despite all the documentation on it. It might be specific to Maven 1.x, I am using Maven 2.0.2. Thanks to all in advance, -Dov Wasserman Project POM: 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/maven-v4_0_0.xsd";> 4.0.0 big-project client-components 1.0-SNAPSHOT big-project-component component-search jar My Special Web Component http://maven.apache.org 1.0-SNAPSHOT ... ... 1.0-SNAPSHOT provided big-project local-model 1.0-SNAPSHOT compile sun servlet-api 2.4 provided junit junit 3.8.1 test org.apache.maven.plugins maven-jar-plugin com.foo.client.component.SearchComponent CS <.../> maven-assembly-plugin src/main/assembly/dep.xml Assembly descriptor: jar-with-dependencies jar false target/classes / /lib/ false runtime
Re: Newbie question re maven 1.0.2 genapp
Hi On 1/31/06, Hines, John <[EMAIL PROTECTED]> wrote: > When I run maven genapp I get the following error: > > Attempting to download commons-jelly-tags-interaction-1.0.jar. > Error retrieving artifact from > [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte > raction-1.0.jar]: java.net. > ConnectException: Connection timed out: connect > WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar. > The build cannot continue because of the following unsatisfied > dependency: > > commons-jelly-tags-interaction-1.0.jar > > Three questions: > 1. I can accessess the link from firefox so I assume I need to tell > maven about my proxy. How do I do that? http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties > 2. I've already got commons-jelly-tags-interaction-1.0.jar in plugins > (I also tried lib and bin too, no difference)Where should it be located? in ~/.maven/repository/commons-jelly/jars/ > 3. Are all maven plugins named maven-something.jar? yes for all plugins bundled with maven arnaud > > Thanks, John H > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 EAR, WAR, EJB Common Dependencies
Hi, WAR POM org.apache.maven.plugins maven-war-plugin webApplication image/**,htmlapp/**,WEB-INF/lib/*.jar true They should generate manifest.mf files for you. Yes, it generates manifest.mf but it also include all *.jar files which are dependencies of the war project. I checked the sources of the war plugin and it uses excludes only for files copied from src directory, not project dependencies. Why? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie question re maven 1.0.2 genapp
When I run maven genapp I get the following error: Attempting to download commons-jelly-tags-interaction-1.0.jar. Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-inte raction-1.0.jar]: java.net. ConnectException: Connection timed out: connect WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar. The build cannot continue because of the following unsatisfied dependency: commons-jelly-tags-interaction-1.0.jar Three questions: 1. I can accessess the link from firefox so I assume I need to tell maven about my proxy. How do I do that? 2. I've already got commons-jelly-tags-interaction-1.0.jar in plugins (I also tried lib and bin too, no difference)Where should it be located? 3. Are all maven plugins named maven-something.jar? Thanks, John H - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using xdoclet2 and maven2
Hello, Well, I'm quite new to maven and specially maven2. I would like to use xdoclet2 with maven2. After reading a few docs, I still cannot make it work. I followed what is written on http://xdoclet.codehaus.org/Maven2+Plugin : downloadding the jar and then mvn install blahblah ... It seems ok. When I try to make a mvn package or what ever, I get the following message : W:\root\testProxyMaven\common-util>mvn package [INFO] Scanning for projects... [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [package] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Tue Jan 31 18:39:11 CET 2006 [INFO] Final Memory: 2M/4M [INFO] And I can't find out what I should do here. You can finbd my pom hereunder. I'm still testing and trying to see how the whole thing work. Can someoen help me. I'm sure maven is a good tool, but I can't make it work with xdoclet2 Regards, Dominique. 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/maven-v4_0_0.xsd";> 4.0.0 test common-util jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test xdoclet maven2-xdoclet2-plugin org.xdoclet.plugin.web.TaglibPlugin 2.0 ${basedir}/target/xdoclet/META-INF xdoclet-plugins xdoclet-plugin-web 1.0.4-SNAPSHOT javax.servlet servlet-api 2.4 javax.servlet jsp-api 2.0 xdoclet _ Ce message (et toutes les pièces jointes) sont confidentiels ; son contenu ne représente en aucun cas un engagement de la part de DEXIA SOFAXIS. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement par l'émetteur. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur. Conformément aux dispositions de la loi n° 78-17 du 6 janvier 1978 relative à l'informatique, aux fichiers et aux libertés, vous pouvez obtenir communication et, le cas échéant, rectification ou suppression des informations vous concernant en vous adressant à DEXIA SOFAXIS - Route de Creton - 18110 VASSELAY _ Consultez notre site internet http://www.sofaxis.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Warning messages on remote repository
It was just a typo in the email. I double checked it in the repository and it is Thanks, -Ashish --- Lukas Theussl <[EMAIL PROTECTED]> wrote: > What happens if you replace the by > ? > > -Lukas > > > > Ashish Srivastava wrote: > > Hi, > >I created a remote repository for a bunch of > jars > > we use in our application. The way I did is > manually > > created the library.pom as : > > > > > > > >4.0.0 > >libName > >libName > >1.0 > > > > > > > > When I compile the project I get the following > warning > > messages (for each such library) but the > application > > gets compiled and packaged.: > > > > [WARNING] POM for 'libName:...' is invalid. It > will be > > ignored for artifact resolution. Reason: Not a > valid > > v4.0.0 POM. > > > > > > Looks like as if the format of the pom is wrong. > How > > can I get a jar (not built by us) and deploy it > > properly in a remote repository which we created? > I > > searched through the maven.apache.org and didn't > find > > any document on how to create a remote repository > sp. > > with our own set of jars. Help is appreciated. > > > > Thanks, > > -Ashish > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I can't get cobertura to work with maven 2.0.2
On 2/1/06, David Sag <[EMAIL PROTECTED]> wrote: > > > Okay I have changed my build so that the checkstyle etc all happen on the > verify phase, and have updated to use the latest snapshot version of > cobertura plugin. > > [mvn install] works fine - all is as expected. > > but [mvn site] continues to break as follows: Do you have zero-length classes, or is this something else? I recall seeing AIOOBE as a bug back in jcoverage some time back, but I'm not sure this is the same. I stress that this all used to work fine with maven 2.0 and the old > cobertura plugin. I suspected a bug in the surefire reporting rather than > in cobertura, and so removed any references to surefire from my reporting > but i get pretty much the exact same result. The cobertura plugin was changed around mid-Dec to better use the facilities provided by Maven 2.0.1 for defining the lifecycle. Does anyone out there have a working example of maven 2.0.2 using cobertura > to instrument classes and generate a report? If so please would you care to > share your wisdom? Or would you recommend rolling back to maven 2.0 until > these issues are fixed? > We use it for: https://svn.apache.org/repos/asf/maven/repository-manager/trunk - Brett
Re: [M2.1-SNAPSHOT] Activating profiles causes NullPointerException
On 2/1/06, Richard Allen <[EMAIL PROTECTED]> wrote: > Am I doing something wrong or is this a bug? I can't see anything from here, but regardless of whether something is wrong, a NullPointException is a bug. Please file it in JIRA. Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
My mistake. I will correct the metadata. On 2/1/06, Lee Meador <[EMAIL PROTECTED]> wrote: > I have the same thing as Kristof in my parent POM in the > section. There is no reference in the child POM. > > I removed the checkstyle plugin from my repository. > > But I get version 2.0-beta-1 downloading like Yann. This happens if I put no > version in the POM (as Kristof) or if I put 2.0 in the > POM. > > Thanks. > > -- Lee Meador > > On 1/31/06, Kristof Vanbecelaere <[EMAIL PROTECTED]> wrote: > > > > I manually removed a beta from my local repository. I refer to the > > plugin using > > > > > > org.apache.maven.plugins > > maven-checkstyle-plugin > > > > > >checkstyle-jjguidelines.xml > > > > > > > > > > and running mvn site downloads it for me. > > > > On Jan 31, 2006, at 13:50, Yann Le Du wrote: > > > > > Hi, > > > > > > I've seen maven-checkstyle-plugin 2.0 is available since yesterday, > > > which is > > > good news ! > > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > > checkstyle-plugin/ > > > > > > Though, I'm still retrieving 2.0-beta-1, even with plugin update. > > > > > > maven-metadata still contains 2.0-beta-1 , this > > > may be > > > the cause - or is it on purpose ? > > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > > checkstyle-plugin/maven-metadata.xml > > > > > > - Yann > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to customise the, by maven2, generated site
The first technique should work, but is limited. The second is implemented in SVN, but not released. That can be expected in February. - Brett On 2/1/06, Mikael Andersson <[EMAIL PROTECTED]> wrote: > Hi, > I would like some advice of how to customise the site maven2 generates. > > I have seen one blog which suggests taking a copy of the default velocity > template, modify that and then override the template directory. > http://blogs.sun.com/roller/page/wilfred?entry=customing_maven_2_site_layout > > I also stumbled into a confluence page which had something about skinning on > it, but it was difficult to tell how if this is implemented or in > discussion. > http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence > > I would be very grateful for some advice. > > Cheers, > Mikael > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Warning messages on remote repository
What happens if you replace the by ? -Lukas Ashish Srivastava wrote: Hi, I created a remote repository for a bunch of jars we use in our application. The way I did is manually created the library.pom as : 4.0.0 libName libName 1.0 When I compile the project I get the following warning messages (for each such library) but the application gets compiled and packaged.: [WARNING] POM for 'libName:...' is invalid. It will be ignored for artifact resolution. Reason: Not a valid v4.0.0 POM. Looks like as if the format of the pom is wrong. How can I get a jar (not built by us) and deploy it properly in a remote repository which we created? I searched through the maven.apache.org and didn't find any document on how to create a remote repository sp. with our own set of jars. Help is appreciated. Thanks, -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Warning messages on remote repository
Hi, I created a remote repository for a bunch of jars we use in our application. The way I did is manually created the library.pom as : 4.0.0 libName libName 1.0 When I compile the project I get the following warning messages (for each such library) but the application gets compiled and packaged.: [WARNING] POM for 'libName:...' is invalid. It will be ignored for artifact resolution. Reason: Not a valid v4.0.0 POM. Looks like as if the format of the pom is wrong. How can I get a jar (not built by us) and deploy it properly in a remote repository which we created? I searched through the maven.apache.org and didn't find any document on how to create a remote repository sp. with our own set of jars. Help is appreciated. Thanks, -Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
Thanks so much. It worked out :) _Mang Brett Porter <[EMAIL PROTECTED]> 01/31/2006 12:25 PM Please respond to "Maven Users List" To Maven Users List cc Subject Re: [m2] Cannot find maven-war-plugin You can use -U to force an update. On 2/1/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > I have no proxy. Further, I've downloaded something from the central > repository for another project just now but the war plugin does not work. > When I execute mvn install, it just doesn't seem to even try to connect to > the internet. It instantly gives me the build error. Is there a command > where I can install the plugin manually? Is there even a released plugin > for m2? I browsed the repository and only found beta version. > > _Mang > > > > > > Lee Meador <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 01/31/2006 11:40 AM > Please respond to > "Maven Users List" > > > To > Maven Users List > cc > > Subject > Re: [m2] Cannot find maven-war-plugin > > > > > > > If you have a proxy you will need to put some things in the > settings.xmlfile. > > http://maven.apache.org/guides/mini/guide-proxies.html > > It is also possible that ibiblio is running really slow. You might try > again > and see if it does any better. I have had to try 3 times to get things > downloaded on occasion. > > On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > When I execute mvn install on a web project, I get a build error stating > > that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not > > exist or no valid version could be found". I tried googling for this > but > > came up with nothing. Why is it not checking the central repository for > > this plugin? Is there extra configuration needed to build a web > project? > > > > Thanks. > > > > _Mang > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I can't get cobertura to work with maven 2.0.2
You need latest cobertura built from sources On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > Okay I have changed my build so that the checkstyle etc all happen on the > verify phase, and have updated to use the latest snapshot version of > cobertura plugin. > > [mvn install] works fine - all is as expected. > > but [mvn site] continues to break as follows: > > (disco-davesag) [15:59:16] ~/checkouts/EPO/cassius_service_Sis$ mvn site > [INFO] Scanning for projects... > [INFO] > > [INFO] Building Search Information Service (redux) > [INFO]task-segment: [site] > [INFO] > > [INFO] Preparing cobertura:cobertura > [INFO] [resources:resources] > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date > [INFO] [cobertura:instrument {execution: instrument-classes}] > [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file > Cobertura: Loaded information on 4 classes. > Instrumenting 6 classes to > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura > Cobertura: Saved information on 4 classes. > Instrument time: 244ms > > [INFO] Instrumentation was successful. > [INFO] [cobertura:instrument] > [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file > Cobertura: Loaded information on 4 classes. > Instrumenting 6 classes to > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable > to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/DossierTranslationService.class > java.lang.ArrayIndexOutOfBoundsException: 8 > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) > at > net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) > at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable > to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationService.class > java.lang.ArrayIndexOutOfBoundsException: 8 > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) > at > net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) > at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable > to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationServiceDelegate.class > java.lang.ArrayIndexOutOfBoundsException: 8 > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown Source) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) > at > net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) > at > net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) > at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) > [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable > to instrument file > /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SimpleSearchInformationServiceDelegate.class > java.lang.ArrayIndexOutOfBoundsException: 8 > at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) > at org.objectweb.asm.ClassReader.(Unknown S
Re: Forcing the order of plugins bound to the same phase (was Re: M2.02 - mvn site now triggers a compile!)
Only the order they are declared in the POM. - Brett On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > Brett Porter <[EMAIL PROTECTED]> wrote on 31-01-2006 11:16:29: > > > On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > > Either way I probably need to bind checkstyle, pmd, findbugs etc to a > > > phase other than compile then, perhaps verify. Hmm will ponder this. > > > > The reports, or the checks? The reports should be part of the site > > generation and not bound to any phases. The checks definitely belong > > in verify if they don't require any extra steps such as compilation. > > > > the checks. i run the checkstyle, pmd and findbugs checks and then in the > verify stage pipe those checks into the qalab plugin to generate > historical dev stats. ideally i'd run these as part of verify and then > once they had run pipe them trhough qalab, but i have never been able to > work out how to specify the order that plugins run when bound to the same > phase. any clues how to do that? > > dave > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
You can use -U to force an update. On 2/1/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > I have no proxy. Further, I've downloaded something from the central > repository for another project just now but the war plugin does not work. > When I execute mvn install, it just doesn't seem to even try to connect to > the internet. It instantly gives me the build error. Is there a command > where I can install the plugin manually? Is there even a released plugin > for m2? I browsed the repository and only found beta version. > > _Mang > > > > > > Lee Meador <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 01/31/2006 11:40 AM > Please respond to > "Maven Users List" > > > To > Maven Users List > cc > > Subject > Re: [m2] Cannot find maven-war-plugin > > > > > > > If you have a proxy you will need to put some things in the > settings.xmlfile. > > http://maven.apache.org/guides/mini/guide-proxies.html > > It is also possible that ibiblio is running really slow. You might try > again > and see if it does any better. I have had to try 3 times to get things > downloaded on occasion. > > On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > When I execute mvn install on a web project, I get a build error stating > > that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not > > exist or no valid version could be found". I tried googling for this > but > > came up with nothing. Why is it not checking the central repository for > > this plugin? Is there extra configuration needed to build a web > project? > > > > Thanks. > > > > _Mang > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] parent pom
So if I see right, the only way to process multiple Files is the multi project thing. But than the submodules must have a reference to the parent. that is really only nice, if the submodules not referenced from other modules. In the case that is right: I miss a possibility to define processGroups. Example: module A depends on module D module B depends on module D module D depends on module C So if i develop module A and A,B,C are SNAPSHOT'S I want to call compile, package, install... on a process Group: myGroup moduleA 1.o-SNAPSHOT compile myGroup moduleB 1.o-SNAPSHOT compile myGroup moduleD 1.o-SNAPSHOT compile This is a small Example, the dependencies could be much more complex ;-) So a thing like a processGroup may be a very great way to save me time. Ok. i can write an shell or ant script doing that, but it would be nice if maven can do something like that. Do you understand me? Fredy "Maven Users List" schrieb am 31.01.06 15:54:41: See "How do I build more than one project at once?" here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: >Do you or anyone else know where (if it exists) the documention is for >this? The pom descriptor only shows . > >If anyone knows how to use this, please pass along. > >Thanks... > >Frank Russo >Senior Developer >FX Alliance, LLC > > >-Original Message- >From: Richard Allen [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 31, 2006 8:57 AM >To: Maven Users List >Subject: Re: [m2] parent pom > >If your parent project POM lists , then those projects will be >built when the parent is built. > >Richard Allen > > > >Frank Russo wrote: > > > >>I have a question in regards to this. Is there a way to build the >>projects as a whole, as you say? As of now, I have to run maven on each >> >> > > > >>individual child, and I'm not sure if there is one way to call maven to >> >> > > > >>run the parent and all children at once. >> >>Does anyone know if this is doable? >> >>Frank Russo >>Senior Developer >>FX Alliance, LLC >> >> >>-Original Message- >>From: Maria Odea Ching [mailto:[EMAIL PROTECTED] >>Sent: Monday, January 30, 2006 10:17 PM >>To: Maven Users List >>Subject: Re: [m2] parent pom >> >>Hi Fredy, >> >>The concept of parent poms can be applied to multi-module projects >>wherein it provides you the priviledge of building your modules >>individually or as a whole (project). >>You need to define your parent pom in your project's root directory >> >> >(ex. > > >>C:\Project\pom.xml ) and the children pom in each module's root >>directory (ex. C:\Project\module-1\pom.xml). >> >>Please take a look below at the sample parent and child poms. >> >>Parent POM: >> >> 4.0.0 >> sample.project >> sample >> pom >> Sample Project >> 1.0-SNAPSHOT >> This is a sample project >> >> module-1 >> module-2 >> module-3 >> >> >> >> junit >> junit >> 3.8.1 >> test >> >> >> >> >> >> org.apache.maven >> maven-model >> 2.0 >> >> >> >> >> >> >>Module-1 Child POM: >>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/maven-v4_0_0.xsd";> >> >> sample.project >> sample >> 1.0-SNAPSHOT >> >> 4.0.0 >> module-1 >> Sample Project Module 1 >> >> >> org.apache.maven >> maven-model >> >> >> >> >>Thanks, >>Odea >> >> >>Fredy wrote: >> >> >> >> >> >>>hi, >>>i've read something about the parent pom at multiple places, but have >>> >>> >>> >>> >>not found an explanation about it. >> >> >> >> >>>Is there a doc about parent pom's? Where to define it, how to extend >>> >>> >>> >>> >>it?? Do it mean a pom in a multi module project like mojo-sandbox? >> >> >> >> >>>Fredy >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> >>> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsu
Re: [m2] Cannot find maven-war-plugin
There is a war plugin. I am using it in my build. I just ran the build and it worked fine. Perhaps someone else has more insightful help for you. Sorry. -- Lee Meador On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > I have no proxy. Further, I've downloaded something from the central > repository for another project just now but the war plugin does not work. > When I execute mvn install, it just doesn't seem to even try to connect to > the internet. It instantly gives me the build error. Is there a command > where I can install the plugin manually? Is there even a released plugin > for m2? I browsed the repository and only found beta version. > > _Mang > > > > > > Lee Meador <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 01/31/2006 11:40 AM > Please respond to > "Maven Users List" > > > To > Maven Users List > cc > > Subject > Re: [m2] Cannot find maven-war-plugin > > > > > > > If you have a proxy you will need to put some things in the > settings.xmlfile. > > http://maven.apache.org/guides/mini/guide-proxies.html > > It is also possible that ibiblio is running really slow. You might try > again > and see if it does any better. I have had to try 3 times to get things > downloaded on occasion. > > On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > When I execute mvn install on a web project, I get a build error stating > > that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not > > exist or no valid version could be found". I tried googling for this > but > > came up with nothing. Why is it not checking the central repository for > > this plugin? Is there extra configuration needed to build a web > project? > > > > Thanks. > > > > _Mang > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: Branch info lost on release [resolved]
FYI I found some clues on how to deal with branches based on the code of the PerformReleaseMojo and the PrepareReleaseMojo. 1) release:prepare works on a checked out project. This allows for tagging to be made on the correct branch. 2) release:perform works by checking out the project based on a tag. I'm assuming that tags in CVS has to be unique across branches. I had a look at at branches made for maven/components on svn.apache.org, but I got somewhat confused (I'm not so familiar with SVN yet). Is the branch and tag information kept in the scm url of the parent pom for maven/component? Anyhow... It works, but now I can not understand what the element in the section is good for? :-) Ørjan Orjan Austvold wrote: We're using Maven 2 with CVS on several multi-module projects and we have successfully performed releases in the last 3 months. Yesterday we ran into problems with releases on a CVS branch. I added a on the element for the parent pom on the branched project. When I did a release the pom checked in by the release plugin actually removed the element. Am I using the wrong element for describing the branch name or should I file a bug on the release plugin? Thanks, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
Does anyone know if the following is doable? I have a project where I build two different artifacts off the same project base. One is a war file, which we use to deploy to a tomcat server. The other is a jar file, which is just an api snapshot of our code for other internal projects to share. The way I'm doing it now, is as follows. +- project-root | +- pom.xml | +- pom_war.xml | +- pom_jar.xml | +- src ... The pom.xml is my parent, which defines all of the shared definitions (includes repositories, dependencies, profiles, etc.) The other two reference the parent and build the appropriate artifacts. What I have been doing is build the parent, build child one, and then build child two. As noted in prior emails, there is a way to do one build and generate all artifacts, however, the examples in the docs referenced below, do not handle my scenario. My questions is, is what I want possible to do? If so, how do I configure the element in the parent? If not, is there a workaround for what I want to do, besides writing a script? A script may not be such a bad option, but it just adds something that I'll need to maintain if we want to add artifacts... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 9:54 AM To: Maven Users List Subject: Re: [m2] parent pom See "How do I build more than one project at once?" here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: >Do you or anyone else know where (if it exists) the documention is for >this? The pom descriptor only shows . > >If anyone knows how to use this, please pass along. > >Thanks... > >Frank Russo >Senior Developer >FX Alliance, LLC > > >-Original Message- >From: Richard Allen [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 31, 2006 8:57 AM >To: Maven Users List >Subject: Re: [m2] parent pom > >If your parent project POM lists , then those projects will be >built when the parent is built. > >Richard Allen > > > >Frank Russo wrote: > > > >>I have a question in regards to this. Is there a way to build the >>projects as a whole, as you say? As of now, I have to run maven on >>each >> >> > > > >>individual child, and I'm not sure if there is one way to call maven >>to >> >> > > > >>run the parent and all children at once. >> >>Does anyone know if this is doable? >> >>Frank Russo >>Senior Developer >>FX Alliance, LLC >> >> >>-Original Message- >>From: Maria Odea Ching [mailto:[EMAIL PROTECTED] >>Sent: Monday, January 30, 2006 10:17 PM >>To: Maven Users List >>Subject: Re: [m2] parent pom >> >>Hi Fredy, >> >>The concept of parent poms can be applied to multi-module projects >>wherein it provides you the priviledge of building your modules >>individually or as a whole (project). >>You need to define your parent pom in your project's root directory >> >> >(ex. > > >>C:\Project\pom.xml ) and the children pom in each module's root >>directory (ex. C:\Project\module-1\pom.xml). >> >>Please take a look below at the sample parent and child poms. >> >>Parent POM: >> >> 4.0.0 >> sample.project >> sample >> pom >> Sample Project >> 1.0-SNAPSHOT >> This is a sample project >> module-1 >> module-2 >> module-3 >> >> >> >> junit >> junit >> 3.8.1 >> test >> >> >> >> >> >> org.apache.maven >> maven-model >> 2.0 >> >> >> >> >> >> >>Module-1 Child POM: >>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/maven-v4_0_0.xsd";> >> >> sample.project >> sample >> 1.0-SNAPSHOT >> >> 4.0.0 >> module-1 >> Sample Project Module 1 >> >> >> org.apache.maven >> maven-model >> >> >> >> >>Thanks, >>Odea >> >> >>Fredy wrote: >> >> >> >> >> >>>hi, >>>i've read something about the parent pom at multiple places, but have >>> >>> >>> >>> >>not found an explanation about it. >> >> >> >> >>>Is there a doc about parent pom's? Where to define it, how to extend >>> >>> >>> >>> >>it?? Do it mean a pom in a multi module project like mojo-sandbox? >> >> >> >> >>>Fredy >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> >>> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For
Re: maven 1.1 and inherited properties
Did you set the maven.multiproject.type property for each subproject? -Lukas Nicolas De Loof wrote: I was first thinking about "org.apache.commons.attributes.enable" not beeing correctly set, but I've was wrong. I've created http://jira.codehaus.org/browse/MAVEN-1691 I've attached a minimalist multiproject to demonstrate the bug. (war) maven war:install generates the attributes classes (jar) maven jar:install generates the attributes classes (head) maven multiproject:install generates the attributes classes ONLY for jar project. Arnaud HERITIER a écrit : Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a "maven war:install" on my web sub-project, attributes classes are generated by plugin. When I run a "multiproject:install", everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven integration with WAS5
I just start WRD when I know I am going to be going through the deployment process and leave it running. I have an add-app.bat which runs this command: set WAS_HOME=C:\dev\IBM\Rational\SDP\6.0\runtimes\base_v6 %WAS_HOME%\bin\wrd-config.bat -project %1 -style AutoAppInstall so you would just run "add-app my-ear-project" once and then have your my-ear-project build copy its EAR into %WORKSPACE%\my-ear-project every time you change something and want to test it. WRD will handle everything else in my experience. I believe you need to configure WRD before you can use it the first time. More info here: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.etools.wrd.freeform.doc/topics/rwrdconfbat.html mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 10:39 AM To: Maven Users List Subject: Re: Maven integration with WAS5 Is there a way to turn on the WRD without human interaction? Such as from an ant script within Maven. Do you have a source of information on using it? The IBM docs are totally fragmented with no unified example. (Well ... that I have found) How about disabling it. How is that done? Thanks. -- Lee Meador On 1/31/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > For websphere 6 I've found that bypassing the IDE integration and > using Websphere Rapid Deploy is the most reliable process so far. My > ear build just copies the EAR to the WRD directory and it is auto-reloaded. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lee Meador > Sent: Tuesday, January 31, 2006 9:28 AM > To: Maven Users List > Subject: Re: Maven integration with WAS5 > > You have to use the antrun plugin and write ant tasks to do it. > > Search the web for the ant tasks. There are example scripts here and > there. > > The only information IBM seems to provide on it is in the Websphere > docs. > > Here are the version 6 docs. Look for the same class names: > > http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic= > /c > om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tas > ks > /package-summary.html > > or look for the package name com.ibm.websphere.ant.tasks. > > You can use wsadmin through ant to submit jacl scripts that do these > things too. This task will only run if you use ws-ant which is a > customized version of ant that uses the IBM JDK among other things. > > It's a pain and it doesn't seem to work very well. Perhaps the Cargo > project will rescue us if some support for Websphere is added. > > Thanks. > > -- Lee Meador > > On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Can any of you please help me with this info . How to start , stop > > , > > > deploy applications on WAS5 with maven2 > > > > > > Regards > > Saravana > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] @echo off set PROFILE=default set WAS_BASE=C:\dev\IBM\Rational\SDP\6.0\runtimes\base_v6 if "%WORKSPACE%" == "" goto :wserr title Websphere Rapid Deployment call %WAS_BASE%\profiles\%PROFILE%\bin\wrd.bat -monitor goto :EOF :wserr echo Please set WORKSPACE to your root Rapid Deployment directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 1.1 and inherited properties
I was first thinking about "org.apache.commons.attributes.enable" not beeing correctly set, but I've was wrong. I've created http://jira.codehaus.org/browse/MAVEN-1691 I've attached a minimalist multiproject to demonstrate the bug. (war) maven war:install generates the attributes classes (jar) maven jar:install generates the attributes classes (head) maven multiproject:install generates the attributes classes ONLY for jar project. Arnaud HERITIER a écrit : Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a "maven war:install" on my web sub-project, attributes classes are generated by plugin. When I run a "multiproject:install", everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commons-attributes and maven 1.1 (Was: maven 1.1 and inherited properties)
Sory for this stupid subjet : I was thinking this comes from a properties failure... created [http://jira.codehaus.org/browse/MAVEN-1741] for this with a minimalist test-case Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a "maven war:install" on my web sub-project, attributes classes are generated by plugin. When I run a "multiproject:install", everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
I have no proxy. Further, I've downloaded something from the central repository for another project just now but the war plugin does not work. When I execute mvn install, it just doesn't seem to even try to connect to the internet. It instantly gives me the build error. Is there a command where I can install the plugin manually? Is there even a released plugin for m2? I browsed the repository and only found beta version. _Mang Lee Meador <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 01/31/2006 11:40 AM Please respond to "Maven Users List" To Maven Users List cc Subject Re: [m2] Cannot find maven-war-plugin If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > Hi, > > When I execute mvn install on a web project, I get a build error stating > that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not > exist or no valid version could be found". I tried googling for this but > came up with nothing. Why is it not checking the central repository for > this plugin? Is there extra configuration needed to build a web project? > > Thanks. > > _Mang > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] Cannot find maven-war-plugin
If you have a proxy you will need to put some things in the settings.xmlfile. http://maven.apache.org/guides/mini/guide-proxies.html It is also possible that ibiblio is running really slow. You might try again and see if it does any better. I have had to try 3 times to get things downloaded on occasion. On 1/31/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote: > > Hi, > > When I execute mvn install on a web project, I get a build error stating > that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not > exist or no valid version could be found". I tried googling for this but > came up with nothing. Why is it not checking the central repository for > this plugin? Is there extra configuration needed to build a web project? > > Thanks. > > _Mang > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: Maven integration with WAS5
Is there a way to turn on the WRD without human interaction? Such as from an ant script within Maven. Do you have a source of information on using it? The IBM docs are totally fragmented with no unified example. (Well ... that I have found) How about disabling it. How is that done? Thanks. -- Lee Meador On 1/31/06, Mike Perham <[EMAIL PROTECTED]> wrote: > > For websphere 6 I've found that bypassing the IDE integration and using > Websphere Rapid Deploy is the most reliable process so far. My ear > build just copies the EAR to the WRD directory and it is auto-reloaded. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lee Meador > Sent: Tuesday, January 31, 2006 9:28 AM > To: Maven Users List > Subject: Re: Maven integration with WAS5 > > You have to use the antrun plugin and write ant tasks to do it. > > Search the web for the ant tasks. There are example scripts here and > there. > > The only information IBM seems to provide on it is in the Websphere > docs. > > Here are the version 6 docs. Look for the same class names: > > http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c > om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks > /package-summary.html > > or look for the package name com.ibm.websphere.ant.tasks. > > You can use wsadmin through ant to submit jacl scripts that do these > things too. This task will only run if you use ws-ant which is a > customized version of ant that uses the IBM JDK among other things. > > It's a pain and it doesn't seem to work very well. Perhaps the Cargo > project will rescue us if some support for Websphere is added. > > Thanks. > > -- Lee Meador > > On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Can any of you please help me with this info . How to start , stop , > > > deploy applications on WAS5 with maven2 > > > > > > Regards > > Saravana > > > > > > -- > -- Lee Meador > Sent from gmail. My real email address is [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: maven 1.1 and inherited properties
Hi Nicolas, Why do you talk about inherited properties ? can it be related to http://jira.codehaus.org/browse/MAVEN-1691 ? Arnaud On 1/31/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm trying to upgrade to maven 1.1-beta2. > My project uses commons-attributes and it's maven plugin > > When I run a "maven war:install" on my web sub-project, attributes > classes are generated by plugin. > When I run a "multiproject:install", everything SEEMS good, but > attributes classes are not generated. Plugin doesn't run at all. > > Same plugin runs as expected in a simple jar > > Is this a known bug ? (it works fine under maven 1.0.2) > > Nico. > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person to > whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Cannot find maven-war-plugin
Hi, When I execute mvn install on a web project, I get a build error stating that "The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found". I tried googling for this but came up with nothing. Why is it not checking the central repository for this plugin? Is there extra configuration needed to build a web project? Thanks. _Mang
Eclipse libraries as Maven 2 dependencies
Now, I may just be going blind, but I can't find up to date Eclipse components on Ibiblio. If my Maven project depends on the SWT widgets, or Jface, or any other component, is there an alternative to creating my own objects? I found Eclipse 2.1.0 versions in http://www.ibiblio.org/maven2/eclipse/, but they're out of date. The stuff in http://www.ibiblio.org/maven2/org/eclipse/ is not the core of Eclipse, so where is it? And if it's not there, what's the problem? Thanks in advance, Nick This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
I have the same thing as Kristof in my parent POM in the section. There is no reference in the child POM. I removed the checkstyle plugin from my repository. But I get version 2.0-beta-1 downloading like Yann. This happens if I put no version in the POM (as Kristof) or if I put 2.0 in the POM. Thanks. -- Lee Meador On 1/31/06, Kristof Vanbecelaere <[EMAIL PROTECTED]> wrote: > > I manually removed a beta from my local repository. I refer to the > plugin using > > > org.apache.maven.plugins > maven-checkstyle-plugin > > >checkstyle-jjguidelines.xml > > > > > and running mvn site downloads it for me. > > On Jan 31, 2006, at 13:50, Yann Le Du wrote: > > > Hi, > > > > I've seen maven-checkstyle-plugin 2.0 is available since yesterday, > > which is > > good news ! > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > checkstyle-plugin/ > > > > Though, I'm still retrieving 2.0-beta-1, even with plugin update. > > > > maven-metadata still contains 2.0-beta-1 , this > > may be > > the cause - or is it on purpose ? > > http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- > > checkstyle-plugin/maven-metadata.xml > > > > - Yann > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
maven 1.1 and inherited properties
Hello, I'm trying to upgrade to maven 1.1-beta2. My project uses commons-attributes and it's maven plugin When I run a "maven war:install" on my web sub-project, attributes classes are generated by plugin. When I run a "multiproject:install", everything SEEMS good, but attributes classes are not generated. Plugin doesn't run at all. Same plugin runs as expected in a simple jar Is this a known bug ? (it works fine under maven 1.0.2) Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven integration with WAS5
For websphere 6 I've found that bypassing the IDE integration and using Websphere Rapid Deploy is the most reliable process so far. My ear build just copies the EAR to the WRD directory and it is auto-reloaded. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Tuesday, January 31, 2006 9:28 AM To: Maven Users List Subject: Re: Maven integration with WAS5 You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/c om.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks /package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Can any of you please help me with this info . How to start , stop , > deploy applications on WAS5 with maven2 > > > Regards > Saravana > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven integration with WAS5
You have to use the antrun plugin and write ant tasks to do it. Search the web for the ant tasks. There are example scripts here and there. The only information IBM seems to provide on it is in the Websphere docs. Here are the version 6 docs. Look for the same class names: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.javadoc.doc/public_html/api/com/ibm/websphere/ant/tasks/package-summary.html or look for the package name com.ibm.websphere.ant.tasks. You can use wsadmin through ant to submit jacl scripts that do these things too. This task will only run if you use ws-ant which is a customized version of ant that uses the IBM JDK among other things. It's a pain and it doesn't seem to work very well. Perhaps the Cargo project will rescue us if some support for Websphere is added. Thanks. -- Lee Meador On 9/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > Can any of you please help me with this info . How to start , stop , > deploy applications on WAS5 with maven2 > > > Regards > Saravana > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
I can't get cobertura to work with maven 2.0.2
Okay I have changed my build so that the checkstyle etc all happen on the verify phase, and have updated to use the latest snapshot version of cobertura plugin. [mvn install] works fine - all is as expected. but [mvn site] continues to break as follows: (disco-davesag) [15:59:16] ~/checkouts/EPO/cassius_service_Sis$ mvn site [INFO] Scanning for projects... [INFO] [INFO] Building Search Information Service (redux) [INFO] task-segment: [site] [INFO] [INFO] Preparing cobertura:cobertura [INFO] [resources:resources] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [cobertura:instrument {execution: instrument-classes}] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura Cobertura: Saved information on 4 classes. Instrument time: 244ms [INFO] Instrumentation was successful. [INFO] [cobertura:instrument] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 4 classes. Instrumenting 6 classes to /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/DossierTranslationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationService.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:364) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:382) at net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:440) at net.sourceforge.cobertura.instrument.Main.main(Main.java:462) [cobertura] WARN [main] net.sourceforge.cobertura.instrument.Main - Unable to instrument file /Users/davesag/checkouts/EPO/cassius_service_Sis/target/generated-classes/cobertura/org/epo/cassius/csp/SimpleSearchInformationServiceDelegate.class java.lang.ArrayIndexOutOfBoundsException: 8 at org.objectweb.asm.ClassReader.readUnsignedShort(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at org.objectweb.asm.ClassReader.(Unknown Source) at net.sourceforge.cobertura.instrument.Main.addInstrumentationToSingleClass(Main.java:286) at net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.j
How to customise the, by maven2, generated site
Hi, I would like some advice of how to customise the site maven2 generates. I have seen one blog which suggests taking a copy of the default velocity template, modify that and then override the template directory. http://blogs.sun.com/roller/page/wilfred?entry=customing_maven_2_site_layout I also stumbled into a confluence page which had something about skinning on it, but it was difficult to tell how if this is implemented or in discussion. http://docs.codehaus.org/display/MAVEN/Sites+and+Inheritence I would be very grateful for some advice. Cheers, Mikael
Re: [m2] parent pom
See "How do I build more than one project at once?" here: http://maven.apache.org/guides/getting-started/index.html If you are using Eclipse, this can be useful: http://maven.apache.org/guides/mini/guide-ide-eclipse.html Otherwise, search the mail: http://www.nabble.com/Maven---Users-f178.html Richard Allen Frank Russo wrote: Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows . If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists , then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: 4.0.0 sample.project sample pom Sample Project 1.0-SNAPSHOT This is a sample project module-1 module-2 module-3 junit junit 3.8.1 test org.apache.maven maven-model 2.0 Module-1 Child POM: 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/maven-v4_0_0.xsd";> sample.project sample 1.0-SNAPSHOT 4.0.0 module-1 Sample Project Module 1 org.apache.maven maven-model Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
Do you or anyone else know where (if it exists) the documention is for this? The pom descriptor only shows . If anyone knows how to use this, please pass along. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists , then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: >I have a question in regards to this. Is there a way to build the >projects as a whole, as you say? As of now, I have to run maven on each >individual child, and I'm not sure if there is one way to call maven to >run the parent and all children at once. > >Does anyone know if this is doable? > >Frank Russo >Senior Developer >FX Alliance, LLC > > >-Original Message- >From: Maria Odea Ching [mailto:[EMAIL PROTECTED] >Sent: Monday, January 30, 2006 10:17 PM >To: Maven Users List >Subject: Re: [m2] parent pom > >Hi Fredy, > >The concept of parent poms can be applied to multi-module projects >wherein it provides you the priviledge of building your modules >individually or as a whole (project). >You need to define your parent pom in your project's root directory (ex. > >C:\Project\pom.xml ) and the children pom in each module's root >directory (ex. C:\Project\module-1\pom.xml). > >Please take a look below at the sample parent and child poms. > >Parent POM: > > 4.0.0 > sample.project > sample > pom > Sample Project > 1.0-SNAPSHOT > This is a sample project > >module-1 >module-2 >module-3 > > > > junit > junit > 3.8.1 > test > > > > > >org.apache.maven >maven-model >2.0 > > > > > > >Module-1 Child POM: >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/maven-v4_0_0.xsd";> > >sample.project >sample >1.0-SNAPSHOT > > 4.0.0 > module-1 > Sample Project Module 1 > > > org.apache.maven > maven-model > > > > >Thanks, >Odea > > >Fredy wrote: > > > >>hi, >>i've read something about the parent pom at multiple places, but have >> >> >not found an explanation about it. > > >>Is there a doc about parent pom's? Where to define it, how to extend >> >> >it?? Do it mean a pom in a multi module project like mojo-sandbox? > > >>Fredy >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn: Error resolving case of
Don't worry. I would like to prepare some docs about the subject (Maven 2 and Subversion) for beginners. I'll make you know if I finally complete it. Another question... where is the SCM user password provided when using SCM url? As from the specification (and checked on svnScmProviderRepository class) the password is not gathered for the URL, as in the case on CVS. I have checked whether the password was taken from settings.xml file but it seems it is not the case. Alex On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > I don't think some docs exists somewhere about it, sorry. > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > Thanks for your quick answer! ;) > > > > Regarding the space before "-DtabBase", you know... issues of copy & > paste > > from command line. :$ > > > > Do you know whether best practices information about Maven 2 integration > > with SCM exist somewhere? > > > > Regards, > > Alex > > > > On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > > >>1- you need a space before "-DtagBase" ;-) > >>2- tagbase is a svn url ant not a maven scm url, so replace your tagBase > >>with > >>svn://localhost/CVS/maven-deployment/tags > >> > >>You can use Nabble to search in ML archives ( > >>http://www.nabble.com/forum/Search.jtp?query=maven) > >> > >>Emmanuel > >> > >>Alejandro Nicolas Mascarell a écrit : > >> > >>>I would appreciate your help to troubleshoot the following error. I > >> > >>can't > >> > >>>figure out why it is not working. I have try in several ways with the > >> > >>same > >> > >>>result. > >>> > >>>Command: > >>>mvn release:prepare - > >>> > >> > >> > Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags > >> > >>>Result: > >>>[INFO] Tagging release with the label 1.0. > >>>Provider message: > >>>The svn tag command failed. > >>>Command output: > >>>svn: Error resolving case of > >>>'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' > >>> > >>>POM.xml fragment: > >>> > >>> > >>> > > >>scm:svn:svn://localhost/CVS/maven-deployment/trunk > >> > >>> > >>> > >>> > >>> > >>>maven-release-plugin > >>> > >>> > >>>scm:svn:svn://localhost/CVS/maven-deployment/tags > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>>Thanks!!! > >>> > >>>P.S.: is there a way to search in the mailing-list database, appart > from > >>>Google? I'm sorry if my question has been previously posted. > >>> > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: [m2] parent pom
Cool. I missed that. Thanks... Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Richard Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 8:57 AM To: Maven Users List Subject: Re: [m2] parent pom If your parent project POM lists , then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: >I have a question in regards to this. Is there a way to build the >projects as a whole, as you say? As of now, I have to run maven on each >individual child, and I'm not sure if there is one way to call maven to >run the parent and all children at once. > >Does anyone know if this is doable? > >Frank Russo >Senior Developer >FX Alliance, LLC > > >-Original Message- >From: Maria Odea Ching [mailto:[EMAIL PROTECTED] >Sent: Monday, January 30, 2006 10:17 PM >To: Maven Users List >Subject: Re: [m2] parent pom > >Hi Fredy, > >The concept of parent poms can be applied to multi-module projects >wherein it provides you the priviledge of building your modules >individually or as a whole (project). >You need to define your parent pom in your project's root directory (ex. > >C:\Project\pom.xml ) and the children pom in each module's root >directory (ex. C:\Project\module-1\pom.xml). > >Please take a look below at the sample parent and child poms. > >Parent POM: > > 4.0.0 > sample.project > sample > pom > Sample Project > 1.0-SNAPSHOT > This is a sample project > >module-1 >module-2 >module-3 > > > > junit > junit > 3.8.1 > test > > > > > >org.apache.maven >maven-model >2.0 > > > > > > >Module-1 Child POM: >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/maven-v4_0_0.xsd";> > >sample.project >sample >1.0-SNAPSHOT > > 4.0.0 > module-1 > Sample Project Module 1 > > > org.apache.maven > maven-model > > > > >Thanks, >Odea > > >Fredy wrote: > > > >>hi, >>i've read something about the parent pom at multiple places, but have >> >> >not found an explanation about it. > > >>Is there a doc about parent pom's? Where to define it, how to extend >> >> >it?? Do it mean a pom in a multi module project like mojo-sandbox? > > >>Fredy >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] parent pom
If your parent project POM lists , then those projects will be built when the parent is built. Richard Allen Frank Russo wrote: I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: 4.0.0 sample.project sample pom Sample Project 1.0-SNAPSHOT This is a sample project module-1 module-2 module-3 junit junit 3.8.1 test org.apache.maven maven-model 2.0 Module-1 Child POM: 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/maven-v4_0_0.xsd";> sample.project sample 1.0-SNAPSHOT 4.0.0 module-1 Sample Project Module 1 org.apache.maven maven-model Thanks, Odea Fredy wrote: hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] parent pom
I have a question in regards to this. Is there a way to build the projects as a whole, as you say? As of now, I have to run maven on each individual child, and I'm not sure if there is one way to call maven to run the parent and all children at once. Does anyone know if this is doable? Frank Russo Senior Developer FX Alliance, LLC -Original Message- From: Maria Odea Ching [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 10:17 PM To: Maven Users List Subject: Re: [m2] parent pom Hi Fredy, The concept of parent poms can be applied to multi-module projects wherein it provides you the priviledge of building your modules individually or as a whole (project). You need to define your parent pom in your project's root directory (ex. C:\Project\pom.xml ) and the children pom in each module's root directory (ex. C:\Project\module-1\pom.xml). Please take a look below at the sample parent and child poms. Parent POM: 4.0.0 sample.project sample pom Sample Project 1.0-SNAPSHOT This is a sample project module-1 module-2 module-3 junit junit 3.8.1 test org.apache.maven maven-model 2.0 Module-1 Child POM: 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/maven-v4_0_0.xsd";> sample.project sample 1.0-SNAPSHOT 4.0.0 module-1 Sample Project Module 1 org.apache.maven maven-model Thanks, Odea Fredy wrote: >hi, >i've read something about the parent pom at multiple places, but have not found an explanation about it. >Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? > >Fredy > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2.1-SNAPSHOT] Activating profiles causes NullPointerException
I have defined a profile in my POM which is meant to cause the maven-jar-plugin to sign JARs generated by subprojects. When I activate the profile I get a NPE. Below is my POM and the NPE. 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/maven-v4_0_0.xsd";> 4.0.0 sis common pom 1.0-SNAPSHOT sis-common maven-compiler-plugin 1.5 1.5 true true false true maven-jar-plugin 2.1_SNAPSHOT false sign-jar rel true maven-jar-plugin sign ${keystore.file} ${keystore.pass} ${keystore.alias} util app junit junit 3.8.1 test log4j log4j 1.2.13 [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.project.injection.DefaultProfileInjector.injectPlugins(DefaultProfileInjector.java:147) at org.apache.maven.project.injection.DefaultProfileInjector.injectBuild(DefaultProfileInjector.java:134) at org.apache.maven.project.injection.DefaultProfileInjector.inject(DefaultProfileInjector.java:80) at org.apache.maven.project.DefaultMavenProjectBuilder.injectActiveProfiles(DefaultMavenProjectBuilder.java:1132) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:945) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:672) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:414) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:190) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Am I doing something wrong or is this a bug? Thanks, Richard Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn: Error resolving case of
I don't think some docs exists somewhere about it, sorry. Emmanuel Alejandro Nicolas Mascarell a écrit : Thanks for your quick answer! ;) Regarding the space before "-DtabBase", you know... issues of copy & paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: 1- you need a space before "-DtagBase" ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives ( http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm:svn:svn://localhost/CVS/maven-deployment/trunk maven-release-plugin scm:svn:svn://localhost/CVS/maven-deployment/tags Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: multi-module maven 2 project
"2- You don't need independant projects for submodules in Continuum. Add a Shell project instead of Maven project and set up the command line to run." This wouldn't check the scm for changes and do a checkout would it? What about removing the -N flag and all the modules? A pain to remove them all (checkboxes next them to delete/edit would be awesome) but it would work I think. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 31, 2006 3:46 AM To: continuum-users@maven.apache.org Subject: Re: multi-module maven 2 project a "command line project" is a Shell project. If you want to build all sub-modules when you build the parent, you have several solution. 1- You want all projects are independant in Continuum, so you add a Maven project. The default goal of a maven parent project isclean install with -N parameter that means that mvn doesn't run recursivly in all modules. You can remove -N parameter in build definition but all your submodules will be built twice (with parent pom and with independant project) 2- You don't need independant projects for submodules in Continuum. Add a Shell project instead of Maven project and set up the command line to run. Emmanuel Johnson, Jonathan a écrit : > I submitted the parent pom to continuum. Its very nicely found all the > sub-modules and set those up as well. I did not have to set up a command > line project (not sure what that is either). > > One thing that could be enhanced for continuum is a tree structure instead of > a flat list. The tree structure would indicate while module is the parent > module. Currently there is not indicator which is you parent module. Of > course that begs the question of a hierarchical, multi-project tree in maven > and continuum. > > The other thing I noticed is forcing a build on the parent module in > continuum does not execute the build on the all children. For me it quickly > executes with a success yet the sub-module builds are not invoked. > > This is the build report on the parent module named "Java Modules". > > > [INFO] Scanning for projects... > [INFO] > -- > -- > [INFO] Building Java Modules > [INFO]task-segment: [clean, install] > [INFO] > -- > -- > [INFO] [clean:clean] > [INFO] Skipping missing optional mojo: > org.apache.maven.plugins:maven-site-plugin:attach-descriptor > [INFO] [install:install] > [INFO] Installing /home/builder/454/AppJava/modules/66/pom.xml to > /home/builder/.m2/repository/com/fourfivefour/AppJavaModules/1.0/AppJa > vaModules-1.0.pom [INFO] > -- > -- > [INFO] BUILD SUCCESSFUL > [INFO] > -- > -- > [INFO] Total time: 2 seconds > [INFO] Finished at: Mon Jan 30 14:02:38 EST 2006 [INFO] Final Memory: > 2M/5M [INFO] > -- > -- > > -Original Message- > From: Stevenson, Chris [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 1:04 PM > To: 'continuum-users@maven.apache.org' > Subject: RE: multi-module maven 2 project > > Gents, > > Can I just check, did you setup your mvn multi module project by > submitting the parent pom and continuum working it out? Or did you > have to create a command line project? > > I remember a while back that continuum couldn't build multi module > projects, except as a command line project. Or am I going nuts.. > > Chris > > -Original Message- > From: Johnson, Jonathan [mailto:[EMAIL PROTECTED] > Sent: 27 January 2006 15:26 > To: continuum-users@maven.apache.org > Subject: RE: multi-module maven 2 project > > Thanks Emmanuel - comments below. > > -Original Message- > From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] > Sent: Friday, January 27, 2006 9:37 AM > To: continuum-users@maven.apache.org > Subject: Re: multi-module maven 2 project > > Johnson, Jonathan a écrit : > >>I'm using maven 2.0.2, Continuum 1.0.2 and java 1.5. My project is a >>multi-module that is laid out in the recommended maven 2 manner and is >>building my projects (phew). I have a couple questions about my >>experiences so far. >> >> >> >>1.When I change some information in my parent pom.xml (such as the >>developer list.) do I have to readd the pom again. Is there a >>refresh option? > > >>>Normally, the pom will be refresh automatically by continuum, but it >>> >>>doens't to do it. File an issue about it. >>> >>>So actually, if your pom isn't updated in continuum, delete your >>>project and readd it. > > > I will file the issue. > > >>2.If I add my parent pom.xsl it adds all the child modules again >>and there are duplicate modules in the continuum projects list. I >>then have to remo
Re: [m2] maven-checkstyle-plugin 2.0 can't be retrieved
I manually removed a beta from my local repository. I refer to the plugin using org.apache.maven.plugins maven-checkstyle-plugin checkstyle-jjguidelines.xml and running mvn site downloads it for me. On Jan 31, 2006, at 13:50, Yann Le Du wrote: Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains 2.0-beta-1 , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven- checkstyle-plugin/maven-metadata.xml - Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profiling with Maven 2
Hi all, how did you handle the automatic profiling of code in Maven 2? I was looking for a plugin that does these kind of things, but it seems there isn't one. If I had to resort to making my own plugin, which tool could be suitable? Or maybe someone has experience using ANT tasks for that? Any thoughts are highly appreciated! Bye, Michael -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] maven-checkstyle-plugin 2.0 can't be retrieved
Hi, I've seen maven-checkstyle-plugin 2.0 is available since yesterday, which is good news ! http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ Though, I'm still retrieving 2.0-beta-1, even with plugin update. maven-metadata still contains 2.0-beta-1 , this may be the cause - or is it on purpose ? http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/maven-metadata.xml - Yann
Re: Dependency version problem in multi-module project
Hello, I recreated the situation and I got a similar result. Instead of both (B and C) using A-1.0.3-SNAPSHOT, both used A-1.0.2. Looks like I can't answer your question. Haha! Cheers! Nap On 1/31/06, Espen Amble Kolstad <[EMAIL PROTECTED]> wrote: > > Hi, > > Layout: > /pom.xml-- no dependencies > /A/pom.xml -- no dependencies (Versions 1.0.2 and 1.0.3-SNAPSHOT) > /B/pom.xml -- Depends on A-1.0.2 > /C/pom.xml -- Depends on A-1.0.3-SNAPSHOT > > Here's the problem: > When building all modules using the reactor: /> mvn clean package > B contains A-1.0.3-SNAPSHOT instead of A-1.0.2 > while C is correct (A-1.0.3-SNAPSHOT) > > When building B separate, it is correctly built with A-1.0.2 > > Has anyone had a similar problem? > > - Espen > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Forcing the order of plugins bound to the same phase (was Re: M2.02 - mvn site now triggers a compile!)
Brett Porter <[EMAIL PROTECTED]> wrote on 31-01-2006 11:16:29: > On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > Either way I probably need to bind checkstyle, pmd, findbugs etc to a > > phase other than compile then, perhaps verify. Hmm will ponder this. > > The reports, or the checks? The reports should be part of the site > generation and not bound to any phases. The checks definitely belong > in verify if they don't require any extra steps such as compilation. > the checks. i run the checkstyle, pmd and findbugs checks and then in the verify stage pipe those checks into the qalab plugin to generate historical dev stats. ideally i'd run these as part of verify and then once they had run pipe them trhough qalab, but i have never been able to work out how to specify the order that plugins run when bound to the same phase. any clues how to do that? dave
Re: svn: Error resolving case of
Thanks for your quick answer! ;) Regarding the space before "-DtabBase", you know... issues of copy & paste from command line. :$ Do you know whether best practices information about Maven 2 integration with SCM exist somewhere? Regards, Alex On 1/31/06, Emmanuel Venisse <[EMAIL PROTECTED]> wrote: > > 1- you need a space before "-DtagBase" ;-) > 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase > with > svn://localhost/CVS/maven-deployment/tags > > You can use Nabble to search in ML archives ( > http://www.nabble.com/forum/Search.jtp?query=maven) > > Emmanuel > > Alejandro Nicolas Mascarell a écrit : > > I would appreciate your help to troubleshoot the following error. I > can't > > figure out why it is not working. I have try in several ways with the > same > > result. > > > > Command: > > mvn release:prepare - > > > Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags > > > > Result: > > [INFO] Tagging release with the label 1.0. > > Provider message: > > The svn tag command failed. > > Command output: > > svn: Error resolving case of > > 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' > > > > POM.xml fragment: > > > > > > > scm:svn:svn://localhost/CVS/maven-deployment/trunk > > > > > > > > > > maven-release-plugin > > > > > > scm:svn:svn://localhost/CVS/maven-deployment/tags > > > > > > > > > > > > > > > > Thanks!!! > > > > P.S.: is there a way to search in the mailing-list database, appart from > > Google? I'm sorry if my question has been previously posted. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: svn: Error resolving case of
1- you need a space before "-DtagBase" ;-) 2- tagbase is a svn url ant not a maven scm url, so replace your tagBase with svn://localhost/CVS/maven-deployment/tags You can use Nabble to search in ML archives (http://www.nabble.com/forum/Search.jtp?query=maven) Emmanuel Alejandro Nicolas Mascarell a écrit : I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm:svn:svn://localhost/CVS/maven-deployment/trunk maven-release-plugin scm:svn:svn://localhost/CVS/maven-deployment/tags Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn: Error resolving case of
I would appreciate your help to troubleshoot the following error. I can't figure out why it is not working. I have try in several ways with the same result. Command: mvn release:prepare - Dproject.scm.developerConnection=scm:svn:svn://localhost/CVS/maven-deployment/trunk-DtagBase=scm:svn:svn://localhost/CVS/maven-deployment/tags Result: [INFO] Tagging release with the label 1.0. Provider message: The svn tag command failed. Command output: svn: Error resolving case of 'scm:svn:svn:\localhost\CVS\maven-deployment\tags\1.0' POM.xml fragment: scm:svn:svn://localhost/CVS/maven-deployment/trunk maven-release-plugin scm:svn:svn://localhost/CVS/maven-deployment/tags Thanks!!! P.S.: is there a way to search in the mailing-list database, appart from Google? I'm sorry if my question has been previously posted.
Re: [m2] Wrong SCM info put by the release plugin
The best practice is to define scm url in parent pom if modules are in a sub-directory. maven will calculate the correct url for submodules. File an issue for 2. Emmanuel Arik Kfir a écrit : Hi, I have a project with several modules in it. The entire project is stored in one SVN repository, in the following layout: myproject | +-- module A | +-- module B | +-- . The root pom has a url like "http://svn.myserver/.../trunk/";, and each sub module also has its own tag with a url such as "http://svn.myserver/.../trunk/moduleA";, etc. 1. Is this the best practice, or can the release plugin "guess" the correct scm url for sub modules based on the parent module? 2. If this is the correct way, then there's a bug in the release plugin: after "release:prepare", the URL encoded back into the modules' POMs is the same URL as the root POM, rather than the original module's SCM url. Should I fire a JIRA, or remove my modules' urls? Kind regards, _ Arik Kfir[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Wrong SCM info put by the release plugin
Hi, I have a project with several modules in it. The entire project is stored in one SVN repository, in the following layout: myproject | +-- module A | +-- module B | +-- . The root pom has a url like "http://svn.myserver/.../trunk/";, and each sub module also has its own tag with a url such as "http://svn.myserver/.../trunk/moduleA";, etc. 1. Is this the best practice, or can the release plugin "guess" the correct scm url for sub modules based on the parent module? 2. If this is the correct way, then there's a bug in the release plugin: after "release:prepare", the URL encoded back into the modules' POMs is the same URL as the root POM, rather than the original module's SCM url. Should I fire a JIRA, or remove my modules' urls? Kind regards, _ Arik Kfir[EMAIL PROTECTED]
Dependency version problem in multi-module project
Hi, Layout: /pom.xml-- no dependencies /A/pom.xml -- no dependencies (Versions 1.0.2 and 1.0.3-SNAPSHOT) /B/pom.xml -- Depends on A-1.0.2 /C/pom.xml -- Depends on A-1.0.3-SNAPSHOT Here's the problem: When building all modules using the reactor: /> mvn clean package B contains A-1.0.3-SNAPSHOT instead of A-1.0.2 while C is correct (A-1.0.3-SNAPSHOT) When building B separate, it is correctly built with A-1.0.2 Has anyone had a similar problem? - Espen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Executing mvn test (JUnit)
Hi There is also a naming pattern for test cases. May be your testcases doesn't match the default pattern. You may configure your pom for test cases as follows:- org.apache.maven.plugins maven-surefire-plugin **/*Test.java **/Test*.java **/*TestCase.java In include tags give the pattern of your test cases. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, January 29, 2006 4:40 AM To: users@maven.apache.org Subject: Executing mvn test (JUnit) Hi Folks Perhaps my problems is very simple: I am creating very simple tests creating simple testcases, when I do the smaller and easier test using some class as which is src folder structure, my tests doesn't work, when I do some foo test, it works, are there some additional information I must to inform in pom.xml to execute the tests ? Thanks in adv Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 and Eclipse
Hello, I'm a little desesperate with this m2 eclipse plugin while everything works so good with configuring externa tools like indicate on maven sit guide http://maven.apache.org/guides/mini/guide-ide-eclipse.html I never succeed to build anyone with. I get error below on compile or package. I see that on launching it's invoke plugin-registry.xml in which maven-package and maven-compile plugin are RELEASE or LATEST version. I don't want delete plugin-registry file. Because i don't know the result on maven behaviour. adding dependency is well managed. But for me it is not sufficient. Where's wrong ? any Idea? Could you give me some hint of your configuration? Thanks in advance, Tom INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [compile] [INFO] [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [WARN] repository metadata for: 'artifact org.apache.maven.plugins:maven-resources-plugin' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted [DEBUG] Exception Error transferring file [DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-resources-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-resources-plugin:pom:LATEST [DEBUG] maven-resources-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-resources-plugin:pom:RELEASE 2006/1/31, Kathryn Huxtable <[EMAIL PROTECTED]>: > Yes. It sort of works for me. The 0.0.4 plugin does *not* read the > settings.xml file, which is pretty limiting, but I have used it > successfully. > > It works best, IMHO, if you "enable" the Maven2 nature, which puts a Maven2 > container in your .classpath file instead of listing each jar separately. > That way, when you edit your pom.xml the dependencies are automatically > updated. > > But since it doesn't read your settings.xml, it will have trouble getting to > a local repository if that repository requires authentication. > > -K > > -- > Kathryn Huxtable > Middleware Architect > Core Middleware > Information Technology, a division of Information Services > The University of Kansas > > > On 1/30/06 8:39 PM, "Maciej Mastalarczuk" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > > > > > Has anyone had any luck with using Maven 2 with Eclipse? It can be easily > > integrated through external launch configuration, but Eclipse build paths > > are pain. I know there is a plugin for Eclipse > > (http://m2eclipse.codehaus.org), but the latest version (0.0.4) seems to be > > completely broken as it does not want to download anything; just says > > something about authentication being cancelled. The previous version (0.0.3) > > is slightly better, but it has the older version of Maven embedder (2.0 beta > > 4 SNAPSHOT) and seems to download wrong stuff. I am using maven 2.0.2. > > > > > > > > Has anybody got it working properly? I mean having a Maven 2 project with > > all dependencies resolved in Eclipse. > > > > > > > > Thanks in advance > > > > > > > > Maciej Mastalarczuk > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Branch info lost on release
We're using Maven 2 with CVS on several multi-module projects and we have successfully performed releases in the last 3 months. Yesterday we ran into problems with releases on a CVS branch. I added a on the element for the parent pom on the branched project. When I did a release the pom checked in by the release plugin actually removed the element. Am I using the wrong element for describing the branch name or should I file a bug on the release plugin? Thanks, Ørjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Error in dependencyCheck starting tomcat -> Bug or Feature?
Hi, the last weeks, I often test to deploy an axis webapp depending on an jar and have always the following error: SCHWERWIEGEND: Error in dependencyCheck java.io.IOException: invalid header field Today I have searched for the error and found the Problem in my Manifest.mf of the jar. Maven takes the pom.description an place it to "Manifest.mf -> Specification-Title:". Now my description is a sentence and was edited wiht an editor. Now there are "bad charakters" (CR) in the description and Tomcat have problems with this characters! Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.02 - mvn site now triggers a compile!
On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > the version jason sent me was 2.0-SNAPSHOT Yep, still a snapshot: http://maven.apache.org/guides/development/guide-testing-development-plugins.html > so site *does* invoke compile and test then. for after all imho what use > is the site without the surefire reports? Actually, I generally don't run the surefire reports, preferring to fail the build if the tests don't pass and not generate the site. The surefire report plugin needs some work, such as the effeciency you mention. > Either way I probably need to bind checkstyle, pmd, findbugs etc to a > phase other than compile then, perhaps verify. Hmm will ponder this. The reports, or the checks? The reports should be part of the site generation and not bound to any phases. The checks definitely belong in verify if they don't require any extra steps such as compilation. HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.02 - mvn site now triggers a compile!
Brett Porter <[EMAIL PROTECTED]> wrote on 31-01-2006 10:44:57: > On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > > I'll deploy a snapshot, so you can follow the instructions on the maven > > > website to use it. > > > > > > > Okay that would be great. Will you announce it to this list when you do > > please? I'll focus on something else until that point. > > Yep, already done. > ah thanks. i guess i am stupid but i can't see it in http://maven.apache.org/plugins/ is there somewhere more specific in the maven website i should look? I looked in http://www.ibiblio.org/maven2/maven-plugins/maven-cobertura-plugin/ but the latest version there is 1.1.1 dated 5 dec 2005. and there is no sign of it in http://www.ibiblio.org/maven2/org/apache/maven/plugins/ the version jason sent me was 2.0-SNAPSHOT > > > I'm not sure on this one. Would need to boil it down to something simple > > and > > > reproducible to look at it I think. > > > > > > > shall i raise a Jira issue? Unfortunately I can't supply the pom.xml and > > code I am using as it's internal to the EPO. > > Yes, I meant if you could reproduce it with something similar to your > build, without the variables. > i'll try out the new cobertural plugin first. > Do you know what versions of plugins you are using? A safe bet is to > remove ~/.m2/repository/org/apache/maven/plugins to ensure you are on > the last releases. > ok > > > I suspect one of the other plugins is doing this (eg surefire-report?) > > > > > > > hmm. there's nothing non-standard about the way I generate my surefire > > report so this is a bit of a mystery. > > But surefire-report does invoke compile and test to generate the > report - it has always done so. I thought you meant something was > happening in addition to that? > so site *does* invoke compile and test then. for after all imho what use is the site without the surefire reports? Why does it need to do this though? Surely if the tests have already been run and some sort of xml report has already been generated then the site report could simply transform that xml into a site with no need to recompile and run the tests. Either way I probably need to bind checkstyle, pmd, findbugs etc to a phase other than compile then, perhaps verify. Hmm will ponder this. cheers dave
How to inject settings into an EAR archive?
Hi maven-users! I want to use m2 to build a J2EE app. So far I've set up a multiproject layout with modules for EJB-JAR, WAR and for EAR. Pretty straightforward. Now there come some extra requirements into play. I produce artefacts for different appservers, which all need slightly different settings. Additionally I use an obfuscator to obfuscate some of the classes. For each obfuscated build that I want to release I get a logfile which I have to keep safe. My aim is to reduce the number of these logfiles, so I definitly don't want a logfile per appserver-specific build. Instead I'd like to have a generalized build, that then can be obfuscated. But therefore I need a means to inject my specific settings into the already built, obfuscated and packaged EAR, WAR or JAR (or, to complicate things, into the WAR inside the EAR...). Now the important question: are there tools/plugins/any other mechanisms available for the scenario I sketched above? Thanks for any help. Christoph Grothaus
Re: M2.02 - mvn site now triggers a compile!
On 1/31/06, David Sag <[EMAIL PROTECTED]> wrote: > > I'll deploy a snapshot, so you can follow the instructions on the maven > > website to use it. > > > > Okay that would be great. Will you announce it to this list when you do > please? I'll focus on something else until that point. Yep, already done. > > I'm not sure on this one. Would need to boil it down to something simple > and > > reproducible to look at it I think. > > > > shall i raise a Jira issue? Unfortunately I can't supply the pom.xml and > code I am using as it's internal to the EPO. Yes, I meant if you could reproduce it with something similar to your build, without the variables. Do you know what versions of plugins you are using? A safe bet is to remove ~/.m2/repository/org/apache/maven/plugins to ensure you are on the last releases. > > I suspect one of the other plugins is doing this (eg surefire-report?) > > > > hmm. there's nothing non-standard about the way I generate my surefire > report so this is a bit of a mystery. But surefire-report does invoke compile and test to generate the report - it has always done so. I thought you meant something was happening in addition to that? > so you are telling me I have stumbled upon a very isolated case of the new > release breaking a a plugin. Okay I can accept that. For now I will just > have to make do without my lovely cobertura reports. Please let us know > when you do deploy a snapshot of the working cobertura plugin however, as > it really is a critical part of my project. It's up now, and we'll prioritise a full release in the near future. Thanks, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 2 and Eclipse
Maciej Mastalarczuk wrote on Tuesday, January 31, 2006 3:39 AM: > Hi, > > Has anyone had any luck with using Maven 2 with Eclipse? It > can be easily > integrated through external launch configuration, but Eclipse > build paths > are pain. I know there is a plugin for Eclipse > (http://m2eclipse.codehaus.org), but the latest version (0.0.4) seems > to be completely broken as it does not want to download anything; > just says something about authentication being cancelled. The previous > version (0.0.3) > is slightly better, but it has the older version of Maven > embedder (2.0 beta > 4 SNAPSHOT) and seems to download wrong stuff. I am using maven 2.0.2. > > > > Has anybody got it working properly? I mean having a Maven 2 > project with > all dependencies resolved in Eclipse. I can run Maven 2.0.0 with an External Tool definition (using Eclipse 3.2M4): You just have to define maven_2_home in the "Preferences/Debug/String Substitution" for your Maven 2 home. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Executing mvn test (JUnit)
Hmmm.. thats weird, I think you got it right. Could you paste the stacktrace and your directory layout ? Regards, -allan Edgar Silva wrote: Hi Allan, Thanks to help me, but it doesn't work yet. I am not doing nothing really HARD, is just a simple test using just one class, my folders as according Maven2 structure, are there some additional configuration, take a look on my pom.xml portion: org.apache.maven.plugins maven-surefire-plugin **/*.java org.codehaus.mojo jxr-maven-plugin org.codehaus.mojo changes-maven-plugin org.codehaus.mojo surefire-report-maven-plugin org.apache.maven.plugins maven-clover-plugin junit junit 3.8.1 test velocity velocity 1.4 My test is really simple, is something like this: public void testGetInstance() { EnviromentProperties result = EnviromentProperties.getInstance(); assertEquals("java.lang.String",result.replaceDataType("VARCHAR")); } When I am executing "mvn test" sounds like the EnviromentProperties class, was not found on classpath, but I have everything exactlly created by maven2 structure. The strange bahaviour is when I test with a code as the following: public void testGetInstance() { // EnviromentProperties result = EnviromentProperties.getInstance(); assertEquals("java.lang.String","java.lang.String"); } And everything works fine. any idea? I am using Maven 2.0.1 Thanks Ed On Mon, 30 Jan 2006 17:52:28 +0800, Allan Ramirez <[EMAIL PROTECTED]> escreveu: De: Allan Ramirez <[EMAIL PROTECTED]> Data: Mon, 30 Jan 2006 17:52:28 +0800 Para: Maven Users List Assunto: Re: Executing mvn test (JUnit) Try this http://maven.apache.org/plugins/maven-surefire-plugin/howto.html -allan [EMAIL PROTECTED] wrote: Hi Folks Perhaps my problems is very simple: I am creating very simple tests creating simple testcases, when I do the smaller and easier test using some class as which is src folder structure, my tests doesn't work, when I do some foo test, it works, are there some additional information I must to inform in pom.xml to execute the tests ? Thanks in adv Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2.02 - mvn site now triggers a compile!
Brett Porter <[EMAIL PROTECTED]> wrote on 30-01-2006 22:22:47: > On 1/30/06, David Sag <[EMAIL PROTECTED]> wrote: > > > > so my questions: > > 1) could someone with a working (with maven 2.0.2) cobertura plugin please > > send it to me with the correct pom.xml - jason z only sent me the compiled > > plugin without any pom.xml so it is entirely possible this is a big part > > of my problem. > > > I'll deploy a snapshot, so you can follow the instructions on the maven > website to use it. > Okay that would be great. Will you announce it to this list when you do please? I'll focus on something else until that point. > 2) why would [mvn install site] fail, but separate [mvn install] followed by > > [mvn site] work okay? (once i have removed cobertura from the reporting) > > > I'm not sure on this one. Would need to boil it down to something simple and > reproducible to look at it I think. > shall i raise a Jira issue? Unfortunately I can't supply the pom.xml and code I am using as it's internal to the EPO. > 3) if the site phase is not supposed to trigger the compile and other phases > > then why would it be doing so, with or without the presence of thecobertura > > plugin? > > > I suspect one of the other plugins is doing this (eg surefire-report?) > hmm. there's nothing non-standard about the way I generate my surefire report so this is a bit of a mystery. > All this used to work fine using maven 2.0, and i was supposed to demo this > > last friday so you can imagine my frustration. > > > Sure, sorry about that. > > Any idea when the fixed cobertura plugin will be released properly? It's > > really not very acceptable to update the core maven project and then expect > > that we'll know to go build some plugins from source because they have been > > broken by the upgrade. I would prefer to see more comprehensive testing > > followed by simultanious release of a new core with new plugins and some > > mention in the release notes of any gotchas. As it is I am fighting an > > uphill battle to be able to recommend use of maven 2 for production systems > > as I have not been able to demonstrate that it is in fact stable for even > > pilot-project use. > > > Ok, you have to understand - the cobertura plugin has not ever been > released. Please don't generalise the situation. Simultaneous releases > should never be required as updates shouldn't break old released plugins > using documented and finalised APIs. > so you are telling me I have stumbled upon a very isolated case of the new release breaking a a plugin. Okay I can accept that. For now I will just have to make do without my lovely cobertura reports. Please let us know when you do deploy a snapshot of the working cobertura plugin however, as it really is a critical part of my project. dave
RE: Maven-Proxy
Cool, so i should throw away my print version of "Using+Maven+in+a+corporate+enviro". Thanks! "Maven Users List" schrieb am 30.01.06 23:32:03: > -Original Message- > From: Fredy [mailto:[EMAIL PROTECTED] > Sent: Monday, 30 January 2006 11:02 PM > To: users@maven.apache.org > Subject: Maven-Proxy > > Hey all, > is it possible to use a http-proxy in the maven-proxy? > What is this configuration for= does it work? > > Fredy > > PROXIES > #This is just a hack, it should auto discover them > proxy.list=one,two,three > > #Unauthenticated proxy > proxy.one.host=proxy1.example.com > proxy.one.port=3128 Tom's response was missing the fact you need to tell the maven-proxy repo setting to use the proxy you have defined. Do the following: 1) Specify proxy.list to include all the proxies you use, most likely you use just one proxy. proxy.list=one 2) Define the proxy details. Use one of the three examples in the properties file. I am assuming you have an unauthenticated proxy in this example. proxy.one.host= proxy.one.port= 3) Configure the repositories that are being proxied by maven-proxy to use the internet proxy just configured. repo.www-ibiblio-org.proxy=one repo.dist-codehaus-org.proxy=one If you need more details, I am in the process of updating http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+enviro nment in the next day or two with all the steps I used to configure Maven and maven-proxy in our environment. Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Fred Robert Hauschel http://www.Hauschel.de Mobil:0179 - 6917092 Telefon: 07427 - 91179 Fax: 07427 - 91178 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-Proxy
THANKS! I don't know realy why, but it seems to work now. I think the problem was the pathes. if i replaced it with ./ so the rep was in my tomcat/bin ;-)) Now i've changed it and it works. In the moment it is hard-working on downloading. Hope there are no more promlems!! Thank you very much for your large-mindedness. Fredy "Maven Users List" schrieb am 30.01.06 18:26:03: I think yes. For my configuration, repo.local-repo.url=file///./ It has the same value of the variable repo.local.store=./ ( on the head of propertie file) My maven-proxy jar and propertie are located on the repository directory (it is the simplest) and a I put #If copy is true, jars are copied from the store to the proxy-repo. Only configurable for file:/// repos repo.local-repo.copy=false When browsing my repository on web-browser I find all files under the artifacts directory are duplicated but physically on disk they are not and on repository colum , i still have super secret custom repository. For me snapshot and cache are not very clear. but I wish it helps. Tom. 2006/1/30, Fredy <[EMAIL PROTECTED]>: > The cache ?? > > The log says: Updating /junit/junit/3.8.1/junit-3.8.1.jar in snapshot cache > > Where is the cache? Does it mean the "repo.local-repo.url" variable? > Usually i can not write to that folder... > Fredy > > > "Maven Users List" schrieb am 30.01.06 17:18:59: > > I don't find what's wrong. > You have to retry . Sometimes on browsing central repository it takes > a lot of times before you get the window messagedialog to download > .jar or .pom. If your httpproxy time out is short the request is > cancelled. > Sorry it seems stupid but could you connect to internet by using the > http proxy on browser? > > > 2006/1/30, Fredy <[EMAIL PROTECTED]>: > > ok, > > i've fixed that. > > > > Onothe great mistake i had ;-(( > > > > I had configured a proxy in my settings, because i need it before i > > installed this proxy!!! > > > > Now Maven says: > > > > Downloading: file:///v:/mvnReleaseRepo/junit/junit/3.8.1/junit-3.8.1.jar > > [WARNING] Unable to get resource from repository kdg_release > > (file:///v:/mvnReleaseRepo) > > Downloading: > > http://:8080/maven-proxy-webapp/repository/junit/junit/3.8.1/junit-3.8.1.jar > > [WARNING] Unable to get resource from repository central > > (http://repo1.maven.org/maven2) > > [INFO] > > > > [ERROR] BUILD ERROR > > [INFO] > > > > [INFO] Failed to resolve artifact. > > > > GroupId: junit > > ArtifactId: junit > > Version: 3.8.1 > > > > Reason: Unable to download the artifact from any repository > > junit:junit:3.8.1:jar > > > > from the specified remote repositories: > > central (http://repo1.maven.org/maven2), > > kdg_release (file:///v:/mvnReleaseRepo), > > kdg_3rdparty (file:///v:/mvn3rdPartyRepo), > > kdg_snapshot (file:///v:/mvnSnapshotRepo) > > > > > > And The maven-proxy Log says: > > > > 2006-01-30 16:58:07,673 [INFO ] proxy.servlets.RepositoryServlet - > > Received request: /junit/junit/3.8.1/junit-3.8.1.jar > > 2006-01-30 16:58:07,680 [DEBUG] proxy.engine.DownloadEngine - Request: > > source=, path=/junit/junit/3.8.1/junit-3.8.1.jar, lastModified=-1, > > headOnly=false, ifModifiedSince=-1 > > 2006-01-30 16:58:07,685 [DEBUG] proxy.config.FileRepoConfiguration - > > Repo[global]: Checking last modified time for > > ./target/repo/junit/junit/3.8.1/junit-3.8.1.jar > > 2006-01-30 16:58:07,685 [DEBUG] proxy.config.FileRepoConfiguration - > > Repo[local-repo]: Checking last modified time for > > ./target/repo-local/junit/junit/3.8.1/junit-3.8.1.jar > > 2006-01-30 16:58:07,686 [DEBUG] components.impl.DefaultSnapshotCache - > > Unable to find /junit/junit/3.8.1/junit-3.8.1.jar in snapshot cache > > 2006-01-30 16:58:07,686 [INFO ] proxy.config.HttpRepoConfiguration - > > Repo[www-ibiblio-org]: Checking last modified time for > > http://www.ibiblio.org/maven/junit/junit/3.8.1/junit-3.8.1.jar > > 2006-01-30 16:58:08,703 [INFO ] components.impl.DefaultSnapshotCache - > > Adding /junit/junit/3.8.1/junit-3.8.1.jar to snapshot cache > > > > I can't find a problem in the log, but it doesn't work??? > > Any other idea?? > > > > Thanks > > Fredy > > > > > > "Maven Users List" schrieb am 30.01.06 16:45:24: > > > > No I have not.I specify tag on setings.xml > > - > > - > > central > > maven proxy local test > > http://10.21.240.120:/repository > > local-proxy > > > > > > > > > > 2006/1/30, Fredy <[EMAIL PROTECTED]>: > > > How have you configured your maven-proxy as repositoiry? > > > > > > I've extend my profile in settings.xml like this: > > > > > > > > > maven-proxy > > > ...Repositories > > > http://:8080/maven-proxy-webapp > > > > > >true > > > > > > > > > true > > >
Re: Maven 1.1b2 - Junit Tests
Maven uses the optional Ant JUnit task as you can see in plugin.jelly whithin ~/.maven/cache/maven-test-plugin... (your version at the end here) You might want to have a look at the source of this task to find out how it does run the tests. Regards, Gisbert Amm Ashley Hurkoo wrote: Hi does anyone knows what is the equilavent java command for maven test? I believe that the junit test run within maven, and I want to know what java command does maven execute when doing the junit test. The reason I am asking is because I am getting different result while executing "maven test" VS "java junit.textui.TestRunner myclass" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]