Re: WOProject: First Time Maven User
Re: WOProject: First Time Maven User
- Subject: Re: WOProject: First Time Maven User
- From: Lachlan Deck <email@hidden>
- Date: Mon, 16 Feb 2009 17:42:12 +1100
Hi Dov,
On 16/02/2009, at 1:20 PM, Lachlan Deck wrote:
we'll need a bit more info. Can you tell us
- what version of maven do you have installed?
- have you installed the settings.xml file from the quick-start
guide into ~/.m2/?
- are you aware of what version of the archetype you're using.
- can you attach the complete output?
Just letting you know ... I've included the output (from the command
line) of creating two woframework projects. As you'll notice I get
some of the same warnings. These are just warnings mind you ...
meaning that they're simply properties that maven found in the
template which couldn't be replaced by any variable. This is perfectly
okay - as they're properties which don't have meaning for the creation
of the project, but for its subsequent build lifecycle.
$ mvn -U archetype:generate -DarchetypeCatalog=local[INFO] Scanning
for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.objectstyle.woproject.maven2: checking for updates from
mdimension.releases
[INFO] org.objectstyle.woproject.maven2: checking for updates from
central
[INFO] org.apache.maven.plugins: checking for updates from
mdimension.releases
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from mdimension.releases
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from mdimension.releases
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from central
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> woapplication-archetype (WOProject WO App 2.0.16)
2: local -> woframework-archetype (WOProject WO FMWK 2.0.16)
3: local -> woapplication-archetype (WOProject WO App 2.0.17-SNAPSHOT)
4: local -> woframework-archetype (WOProject WO FMWK 2.0.17-SNAPSHOT)
Choose a number: (1/2/3/4): 4
[INFO] snapshot org.objectstyle.woproject.maven2:woframework-archetype:
2.0.17-SNAPSHOT: checking for updates from woframework-archetype-repo
[INFO] snapshot org.objectstyle.woproject.maven2:woframework-archetype:
2.0.17-SNAPSHOT: checking for updates from codehaus.org
Downloading: http://webobjects.mdimension.com/maven2/snapshots/org/objectstyle/woproject/maven2/woframework-archetype/2.0.17-SNAPSHOT/woframework-archetype-2.0.17-20081209.190648-4.jar
6K downloaded
Define value for groupId: : my.test.woframework
Define value for artifactId: : MavenWOFramework
Define value for version: 1.0-SNAPSHOT: :
Define value for package: my.test.woframework: :
Confirm properties configuration:
WebObjectsVersion: 5.4.2
groupId: my.test.woframework
artifactId: MavenWOFramework
version: 1.0-SNAPSHOT
package: my.test.woframework
Y: : n
Define value for WebObjectsVersion: 5.4.2: : 5.4.3
Define value for groupId: : my.test.woframework
Define value for artifactId: : MavenWOFramework
Define value for version: 1.0-SNAPSHOT: :
Define value for package: my.test.woframework: :
Confirm properties configuration:
WebObjectsVersion: 5.4.3
groupId: my.test.woframework
artifactId: MavenWOFramework
version: 1.0-SNAPSHOT
package: my.test.woframework
Y: :
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 33,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 38,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 43,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 17,column
33] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 17,column
45] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
33] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
45] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
69] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
47] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
59] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
83] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 29,column
53] : ${wo.wolocalroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 35,column
50] : ${install.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
36] : ${project.name} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
62] : ${dest.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
99] : ${customInfoPListContent} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
142] : ${principalClass} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
181] : ${eoAdaptorClassName} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
217] : ${javaVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
250] : ${cfBundleVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
292] : ${cfBundleShortVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
329] : ${cfBundleID} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 50,column
39] : ${classes.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 91,column
43] : ${wo.dir.user.home.library.frameworks} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 96,column
43] : ${wo.wolocalroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 101,column
43] : ${wo.wosystemroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 107,column
47] : ${wo.wolocalroot} is not a valid reference.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 48 seconds
[INFO] Finished at: Mon Feb 16 17:25:39 EST 2009
[INFO] Final Memory: 8M/15M
[INFO]
------------------------------------------------------------------------
$
###############
Now, rather than using the local archetype's catalog, just straight
from the net
###############
$ mvn -U archetype:generate -DarchetypeArtifactId=woframework-
archetype -DarchetypeGroupId=org.objectstyle.woproject.maven2 -
DarchetypeVersion=2.0.17-SNAPSHOT -DarchetypeRepository=http://webobjects.mdimension.com/maven2/releases
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.objectstyle.woproject.maven2: checking for updates from
mdimension.releases
[INFO] org.objectstyle.woproject.maven2: checking for updates from
central
[INFO] org.apache.maven.plugins: checking for updates from
mdimension.releases
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from mdimension.releases
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from mdimension.releases
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from central
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
[INFO] snapshot org.objectstyle.woproject.maven2:woframework-archetype:
2.0.17-SNAPSHOT: checking for updates from woframework-archetype-repo
[INFO] snapshot org.objectstyle.woproject.maven2:woframework-archetype:
2.0.17-SNAPSHOT: checking for updates from codehaus.org
Define value for groupId: : my.test.framework
Define value for artifactId: : AnotherWOFramework
Define value for version: 1.0-SNAPSHOT: :
Define value for package: my.test.framework: :
Confirm properties configuration:
WebObjectsVersion: 5.4.2
groupId: my.test.framework
artifactId: AnotherWOFramework
version: 1.0-SNAPSHOT
package: my.test.framework
Y: : n
Define value for WebObjectsVersion: 5.4.2: : 5.4.3
Define value for groupId: : my.test.framework
Define value for artifactId: : AnotherTestFramework
Define value for version: 1.0-SNAPSHOT: :
Define value for package: my.test.framework: :
Confirm properties configuration:
WebObjectsVersion: 5.4.3
groupId: my.test.framework
artifactId: AnotherTestFramework
version: 1.0-SNAPSHOT
package: my.test.framework
Y: :
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 33,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 38,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 43,column
34] : ${woversion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 17,column
33] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 17,column
45] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
33] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
45] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 19,column
69] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
47] : ${user.home} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
59] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 28,column
83] : ${file.separator} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 29,column
53] : ${wo.wolocalroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 35,column
50] : ${install.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
36] : ${project.name} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
62] : ${dest.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
99] : ${customInfoPListContent} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
142] : ${principalClass} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
181] : ${eoAdaptorClassName} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
217] : ${javaVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
250] : ${cfBundleVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
292] : ${cfBundleShortVersion} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 49,column
329] : ${cfBundleID} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 50,column
39] : ${classes.dir} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 91,column
43] : ${wo.dir.user.home.library.frameworks} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 96,column
43] : ${wo.wolocalroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 101,column
43] : ${wo.wosystemroot} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/build.xml [line 107,column
47] : ${wo.wolocalroot} is not a valid reference.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 34 seconds
[INFO] Finished at: Mon Feb 16 17:28:31 EST 2009
[INFO] Final Memory: 8M/15M
[INFO]
------------------------------------------------------------------------
ip-144:Maven ldeck$
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden