But that option was working before for a long time for us, until some time on November, December last year, there was a new version of maven versions plug-in which break it.
Thanks Jing From: Stephen Connolly [mailto:[email protected]] Sent: Wednesday, March 20, 2013 4:49 PM To: [email protected] Subject: Re: [mojo-user] mvn version:dependency-updates-report failed on build My point is that I suspect that *report* goals are not supposed to be run that way. On Wednesday, 20 March 2013, Li, Jing wrote: Thanks for the reply. I got the same error, when I run mvn version:dependency-updates-report at the command line, independent of Jenkins. Jing From: Stephen Connolly [mailto:[email protected]<javascript:_e(%7b%7d,%20'cvml',%20'[email protected]');>] Sent: Wednesday, March 20, 2013 4:18 PM To: [email protected]<javascript:_e(%7b%7d,%20'cvml',%20'[email protected]');> Subject: Re: [mojo-user] mvn version:dependency-updates-report failed on build In general the reporting mojo's only work when part of the site life cycle. Invoking directly from the command line is, AFAIR, not supported. I could be wrong, so maybe you should ask the general question at the maven list. If direct cli invoking of reporting goals is supposed to work then that would indicate a bug in this plugin, otherwise it is poor documentation on the maven site (or in the highly unlikely event that it documented on the site then it might be PBKAC but I highly doubt that is the case) So the likely outcome is that a JIRA needs to be raised, you just need to find out if that is against v-m-p or the maven documentation. -Stephen On Wednesday, 20 March 2013, Li, Jing wrote: Hi there, We have maven projects, it works when using mvn version:display-dependency-updates, but failed when we try to do "mvn version:dependency-updates-report". It will be highly appreciated if some one give us any suggestions on it. Thanks in advance. Jing [INFO] --- versions-maven-plugin:2.0:dependency-updates-report (default-cli) @ common --- mojoFailed org.codehaus.mojo:versions-maven-plugin:2.0(default-cli) projectFailed com.roche.sequencing:common:1.0 sessionEnded [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Roche Sequencing Common ........................... FAILURE [29.324s] [INFO] Roche Sequencing Sequencer ........................ SKIPPED [INFO] Roche Sequencing Sequencer Web Service ............ SKIPPED [INFO] Roche Sequencer Simulator ......................... SKIPPED [INFO] Roche Sequencing Apps ............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 33.493s [INFO] Finished at: Wed Mar 20 00:02:20 EDT 2013 [INFO] Final Memory: 19M/168M [INFO] ------------------------------------------------------------------------ Projects to build: [MavenProject: com.roche.sequencing:common:1.0 @ /var/lib/jenkins/jobs/ISFET Application and Services, Version Report/workspace/sequencing/common/pom.xml, MavenProject: com.roche.sequencing: -- Sent from my phone
