Thanks Lachlan, points below.
On Aug 10, 2008, at 11:42 PM, Lachlan Deck wrote:
> On 11/08/2008, at 9:52 AM, William Hatch wrote:
>
>> I thought I'd take a look at the most recent nightly, Eclipse 3.4
>> and the apple maven plug in.
>>
>> Update my local maven to 2.0.9, confirmed with which mvn and --
>> version; and then created a standard project using the built in
>> create archetype. all's well.
>>
>> Followed along here: http://wiki.objectstyle.org/confluence/display/WOL/Apple+Maven+Nightly+Builds
>>
>> downloaded the adc WO maven stuff and and copied it to ~/.m2
>
> You mean ~/.m2/repository right?
Yeah, sorry;-)
>
>>
>
> Feel free to create an issue for Daryl:
> issues.objectstyle.org/jira/secure/CreateIssue.jspa
OK, will do. Wasn't sure if it was a wolips or apple plug in issue, or
both.
>
>
>> It seems from the various tutorials regarding maven use with
>> wolips, etc that there are basically two paths of using maven for
>> wo development: one using the older plug ins, and one using the new
>> apple maven support plug in. It's not clear to me where the overlap
>> is, or if there is any. So, are there any dependencies between
>> these two methods of using Maven? In the first case, it's not clear
>> as to how to add the archetype into your repository. In the second
>> case, not sure if there's any changes required to settings.xml. Any
>> clarity regarding these previous questions is appreciated. Thanks.
>
> Daryl, Henrique, and I have had a bit of a talk about going forward
> (and discussions are still in progress)... but the woproject-maven2
> stuff should emerge the common way forward. So I'd suggest you have
> a look at the getting started tuts for that as follows (skipping the
> Using the Apple Plugin section)
> http://wiki.objectstyle.org/confluence/display/WOL/Maven+Create+WO+Application+Project
>
> Let us know what help you need based on that...
OK, here's the contents of the archetypes-catalog.xml file, which is
in my ~/.m2/repository directory. I downloaded this from one of the
tutorial/info pages
<?xml version="1.0" encoding="UTF-8"?><archetype-catalog>
<archetypes>
<archetype>
<groupId>org.objectstyle.woproject.maven2</groupId>
<artifactId>woapplication-archetype</artifactId>
<version>2.0.16-SNAPSHOT</version>
<description>WebObjects Application Archetype</description>
</archetype>
<archetype>
<groupId>org.objectstyle.woproject.maven2</groupId>
<artifactId>woframework-archetype</artifactId>
<version>2.0.16-SNAPSHOT</version>
<description>WebObjects Framework Archetype</description>
</archetype>
</archetypes>
</archetype-catalog>
Issuing this commend: mvn archetype:generate -DarchetypeCatalog=local
results in:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.codehaus.mojo: checking for updates from mdimension.releases
[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] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from mdimension.releases
[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:
Choose a number: : 1
where the last two lines are repeated no matter what I enter
subsequently.
Issuing this command: mvn archetype:generate -
DarchetypeArtifactId=woapplication-archetype (thinking that the other
arguments aren't needed because they're defined in the archetype)
results in:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[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
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/woapplication-archetype/1.0/woapplication-archetype-1.0.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The
desired archetype does not exist
(org.apache.maven.archetypes:woapplication-archetype:1.0)
The desired archetype does not exist
(org.apache.maven.archetypes:woapplication-archetype:1.0)
The desired archetype does not exist
(org.apache.maven.archetypes:woapplication-archetype:1.0)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Mon Aug 11 01:33:03 EDT 2008
[INFO] Final Memory: 8M/14M
[INFO]
------------------------------------------------------------------------
What am I doing wrong?
This archive was generated by hypermail 2.0.0 : Mon Aug 11 2008 - 01:35:47 EDT