Re: Error in using Maven plugin in release perform process

2013-03-12 Thread nikhil naiksatam
I have already tried deleting the repository/org/apache/maven/maven-archiver folder but the issue isnt resolved. Also using version 2.4 of the release plugin gives error ''unable to load the mojo 'perform' in the plugin 'org.apache.maven.plugins:maven-release-plugin:2.4'. A required class is missin

Re: FAIL maven build on failing snapshot update?

2013-03-12 Thread Baptiste MATHUS
Hi, A good CI practice is to 1) use a private local tell/cache per job and 2) wipe out the local cache regularly (say once a day, or maybe a week to begin with) Note that wiping out the local repo is also recommended on your workstation on a regular basis for the exact reason you speak about. Che

Plugin Testing?

2013-03-12 Thread Michael Sena
Hi All, Can anyone actually provide a link to a working example of the plugin testing framework? I’m using maven 3.0.5, and have even tried compiling the snapshot 2.2-SNAPSHOT version of maven-plugin-testing-harness, but still receive errors about not being able to find the component in my d

Re: Error in using Maven plugin in release perform process

2013-03-12 Thread Robert Scholte
According to the log your project is using maven-release-plugin 2.0, probably because you didn't specify a version. Please lock it to 2.4 first and give it another try. Robert Op Tue, 12 Mar 2013 11:24:23 +0100 schreef nikhil naiksatam : [INFO] BUILD FAILURE [INFO] --

Problem when running testng testcase

2013-03-12 Thread mike
Hi, When I execute my testng testcase from within Eclipse I get the following result: Tests run: 1, Failures: 0, Skips: 1 But when I use maven test I get the following for the same testcase: Failed tests: beforeClass(com.mycompany.NewTest) Failures: 1 Skips: 0 Anyone seen this before? br,

[ANN] Apache Maven PMD Plugin 3.0.1 Released

2013-03-12 Thread Olivier Lamy
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin, version 3.0.1 The PMD Plugin allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. It also supports the separate Copy/Paste Detector too

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Olivier Lamy
http://jira.codehaus.org/browse/MCOMPILER-178 Correct, I started vote 6 days ago but still no vote: http://markmail.org/message/4qgmojr27564dnzr 2013/3/12 Jörg Schaible : > Hi Thomas, > > Thomas Matthijs wrote: > >> Hey, >> >> The compiler plugins states to use something like this to pass xlint

FAIL maven build on failing snapshot update?

2013-03-12 Thread Myron
Hi All, is it in any way possible to FAIL a maven build when the snapshot update fails? Currently, the local snapshot is used silently (forever?)... Use case: Update snapshot setting is set to "always"; parent artifact gets released, parent snapshot will be cleaned by nexus job. But child artifac

Re: Maven site plugin cannot find parent

2013-03-12 Thread Laird Nelson
I am essentially asking the same thing as this message: http://mail-archives.apache.org/mod_mbox/maven-users/201211.mbox/%3cdub104-w20c0148497a79bc339a494a6...@phx.gbl%3E The various suggestions in there concerning relativePath did not fix or alter the issue however. Best, Laird On Tue, Mar 12,

Re: Error in using Maven plugin in release perform process

2013-03-12 Thread Deng Ching-Mallete
Hi, Aside from the plugins, did you try deleting ~/.m2/ repository/org/apache/maven/maven-archiver ? Thanks, Deng On Tue, Mar 12, 2013 at 6:24 PM, nikhil naiksatam wrote: > Hi, > > I am getting the following error when running the mvn release:perform > command. Tried to delete available plugins

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Jörg Schaible
Hi Thomas, Thomas Matthijs wrote: > Hey, > > The compiler plugins states to use something like this to pass xlint > arguments: > > org.apache.maven.plugins > maven-compiler-plugin > 2.4 > >

Maven site plugin cannot find parent

2013-03-12 Thread Laird Nelson
I have a garden-variety multimodule project. Its aggregator pom in turn inherits from a non-SNAPSHOT parent present in my local repository and in my Nexus. This project builds and deploys fine. When I run mvn site on it (maven-site-plugin 3.2), the Maven site plugin cannot resolve the parent. T

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Stephen Connolly
thanks On 12 March 2013 11:35, Thomas Matthijs wrote: > http://jira.codehaus.org/browse/MRELEASE-828 > > > On Tue, Mar 12, 2013 at 12:28 PM, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > > > please open a JIRA issue against the Maven release plugin > > > > > > On 12 March 2013

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Thomas Matthijs
http://jira.codehaus.org/browse/MRELEASE-828 On Tue, Mar 12, 2013 at 12:28 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > please open a JIRA issue against the Maven release plugin > > > On 12 March 2013 11:27, Stephen Connolly >wrote: > > > smells like a bit of an edge case bu

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Stephen Connolly
please open a JIRA issue against the Maven release plugin On 12 March 2013 11:27, Stephen Connolly wrote: > smells like a bit of an edge case bug... you might be able to work around > by changing to though > that may break other things > > > On 12 March 2013 11:17, Thomas Matthijs wrote: > >>

