hudson ignores process-test-classes phase ( maven 2.0.5 +)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

hudson ignores process-test-classes phase ( maven 2.0.5 +)

Dan Tran

maven 2.0.5 introduced this new phase, but hudson ignores it. Is it b/c Hudson uses maven 2.0.4 embedder??  

-D
Reply | Threaded
Open this post in threaded view
|

Re: hudson ignores process-test-classes phase ( maven 2.0.5 +)

Kohsuke Kawaguchi
Administrator
Dan Tran wrote:
>
> maven 2.0.5 introduced this new phase, but hudson ignores it. Is it b/c
> Hudson uses maven 2.0.4 embedder??  

Hudson just lets Maven do the build, and it uses the version of Maven
you specified. So as long as you tell Hudson to use a proper version of
Maven, it should work.

But if you have a test case, I'd be happy to try that, too.

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: hudson ignores process-test-classes phase ( maven 2.0.5 +)

Dan Tran

try this link

http://glvnsjc.googlecode.com/svn/trunk/shamrock-test 

it is a simple pom which binds antrun at process-test-classes.  

When run at commandline, it shows the execution,

G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test>mvn in
stall
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building shamrock-test
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [antrun:run {execution: create-build-properties}]
[INFO] Executing tasks
     [echo] process-test-classes executed
[INFO] Executed tasks
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [install:install]
[INFO] Installing G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\sh
amrock-test\target\shamrock-test-1-SNAPSHOT.jar to g:\dev\repository\org\glvnsjc
\shamrock\shamrock-test\1-SNAPSHOT\shamrock-test-1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Aug 05 20:32:19 PDT 2008
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------

==================================================================
but on hudson, no sign

started
Checking out http://glvnsjc.googlecode.com/svn/trunk/shamrock-test
A         pom.xml
At revision 215
no revision recorded for http://glvnsjc.googlecode.com/svn/trunk/shamrock-test in the previous build
Parsing POMs
Discovered a new module org.glvnsjc.shamrock:shamrock-test shamrock-test
[shamrock-test] $ "G:\Program Files\Java\jdk1.5.0_15/bin/java" -cp "G:\Documents and Settings\Owner\.hudson\war\WEB-INF\lib\maven-agent-1.244.jar;g:\dev\maven\apache-maven-2.0.9\boot\classworlds-1.1.jar" hudson.maven.agent.Main g:\dev\maven\apache-maven-2.0.9 "G:\Documents and Settings\Owner\.hudson\war\WEB-INF\lib\remoting-1.244.jar" "G:\Documents and Settings\Owner\.hudson\war\WEB-INF\lib\maven-interceptor-1.244.jar" 4603
channel started
Executing Maven:  -B -B -f G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test\pom.xml install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building shamrock-test
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[HUDSON] Recording test results
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test\target\shamrock-test-1-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test\target\shamrock-test-1-SNAPSHOT.jar to g:\dev\repository\org\glvnsjc\shamrock\shamrock-test\1-SNAPSHOT\shamrock-test-1-SNAPSHOT.jar
[HUDSON] Archiving G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test\pom.xml to G:\Documents and Settings\Owner\.hudson\jobs\test\modules\org.glvnsjc.shamrock$shamrock-test\builds\2008-08-05_20-28-19\archive\org.glvnsjc.shamrock\shamrock-test\1-SNAPSHOT\pom.xml
[HUDSON] Archiving G:\Documents and Settings\Owner\.hudson\jobs\test\workspace\shamrock-test\target\shamrock-test-1-SNAPSHOT.jar to G:\Documents and Settings\Owner\.hudson\jobs\test\modules\org.glvnsjc.shamrock$shamrock-test\builds\2008-08-05_20-28-19\archive\org.glvnsjc.shamrock\shamrock-test\1-SNAPSHOT\shamrock-test-1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Tue Aug 05 20:28:33 PDT 2008
[INFO] Final Memory: 8M/16M
[INFO] ------------------------------------------------------------------------
Waiting for Hudson to finish collecting data
channel stopped
finished: SUCCESS


kohsuke wrote
Dan Tran wrote:
>
> maven 2.0.5 introduced this new phase, but hudson ignores it. Is it b/c
> Hudson uses maven 2.0.4 embedder??  

Hudson just lets Maven do the build, and it uses the version of Maven
you specified. So as long as you tell Hudson to use a proper version of
Maven, it should work.

But if you have a test case, I'd be happy to try that, too.

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/