You don't really need to change the version used in the service units. Service units are not tied to the version of the components. Just use your existing SA and deploy them, it should work. As for the cause of your problems, this is because ServiceMix 3.3 has undergone some major refactoring and the components and maven plugins now have a different versioning scheme. There is no 3.3 version of the jbi maven plugin, so you can use either 3.2.3 or 4.0, both should work.
On Wed, Nov 19, 2008 at 11:34 AM, Drone42 <[EMAIL PROTECTED]> wrote: > > I have 4 service units and replaced 3.2.2 in each wth 3.3. > > First of all I'm surprised to find 3.2.2 in the autogenerated pom.xml. I > used the archetypes to create them under 3.3. Why does the pom.xml then > contain 3.2.2? > > Secondly the build unfortunatly still fails, but a new place. Error below. > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > > Project ID: org.apache.servicemix.tooling:jbi-maven-plugin > > Reason: POM 'org.apache.servicemix.tooling:jbi-maven-plugin' not found in > reposi > tory: Unable to download the artifact from any repository > > org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.3 > > from the specified remote repositories: > apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), > apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository), > central (http://repo1.maven.org/maven2) > for project org.apache.servicemix.tooling:jbi-maven-plugin > > > > > > > > > lhein wrote: >> >> Try to replace all occurances of : >> >> <servicemix-version>3.2.2</servicemix-version> >> >> with >> >> <servicemix-version>3.2.3</servicemix-version> >> >> or even >> >> <servicemix-version>3.3</servicemix-version> >> >> >> Regards >> Lars >> >> >> 2008/11/19 Drone42 <[EMAIL PROTECTED]> >> >>> >>> Searched through the directory, but didnt find any file referencing xbean >>> (... only a couple of xbean.xml fles). >>> >>> The pom.xml of the project as well as the SA pom.xml embedded below. >>> >>> >>> >>> -- ./pom.xml ------------------------ >>> <?xml version="1.0" encoding="UTF-8"?> >>> <project xmlns="http://maven.apache.org/POM/4.0.0" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >>> http://maven.apache.org/maven-v4_0_0.xsd"> >>> <modelVersion>4.0.0</modelVersion> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <artifactId>parent</artifactId> >>> <version>1.0-SNAPSHOT</version> >>> <packaging>pom</packaging> >>> <name>Tutorial</name> >>> <url>http://servicemix.org</url> >>> <modules> >>> <module>tutorial-file-su</module> >>> <module>tutorial-sa</module> >>> <module>tutorial-camel-su</module> >>> <module>tutorial-jms-su</module> >>> </modules> >>> </project> >>> >>> >>> >>> >>> -- ./tutorial-sa/pom.xml ---------------- >>> <?xml version="1.0" encoding="UTF-8"?><project> >>> <parent> >>> <artifactId>parent</artifactId> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <version>1.0-SNAPSHOT</version> >>> </parent> >>> <modelVersion>4.0.0</modelVersion> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <artifactId>tutorial-sa</artifactId> >>> <packaging>jbi-service-assembly</packaging> >>> <name>Tutorial :: File SA</name> >>> <version>1.0-SNAPSHOT</version> >>> <url>http://www.myorganization.org</url> >>> <build> >>> <plugins> >>> <plugin> >>> <groupId>org.apache.servicemix.tooling</groupId> >>> <artifactId>jbi-maven-plugin</artifactId> >>> <version>${servicemix-version}</version> >>> <extensions>true</extensions> >>> <configuration> >>> <type>service-assembly</type> >>> </configuration> >>> </plugin> >>> </plugins> >>> </build> >>> <repositories> >>> <repository> >>> <releases /> >>> <snapshots> >>> <enabled>false</enabled> >>> </snapshots> >>> <id>apache</id> >>> <name>Apache Repository</name> >>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> >>> </repository> >>> <repository> >>> <releases> >>> <enabled>false</enabled> >>> </releases> >>> <snapshots /> >>> <id>apache.snapshots</id> >>> <name>Apache Snapshots Repository</name> >>> <url>http://people.apache.org/repo/m2-snapshot-repository</url> >>> </repository> >>> </repositories> >>> <pluginRepositories> >>> <pluginRepository> >>> <releases /> >>> <snapshots> >>> <enabled>false</enabled> >>> </snapshots> >>> <id>apache</id> >>> <name>Apache Repository</name> >>> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> >>> </pluginRepository> >>> <pluginRepository> >>> <releases> >>> <enabled>false</enabled> >>> </releases> >>> <snapshots /> >>> <id>apache.snapshots</id> >>> <name>Apache Snapshots Repository</name> >>> <url>http://people.apache.org/repo/m2-snapshot-repository</url> >>> </pluginRepository> >>> </pluginRepositories> >>> <dependencies> >>> <dependency> >>> <groupId>junit</groupId> >>> <artifactId>junit</artifactId> >>> <version>3.8.1</version> >>> <scope>test</scope> >>> </dependency> >>> >>> <dependency> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <artifactId>tutorial-file-su</artifactId> >>> <version>1.0-SNAPSHOT</version> >>> </dependency> >>> >>> <dependency> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <artifactId>tutorial-camel-su</artifactId> >>> <version>1.0-SNAPSHOT</version> >>> </dependency> >>> >>> <dependency> >>> <groupId>org.apache.servicemix.tutorial</groupId> >>> <artifactId>tutorial-jms-su</artifactId> >>> <version>1.0-SNAPSHOT</version> >>> </dependency> >>> >>> >>> </dependencies> >>> <properties> >>> <servicemix-version>3.2.2</servicemix-version> >>> </properties> >>> </project> >>> >>> >>> >>> >>> >>> Freeman Fang wrote: >>> > >>> > Hi, >>> > >>> > You need grep the pom.xml of your project, change the xbean version >>> from >>> > 3.3 to 3.4. >>> > Or you can post your pom.xml on the thread, so that I can figure out >>> > what's wrong in it. >>> > Freeman >>> > >>> > Drone42 wrote: >>> >> I think I have vesion 3.3... at least I downloaded the 3.3 release and >>> >> when >>> >> running service mix I get the log trace; >>> >> >>> >> INFO - JBIContainer - ServiceMix 3.3 JBI Container >>> >> (ServiceMix) is starting >>> >> >>> >> I previously installed (and still have) version 3.2.2, but in a >>> separate >>> >> directory. I run my example in the folder for 3.3. Could it be that >>> >> something from previous runs on version 3.2.2 is ruining the build? I >>> >> have >>> >> now deleted the 3.2.2 version but still get the error. >>> >> >>> >> Other ideas? Im no expert in maven. Do I need to purge something in >>> >> ibibilio? >>> >> >>> >> Cheers. >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> Freeman Fang wrote: >>> >> >>> >>> Hi, >>> >>> This issue already get fixed in ServiceMix 3.2.3 and 3.3 release. >>> >>> You should use higher version instead of Servicemix 3.2.2 >>> >>> Freeman >>> >>> >>> >>> Drone42 wrote: >>> >>> >>> >>>> When I try to build the SA of the tutorial section 2.6 I get the >>> error >>> >>>> 'Failed to resolve artifacts'. >>> >>>> >>> >>>> I have created a camel SU and a JMS SU as described, using the >>> >>>> archetypes >>> >>>> and updating the relevant files. And I have updated the SA pom.xml >>> file >>> >>>> to >>> >>>> include the dependencies. >>> >>>> >>> >>>> But when I run 'mvn install' I get the errors seen below. Looking at >>> >>>> >>> http://servicemix.apache.org/dist/servicemix-3.3-SNAPSHOT/site/assemblies/apache-servicemix-web/dependencies.html >>> >>>> I failed to find the jar (xbean-classloader is wrong version, >>> >>>> xbean-kernel I >>> >>>> couldnt find) files needed to manually install...? >>> >>>> >>> >>>> >>> >>>> >>> >>>> [ERROR] BUILD ERROR >>> >>>> [INFO] >>> >>>> >>> ------------------------------------------------------------------------ >>> >>>> [INFO] Failed to resolve artifact. >>> >>>> >>> >>>> Missing: >>> >>>> ---------- >>> >>>> 1) org.apache.xbean:xbean-classloader:jar:3.3-SNAPSHOT >>> >>>> >>> >>>> Try downloading the file manually from the project website. >>> >>>> >>> >>>> Then, install it using the command: >>> >>>> mvn install:install-file -DgroupId=org.apache.xbean >>> >>>> -DartifactId=xbean-cla >>> >>>> ssloader -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.xbean >>> >>>> -DartifactId=xbean-class >>> >>>> loader -Dversion=3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file >>> >>>> -Durl=[url] - >>> >>>> DrepositoryId=[id] >>> >>>> >>> >>>> Path to dependency: >>> >>>> 1) >>> >>>> >>> org.apache.servicemix.tutorial:tutorial-camel-su:jbi-service-unit:1.0 >>> >>>> -SNAPSHOT >>> >>>> 2) org.apache.servicemix:servicemix-core:jar:3.2.2 >>> >>>> 3) org.apache.xbean:xbean-server:jar:3.3 >>> >>>> 4) org.apache.xbean:xbean-classloader:jar:3.3-SNAPSHOT >>> >>>> >>> >>>> 2) org.apache.xbean:xbean-kernel:jar:3.3-SNAPSHOT >>> >>>> >>> >>>> Try downloading the file manually from the project website. >>> >>>> >>> >>>> Then, install it using the command: >>> >>>> mvn install:install-file -DgroupId=org.apache.xbean >>> >>>> -DartifactId=xbean-ker >>> >>>> nel -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.xbean >>> >>>> -DartifactId=xbean-kerne >>> >>>> l -Dversion=3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file >>> >>>> -Durl=[url] >>> >>>> -Drepo >>> >>>> sitoryId=[id] >>> >>>> >>> >>>> Path to dependency: >>> >>>> 1) >>> >>>> >>> org.apache.servicemix.tutorial:tutorial-camel-su:jbi-service-unit:1.0 >>> >>>> -SNAPSHOT >>> >>>> 2) org.apache.servicemix:servicemix-core:jar:3.2.2 >>> >>>> 3) org.apache.xbean:xbean-server:jar:3.3 >>> >>>> 4) org.apache.xbean:xbean-kernel:jar:3.3-SNAPSHOT >>> >>>> >>> >>>> ---------- >>> >>>> 2 required artifacts are missing. >>> >>>> >>> >>>> for artifact: >>> >>>> >>> >>>> >>> org.apache.servicemix.tutorial:tutorial-camel-su:jbi-service-unit:1.0-SNAPSHOT >>> >>>> >>> >>>> >>> >>>> from the specified remote repositories: >>> >>>> apache.snapshots >>> >>>> (http://people.apache.org/repo/m2-snapshot-repository), >>> >>>> apache >>> (http://people.apache.org/repo/m2-ibiblio-rsync-repository), >>> >>>> central (http://repo1.maven.org/maven2) >>> >>>> >>> >>>> >>> >>> >>> >>> >>> >> >>> >> >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Cannot-resolve-artifacts-when-building-Tutorial-tp20550129p20576461.html >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >>> >> >> >> -- >> ---- >> http://lhein.blogspot.com >> >> >> ----- >> Regards >> Lars >> >> >> http://lhein.blogspot.com >> >> > > -- > View this message in context: > http://www.nabble.com/Cannot-resolve-artifacts-when-building-Tutorial-tp20550129p20577146.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
