Discussion:
[castor-dev] Maven Build Instructions
August Detlefsen
2010-02-09 04:01:19 UTC
Permalink
I checked out the latest Castor SVN trunk in order to test out Ralf's fix for bug #2045. I am using the build instructions here:

http://castor.org/contributing.html#Building-code

I was able to successfully compile and test. However, I was unable to run the 'mvn jar' command:

~/castor/trunk/: mvn jar
...
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
...

I am using the Maven version specified in the docs:

~/castor/trunk/: mvn --version
Maven version: 2.0.9
Java version: 1.6.0_16
OS name: "sunos" version: "5.10" arch: "x86" Family: "unix"

Is there something else I need to do in order to build the Castor jars?





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Lukas Lang
2010-02-09 08:37:01 UTC
Permalink
Hey August,

by Maven conventions, the jars could be found in Castor's "target" folder after a successful build and the package phase ("mvn compile test package"). To use Castor in another Maven project just execute "mvn install" and all the Castor jars will be placed in your local Maven repository (UserFolder/.m2/repository/org/codehaus/castor). As you're building the trunk, you will only find SNAPSHOT files there (in case you want to use it in another Maven project), use <version>1.3.2-SNAPSHOT</version> as a version tag.

If you need more information regarding Maven, please consider [1].

Regards,
Lukas

[1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Post by August Detlefsen
http://castor.org/contributing.html#Building-code
~/castor/trunk/: mvn jar
...
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
...
~/castor/trunk/: mvn --version
Maven version: 2.0.9
Java version: 1.6.0_16
OS name: "sunos" version: "5.10" arch: "x86" Family: "unix"
Is there something else I need to do in order to build the Castor jars?
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
August Detlefsen
2010-02-11 22:15:50 UTC
Permalink
Thanks Lukas, I found them!

Regards,
August (first time using Maven) Detlefsen





----- Original Message ----
From: Lukas Lang <***@inode.at>
To: ***@castor.codehaus.org
Sent: Tue, February 9, 2010 12:37:01 AM
Subject: Re: [castor-dev] Maven Build Instructions

Hey August,

by Maven conventions, the jars could be found in Castor's "target" folder after a successful build and the package phase ("mvn compile test package"). To use Castor in another Maven project just execute "mvn install" and all the Castor jars will be placed in your local Maven repository (UserFolder/.m2/repository/org/codehaus/castor). As you're building the trunk, you will only find SNAPSHOT files there (in case you want to use it in another Maven project), use <version>1.3.2-SNAPSHOT</version> as a version tag.

If you need more information regarding Maven, please consider [1].

Regards,
Lukas

[1] http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Post by August Detlefsen
http://castor.org/contributing.html#Building-code
~/castor/trunk/: mvn jar
...
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'jar': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
...
~/castor/trunk/: mvn --version
Maven version: 2.0.9
Java version: 1.6.0_16
OS name: "sunos" version: "5.10" arch: "x86" Family: "unix"
Is there something else I need to do in order to build the Castor jars?
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Continue reading on narkive:
Loading...