marco,

I think the only real issue here is a typo in the Maven command (archetypeAritfactId instead of archetypeArtifactId). Could you retry without this?

Gert

mmistroni wrote:
hi all,
  i am going thru the servicemix's tutorial for jsr181, and i got stuck when
creating servicemix-jsr181-wsdl-first-service-unit
i keep on getting exceptions regarding maven-archetype-quickstart

i have tried following 3 runs

[code]

C:\servicemix-projects\citytime>mvn -U
org.apache.maven.plugins:maven-archetype-
plugin:1.0-alpha-7:generate -DarchetypeGroupId=org.apache.servicemix.tooling
-Da
rchetypeAritfactId=servicemix-jsr181-wsdl-first-service-unit
-DarchetypeVersion=
3.3-SNAPSHOT -DgroupId=org.apache.servicemix.samples.citytime
-DartifactId=cityt
ime-jsr181-su
[/code]
[code]
C:\servicemix-projects\citytime>mvn -U
org.apache.maven.plugins:maven-archetype-
plugin:1.0-alpha-7:generate -DarchetypeGroupId=org.apache.servicemix.tooling
-Da
rchetypeAritfactId=servicemix-jsr181-wsdl-first-service-unit
-DarchetypeVersion=
3.1-incubating -DgroupId=org.apache.servicemix.samples.citytime
-DartifactId=cityt
ime-jsr181-su
[/code]
[code]
C:\servicemix-projects\citytime>mvn -U
org.apache.maven.plugins:maven-archetype-
plugin:1.0-alpha-7:generate -DarchetypeGroupId=org.apache.servicemix.tooling
-Da
rchetypeAritfactId=servicemix-jsr181-wsdl-first-service-unit
-DarchetypeVersion=
3.2 -DgroupId=org.apache.servicemix.samples.citytime -DartifactId=cityt
ime-jsr181-su
[/code]

i alwasy keep on getting this exception
[code]
GroupId: org.apache.servicemix.tooling
ArtifactId: maven-archetype-quickstart
Version: 3.3-SNAPSHOT

Reason: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactI
d=maven-archetype-quickstart \
        -Dversion=3.3-SNAPSHOT -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.servicemix.tooling
-DartifactId=ma
ven-archetype-quickstart \
        -Dversion=3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
         -Durl=[url] -DrepositoryId=[id]


  org.apache.servicemix.tooling:maven-archetype-quickstart:jar:3.3-SNAPSHOT

from the specified remote repositories:
  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
  central (http://repo1.maven.org/maven2),
  springframework.org (http://static.springframework.org/maven2-snapshots/),
  apache-incubating (http://people.apache.org/repo/m2-incubating-repository)
[/code]

anyone could help here?
here's my settings.xml (which has alwasy worked so far as i was able to
build any other servicemix samples)   - only relevant part
[code]
<repositories>
                                <repository>
                                        <id>springframework.org</id>
                                        <name>Springframework Maven SNAPSHOT 
Repository</name>
                                        
<url>http://static.springframework.org/maven2-snapshots/</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                </repository>
                                <repository>
                                        <id>Maven Snapshots</id>
                                        
<url>http://snapshots.maven.codehaus.org/maven2/</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>false</enabled>
                                        </releases>
                                </repository>
                                <repository>
                                        <id>apache-incubating</id>
<url>http://people.apache.org/repo/m2-incubating-repository</url>
                                </repository>
                        </repositories>
                        <pluginRepositories>
                                <pluginRepository>
                                        <id>Maven Snapshots</id>
                                        
<url>http://snapshots.maven.codehaus.org/maven2/</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>false</enabled>
                                        </releases>
                                </pluginRepository>
                                <pluginRepository>
                                        <id>Codehaus snapshot</id>
                                        
<url>http://snapshots.repository.codehaus.org/</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>false</enabled>
                                        </releases>
                                </pluginRepository>
                                <pluginRepository>
                                        <id>codehaus-plugins</id>
                                        <url>http://dist.codehaus.org/</url>
                                        <layout>legacy</layout>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>true</enabled>
                                        </releases>
                                </pluginRepository>
                                <pluginRepository>
                                          <id>apache-incubating</id>
                                          
<url>http://people.apache.org/repo/m2-incubating-repository</url>
                                </pluginRepository>
</pluginRepositories>
[/code]

thanks and regards
 marco


Reply via email to