Hi,
The "magic" step is the version of the JBI plugin.
I advice to use jbi-maven-plugin 4.3 (in place of 4.0) which fixes
several bugs.
Regards
JB
mdolk wrote:
Ok, I managed to execute the command without errors. Here is what I did
1. In tutorial-file-su/pom.xml
Changed from this:
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>${servicemix-version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
to this:
<plugins>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>4.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
2. Removed all content in ~/.m2/repository/*
3. Removed all mirrors in ~/.m2/settings.xml
I am not sure which was the magic step.
/mårten
mdolk wrote:
Hi,
I am trying to follow the tutorial but step 2.3 (Creating the service
assembly) fails.
It look like the servicemix-service-assembly has a transitive dependency
on org.apache.activemq:activeio-core:jar:3.0.0-incubator. The problem is I
can't find version 3.0.0-incubator in any public Maven repository.
Any suggestions?
Many thank,
Mårten
-----
$ mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly
-DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-sa
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Tutorial
[INFO] Tutorial :: File SU
[INFO] Searching repository for plugin with prefix: 'archetype'.
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
apache-incubating (http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
codehaus (http://repository.codehaus.org)
Downloading:
http://nexus/nexus/content/groups/public/org.apache.activemq/poms/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
java.net (http://download.java.net/maven/1)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
apache.incubating.releases
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.pom
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:pom:3.0.0-incubator' in repository
central (http://repo1.maven.org/maven2)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
apache-incubating (http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
codehaus (http://repository.codehaus.org)
Downloading:
http://nexus/nexus/content/groups/public/org.apache.activemq/jars/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
java.net (http://download.java.net/maven/1)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
apache.incubating.releases
(http://people.apache.org/repo/m2-incubating-repository)
Downloading:
http://nexus/nexus/content/groups/public/org/apache/activemq/activeio-core/3.0.0-incubator/activeio-core-3.0.0-incubator.jar
[INFO] Unable to find resource
'org.apache.activemq:activeio-core:jar:3.0.0-incubator' in repository
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.activemq:activeio-core:jar:3.0.0-incubator
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.activemq
-DartifactId=activeio-core -Dversion=3.0.0-incubator -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.activemq
-DartifactId=activeio-core -Dversion=3.0.0-incubator -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.2.3
2) org.apache.servicemix:servicemix-core:jar:3.2.3
3) org.apache.activemq:activemq-core:jar:4.1.1
4) org.apache.activemq:activeio-core:jar:3.0.0-incubator
----------
1 required artifact is missing.
for artifact:
org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.2.3
from the specified remote repositories:
nexus (http://nexus/nexus/content/groups/public)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Mar 08 11:31:56 CET 2010
[INFO] Final Memory: 20M/212M
[INFO]
------------------------------------------------------------------------