You need to do a mvn install on the other modules before the sa.
If you have a parent pom configured than you should do the mvn install
there.
Hope it helps.
Erik Allais wrote:
i try to follow step by step this tutorial
http://incubator.apache.org/servicemix/creating-a-protocol-bridge.html
i can make all the service unit and the service assembly with the maven
command
when i try to execute the mvn install command on the service assembly
directory after
setting the pom.xml
i get this error :
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building A custom project
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-http-su/1.0-SNAPSHOT/bridge-http-su-1.0-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-eip-su/1.0-SNAPSHOT/bridge-eip-su-1.0-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-xslt-su/1.0-SNAPSHOT/bridge-xslt-su-1.0-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-jms-su/1.0-SNAPSHOT/bridge-jms-su-1.0-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-xslt-su/1.0-SNAPSHOT/bridge-xslt-su-1.0-SNAPSHOT.jar
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-eip-su/1.0-SNAPSHOT/bridge-eip-su-1.0-SNAPSHOT.jar
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-http-su/1.0-SNAPSHOT/bridge-http-su-1.0-SNAPSHOT.jar
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/servicemix/samples/bridge/bridge-jms-su/1.0-SNAPSHOT/bridge-jms-su-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.servicemix.samples.bridge:bridge-xslt-su:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.servicemix.samples.bridge -DartifactId=bridge-xslt-su \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.samples.bridge:bridge-sa:jbi-service-assembly:1.0-SNAPSHOT
2)
org.apache.servicemix.samples.bridge:bridge-xslt-su:jar:1.0-SNAPSHOT
2) org.apache.servicemix.samples.bridge:bridge-eip-su:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.servicemix.samples.bridge -DartifactId=bridge-eip-su \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.samples.bridge:bridge-sa:jbi-service-assembly:1.0-SNAPSHOT
2)
org.apache.servicemix.samples.bridge:bridge-eip-su:jar:1.0-SNAPSHOT
3) org.apache.servicemix.samples.bridge:bridge-http-su:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.servicemix.samples.bridge -DartifactId=bridge-http-su \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.samples.bridge:bridge-sa:jbi-service-assembly:1.0-SNAPSHOT
2)
org.apache.servicemix.samples.bridge:bridge-http-su:jar:1.0-SNAPSHOT
4) org.apache.servicemix.samples.bridge:bridge-jms-su:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=org.apache.servicemix.samples.bridge -DartifactId=bridge-jms-su \
-Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1)
org.apache.servicemix.samples.bridge:bridge-sa:jbi-service-assembly:1.0-SNAPSHOT
2)
org.apache.servicemix.samples.bridge:bridge-jms-su:jar:1.0-SNAPSHOT
----------
4 required artifacts are missing.
for artifact:
org.apache.servicemix.samples.bridge:bridge-sa:jbi-service-assembly:1.0-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.incubating (http://people.apache.org/repo/m2-incubating-repository)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Thu Jun 28 14:10:40 GMT+01:00 2007
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
Thanks,
Erik