L.S.,

Looks like Maven isn't checking the Apache Incubator repositories. You can specify it on the command line using -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository, but a more convenient way is by configuring it in your local settings.xml file.

Have a look at http://cwiki.apache.org/confluence/display/SM/2.1.+Beginner+-+Configuring+Maven for more information.

Gert



smixuser wrote:
Hi All,
I'm following the instructions in the Orchestration with JSR181 Tutorial
found at
http://incubator.apache.org/servicemix/orchestration-with-jsr181.html and
when executing the following maven command to create the first service unit, mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-http-consumer-service-unit
-DarchetypeVersion=3.1.1-incubating
-DgroupId=org.apache.servicemix.samples.citytime
-DartifactId=citytime-http-su
I receive the following error:

[INFO] Failed to resolve artifact.

GroupId: org.apache.servicemix.tooling
ArtifactId: servicemix-http-consumer-service-unit
Version: 3.1-incubating

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=servicemix-http-consumer-service-unit \
        -Dversion=3.1-incubating -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=se
rvicemix-http-consumer-service-unit \
        -Dversion=3.1-incubating -Dpackaging=jar -Dfile=/path/to/file \
         -Durl=[url] -DrepositoryId=[id]


org.apache.servicemix.tooling:servicemix-http-consumer-service-unit:jar:3.1-in
cubating

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

When executing the other maven command to create the second service unit, I
receive the following error message:

[INFO] Failed to resolve artifact.

GroupId: org.apache.servicemix.tooling
ArtifactId: servicemix-jsr181-wsdl-first-service-unit
Version: 3.1-incubating

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=servicemix-jsr181-wsdl-first-service-unit \
        -Dversion=3.1-incubating -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=se
rvicemix-jsr181-wsdl-first-service-unit \
        -Dversion=3.1-incubating -Dpackaging=jar -Dfile=/path/to/file \
         -Durl=[url] -DrepositoryId=[id]


org.apache.servicemix.tooling:servicemix-jsr181-wsdl-first-service-unit:jar:3.
1-incubating

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Any ideas???  Thanks.


Reply via email to