You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Daryl Richter <ng...@comcast.net> on 2007/10/03 00:25:28 UTC

Maven Archetypes Again

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

This is Maven 2.0.7 on Mac OS X.

when I run this I get:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]  
------------------------------------------------------------------------ 
----
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-core/1.0-alpha-5/maven-archetype-core-1.0-alpha-5.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-core/1.0-alpha-5/maven-archetype-core-1.0-alpha-5.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-creator/1.0-alpha-5/maven-archetype-creator-1.0- 
alpha-5.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-creator/1.0-alpha-5/maven-archetype-creator-1.0- 
alpha-5.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-creator/1.0-alpha-5/maven-archetype-creator-1.0- 
alpha-5.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-creator/1.0-alpha-5/maven-archetype-creator-1.0- 
alpha-5.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-core/1.0-alpha-5/maven-archetype-core-1.0-alpha-5.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/ 
maven-archetype-core/1.0-alpha-5/maven-archetype-core-1.0-alpha-5.jar
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

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.

for artifact:
   org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0- 
alpha-5

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   apache.snapshots (http://people.apache.org/repo/m2-snapshot- 
repository)


[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Oct 02 16:42:41 EDT 2007
[INFO] Final Memory: 2M/4M
[INFO]  
------------------------------------------------------------------------

--
Daryl
http://itsallsemantics.com



Re: Maven Archetypes Again

Posted by Bruce Snyder <br...@gmail.com>.
On 10/3/07, Daryl Richter <ng...@comcast.net> wrote:
>
> On Oct 3, 2007, at 1:52 AM, Bruce Snyder wrote:
>
> > On 10/2/07, Daryl Richter <ng...@comcast.net> 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
>
> It still didn't work for me, so I "rebooted" maven by deleting my .m2
> directory and now it works.
>
> Looks like a Maven, um, issue.  ;)

Been there, done that. I'll bet you could've removed the
~/.m2/repository/org/apache/maven directory and it would've reset.
This saves you from having to re-download everything.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&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/

Re: Maven Archetypes Again

Posted by Daryl Richter <ng...@comcast.net>.
On Oct 3, 2007, at 1:52 AM, Bruce Snyder wrote:

> On 10/2/07, Daryl Richter <ng...@comcast.net> 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

It still didn't work for me, so I "rebooted" maven by deleting my .m2  
directory and now it works.

Looks like a Maven, um, issue.  ;)

--
Daryl
Email *my = [ daryl at: @"eddl" dot: @"us" ];
Weblog *blog = @”http://itsallsemantics.com”;




Re: Maven Archetypes Again

Posted by Bruce Snyder <br...@gmail.com>.
On 10/2/07, Daryl Richter <ng...@comcast.net> 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)U8V4\@4VYY9&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/