Re: xlint compiler arguments & release plugin

2013-03-12 Thread Stephen Connolly
smells like a bit of an edge case bug... you might be able to work around by changing to though that may break other things On 12 March 2013 11:17, Thomas Matthijs wrote: > Hey, > > The compiler plugins states to use something like this to pass xlint > arguments: > >

xlint compiler arguments & release plugin

2013-03-12 Thread Thomas Matthijs
Hey, The compiler plugins states to use something like this to pass xlint arguments: org.apache.maven.plugins maven-compiler-plugin 2.4

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
You can work around that by creating a profile called e.g. run in the root pom you just do run test-compile true and then in the webapp pom you do run org.eclipse.jetty jetty-maven-plugin run test-compile run And then $ mvn -Prun and bob's your uncle... OK no

Re: maven-antrun-plugin in interactive mode

2013-03-12 Thread Stephen Connolly
Please read my answer to a similar question on stack overflow: http://stackoverflow.com/questions/14725197/reading-properties-file-from-pom-file-in-maven/14727072#14727072 When you use antrun to set properties, you are setting "Mojo injected properties" to use the terminology of my answer. Such pr

Re: effective practice for web application development using maven

2013-03-12 Thread Thomas Broyer
On Tue, Mar 12, 2013 at 11:07 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > I don't think that is an issue any more with org.eclipse.jetty's maven > plugin > Running "mvn org.eclipse.jetty:jetty-maven-plugin:9.0.0.v20130308:run" at the root of a multi-module still launches Jett

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
Ok, cool, good to know... glad to be pushing people to make the users life easier. BTW I expect to be able to make the pom reloading stuff available for other plugins to use as a nicer API. I don't recommend copying my tricks directly as there are some hidden assumptions that I am making which I w

maven-antrun-plugin in interactive mode

2013-03-12 Thread virg g
Hi, I am using maven-antrun-plugin 1.8 in interactive mode to accept user inputs for build version for my project. i want to use this version to be updated in all manifests file of all the jars of my project creates. I have added this plugin in the parent pom, which has all the modules to be built

Re: effective practice for web application development using maven

2013-03-12 Thread Thomas Broyer
On Tue, Mar 12, 2013 at 11:09 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > Also that way of using tomcat is really just relying on rebuilding the > artifacts again > AFAICT, the tomcat-maven-plugin works more-or-less the same as your jszip-maven-plugin, except it only scans th

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
Also that way of using tomcat is really just relying on rebuilding the artifacts again On 12 March 2013 09:29, Thomas Broyer wrote: > On Tue, Mar 12, 2013 at 8:24 AM, maven apache >wrote: > > > Hi everyone: > > > > I am using maven3 as my J2EE application build tool. > > > > Now I meet some pr

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
yeah a fair point, but I was just pointing out that there is a difference in what the user requests. On 12 March 2013 09:32, Thomas Broyer wrote: > On Tue, Mar 12, 2013 at 10:11 AM, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > > > It's rough and a little bit alpha still. Pleas

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
I don't think that is an issue any more with org.eclipse.jetty's maven plugin On 12 March 2013 09:29, Thomas Broyer wrote: > On Tue, Mar 12, 2013 at 8:24 AM, maven apache >wrote: > > > Hi everyone: > > > > I am using maven3 as my J2EE application build tool. > > > > Now I meet some problem dur

Re: effective practice for web application development using maven

2013-03-12 Thread Thomas Broyer
On Tue, Mar 12, 2013 at 10:11 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > It's rough and a little bit alpha still. Please take a look at > jszip.orgwhere I have the jszip-maven-plugin which will use it's > reactor spider > senses to build the classpath from the reactor, I sa

Re: effective practice for web application development using maven

2013-03-12 Thread Thomas Broyer
On Tue, Mar 12, 2013 at 8:24 AM, maven apache wrote: > Hi everyone: > > I am using maven3 as my J2EE application build tool. > > Now I meet some problem during my development --- I found it is so > inflexible to do the test or debug in the multiple modules. > > For example, I have a parent maven p

Re: effective practice for web application development using maven

2013-03-12 Thread Stephen Connolly
It's rough and a little bit alpha still. Please take a look at jszip.orgwhere I have the jszip-maven-plugin which will use it's reactor spider senses to build the classpath from the reactor, so e.g. # from the root of the reactor $ mvn compile org.jszip.maven:jszip-maven-plugin:run will compile a