How do I add a maven project to Continuum?
Author: Deron Eriksson
Description: This tutorial describes how to add a maven project to Continuum so that it gets automatically built.
Tutorial created using: Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)


Page: < 1 2 3

(Continued from page 2)

On this build results page, we can see that the build took 6 seconds to perform. We can also see that a "clean install" was performed by ContinuumW. We can also see the output from the build.

Build results

The build output is shown here:

Continuum build output

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building aproject
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to C:\dev\apache-continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\6\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 2 source files to C:\dev\apache-continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\6\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\dev\apache-continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\6\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.maventest.AppTest
Hello World!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running com.maventest.HowdyTest
Howdy says hello!
Howdy says hello!
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.03 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: C:\dev\apache-continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\6\target\aproject-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\dev\apache-continuum-1.1\apps\continuum\webapp\WEB-INF\working-directory\6\target\aproject-1.0-SNAPSHOT.jar to \dev\m2repo\com\maventest\aproject\1.0-SNAPSHOT\aproject-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Mon Feb 25 10:29:27 PST 2008
[INFO] Final Memory: 12M/22M
[INFO] ------------------------------------------------------------------------

We can verify from the build output that Continuum successfully built the "aproject" project.

Page: < 1 2 3