On 10/2/07, Daryl Richter <[EMAIL PROTECTED]> wrote:
> Hi-
>
> I am still having no success getting the maven archetypes to work.
> Can someone please help me out with what is wrong with my Maven config?
>
> Here is my command to attempt to create a new servicemix-binding-
> component project:
>
> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
> -DarchetypeArtifactId=servicemix-binding-component -
> DgroupId=com.funddevelopmentservices.sandbox -DartifactId=my-jdbc-bc
The command above works just fine for me if I add the missing
archetypeVersion argument:
$ mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-binding-component
-DarchetypeVersion=3.1.2 -DgroupId=com.funddevelopmentservices.sandbox
-DartifactId=my-jdbc-bc
> Missing:
> ----------
> 1) org.apache.maven.archetype:maven-archetype-creator:jar:1.0-alpha-5
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.maven.archetype -
> DartifactId=maven-archetype-creator \
> -Dversion=1.0-alpha-5 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the
> file there: mvn deploy:deploy-file -
> DgroupId=org.apache.maven.archetype -DartifactId=maven-archetype-
> creator \
> -Dversion=1.0-alpha-5 -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.maven.plugins:maven-archetype-plugin:maven-
> plugin:1.0-alpha-5
> 2) org.apache.maven.archetype:maven-archetype-creator:jar:
> 1.0-alpha-5
>
> 2) org.apache.maven.archetype:maven-archetype-core:jar:1.0-alpha-5
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.maven.archetype -
> DartifactId=maven-archetype-core \
> -Dversion=1.0-alpha-5 -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the
> file there: mvn deploy:deploy-file -
> DgroupId=org.apache.maven.archetype -DartifactId=maven-archetype-core \
> -Dversion=1.0-alpha-5 -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.maven.plugins:maven-archetype-plugin:maven-
> plugin:1.0-alpha-5
> 2) org.apache.maven.archetype:maven-archetype-core:jar:1.0-
> alpha-5
>
> ----------
> 2 required artifacts are missing.
As far as the Maven errors above, I'm not exactly sure why these are
occurring. Try adding a -U and maybe even a -cpu to your command.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/