BTW - The problem with the jbi-maven-plugin not being able to be found was a result of me putting a reference to it in my parent POM to turn off dependencies as the Hello World tutorial told me to.
But now I'm getting this error, this jar doesn't need downloaded manually does it?: [WARNING] Unable to get resource from repository apache.incubating ( http://people.apache.org/repo/m2-incubating-repository) Downloading: http://www.ibiblio.org/maven2/geronimo/geronimo-security/1.1/geronimo-security-1.1.jar 186K downloaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \ -Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file Path to dependency: 1) org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating 2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating 3) geronimo:geronimo-connector:jar:1.1 4) geronimo:geronimo-kernel:jar:1.1 5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 ---------- 1 required artifact is missing. for artifact: org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating from the specified remote repositories: central (http://www.ibiblio.org/maven2), servicemix-m2-repo (http://servicemix.org/m2-repo), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache.incubating (http://people.apache.org/repo/m2-incubating-repository ), apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository ), activemq-tmp-repo ( http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Missing: ---------- 1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \ -Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file Path to dependency: 1) org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating 2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating 3) geronimo:geronimo-connector:jar:1.1 4) geronimo:geronimo-kernel:jar:1.1 5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 ---------- 1 required artifact is missing. for artifact: org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating from the specified remote repositories: central (http://www.ibiblio.org/maven2), servicemix-m2-repo (http://servicemix.org/m2-repo), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache.incubating (http://people.apache.org/repo/m2-incubating-repository ), apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository ), activemq-tmp-repo ( http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:30 ) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: ---------- 1) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.geronimo.specs-DartifactId=geronimo-qname_1.1_spec \ -Dversion=1.0.1 -Dpackaging=test -Dfile=/path/to/file Path to dependency: 1) org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating 2) org.apache.servicemix:servicemix-core:jar:3.0.1-incubating 3) geronimo:geronimo-connector:jar:1.1 4) geronimo:geronimo-kernel:jar:1.1 5) org.apache.geronimo.specs:geronimo-qname_1.1_spec:test:1.0.1 ---------- 1 required artifact is missing. for artifact: org.apache.servicemix.tooling:jbi-maven-plugin:maven-plugin:3.0.1-incubating from the specified remote repositories: central (http://www.ibiblio.org/maven2), servicemix-m2-repo (http://servicemix.org/m2-repo), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository), apache.incubating (http://people.apache.org/repo/m2-incubating-repository ), apache-releases (http://people.apache.org/repo/m2-ibiblio-rsync-repository ), activemq-tmp-repo ( http://people.apache.org/~chirino/incubator-activemq-4.0.2-RC5/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:244) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively (DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete (DefaultPluginManager.java:608) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo( DefaultPluginManager.java:519) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:390) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 44 seconds [INFO] Finished at: Mon Nov 06 13:12:44 EST 2006 [INFO] Final Memory: 11M/21M [INFO] ------------------------------------------------------------------------ On 11/6/06, Ryan Moquin <[EMAIL PROTECTED]> wrote:
I'm hoping someone can give me a hand with some questions I have regarding getting started with ServiceMix. I've spent many hours searching and trying to get a first example up and running but I'm a little stuck. I'm using the ServiceMix 3.0.1 libraries on JDK 1.5. I had to add these repos to a parent pom (it doesn't seem to work if I put it in a profile in my settings.xml for some reason): http://people.apache.org/repo/m2-incubating-repository I created a JBI service engine project with Maven2 using: mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling-DarchetypeArtifactId=servicemix-service-engine -DarchetypeVersion= 3.0.1-incubating -DgroupId=firstSEgroup -DartifactId=MySE It seems to create my project fine, though there were few warning about certain version properties not being set, does it matter?: [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 85,column 16] : ${servicemix-version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException : reference : template = archetype-resources/pom.xml [line 90,column 16] : ${servicemix-version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 105,column 18] : ${servicemix-version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 116,column 18] : ${xbean-version} is not a valid reference. Next when I do mvn install, I get: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:jbi-maven-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ Now what's funny, is on Thursday and Friday, I was playing around for hours trying to get a project created properly. I didn't get the above error then, I just kept getting a failed unit test when I did "mvn install" because of a missing activeio jar (the FactoryFinder class couldn't be found) . That error has been described before, though I now can't find the link for your reference. Also, in the hello world example: http://goopen.org/confluence/display/SM/Hello+World+-+SE I don't understand the relationship between the service unit, service assembly and service engine. It shows making the service unit dependant on the parent POM and indicates that means it will be included in the service assembly. From my Maven2 experience, that makes no sense since it should be in the service assembly POM as a dependency? Also, there is no mention of how the service engine POM fits into that packaging.... I tried looking at the source examples but so far haven't quite pieced it all together. Can someone give me a hand getting started? Thanks, Ryan
