Change By: Jacques Stadler (24/Nov/14 3:25 PM)
Description: The Jenkins Maven Plugin cannot deal with the advanced reactor options of Maven.
See http://blog.sonatype.com/2009/10/maven-tips-and-tricks-advanced-reactor-options

When e.g. executing a a maven build with the following maven command in Jenkins:
mvn clean install -pl !excludedModule

one gets the following error:
{code}
Executing Maven:  -B -f /myworkspace/myproject/pom.xml clean install -pl !excludedModule
[INFO] Scanning for projects...
[ERROR] Could not find the selected project in the reactor: !excludedModule -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
channel stopped
{code}

Running the same command on the same project with the same maven version on the command line it works fine.

See also the discussion in the Jenkins Google Group:
https://groups.google.com/forum/#!topic/jenkinsci-users/8hXjxAB0WSw
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to