Environment Windows 7, JDK 7 update 17, maven 3.0.5, Jenkins maven plugin 
1.510, Jenkins 1.510
 
I am trying use Jenkins to buid a project with maven.
 
Jenkins is using the folowing command:
Executing Maven:  -B -f 
C:\Users\piv\Documents\NetBeansProjects\LunchGuide\pom.xml Clean build
 
But maven don't understand the command Clean or build.   (The comand clean, 
lower case letters works fine for maven)
 
Is there any workarround for this?
 
This is a part of Jenkins execution log
< ===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven: -B -f 
C:\Users\piv\Documents\NetBeansProjects\LunchGuide\pom.xml Clean build
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model 
for lunchguide:LunchGuide:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 42, 
column 15
[WARNING] The expression ${artifactId} is deprecated. Please use 
${project.artifactId} instead.
[WARNING] The expression ${version} is deprecated. Please use 
${project.version} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO]
[INFO]------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype 1.0-SNAPSHOT
[INFO]------------------------------------------------------------------------
[INFO]------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
[INFO] Total time: 0.218s
[INFO] Finished at: Wed Apr 10 13:49:15 CEST 2013
[INFO] Final Memory: 4M/15M
[INFO]------------------------------------------------------------------------
[JENKINS] Archiving 
C:\Users\piv\Documents\NetBeansProjects\LunchGuide\pom.xml to 
C:\Users\piv\.jenkins\jobs\LunchGuide\modules\lunchguide$LunchGuide\builds\2013-04-10_13-49-13\archive\lunchguide\LunchGuide\1.0-SNAPSHOT\LunchGuide-1.0-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Unknown lifecycle phase "Clean". You must specify a valid 
lifecycle phase or a goal in the format <plugin-prefix>:<goal> or 
<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available 
lifecycle phases are: validate, initialize, generate-sources, 
process-sources, generate-resources, process-resources, compile, 
process-classes, generate-test-sources, process-test-sources, 
generate-test-resources, process-test-resources, test-compile, 
process-test-classes, test, prepare-package, package, pre-integration-test, 
integration-test, post-integration-test, verify, install, deploy, 
pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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/groups/opt_out.


Reply via email to