You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by scott-o <os...@yahoo.com> on 2008/07/07 21:45:52 UTC

maven-jbi-plugin does not exist

I've installed servicemix 3.2.1 Maven 2.0.9 and Java 1.6.0_06, and I'm
working through the tutorial and need some help on step 2.5. 

In step 2.4, I had to use the parameter
-DarchetypeCatalog=http://servicemix.apache.org/tooling/3.2.2-SNAPSHOT/archetype-catalog.xml
to get the create to work. 

At step 2.5, I get an error when executing mvn jbi:projectDeploy that the
maven-jbi-plugin does not exist. 

What can I do to get Maven to deploy the project?

The trace from running mvn -e jbi:projectDeploy is below:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Tutorial
[INFO]   Tutorial :: File SU
[INFO]   tutorial-sa
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not exist
or
no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
aven.plugins:maven-jbi-plugin' does not exist or no valid version could be
found

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1542)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:405)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-jbi-plugin' does not exist or no valid
ver
sion could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:229)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:91)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:171)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
ultLifecycleExecutor.java:1274)
        ... 14 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jul 07 11:58:35 PDT 2008
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

-- 
View this message in context: http://www.nabble.com/maven-jbi-plugin-does-not-exist-tp18325070p18325070.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven-jbi-plugin does not exist

Posted by scott-o <os...@yahoo.com>.
Well, like Inigo Montoya, I went back to the beginning, though I have no
brandy ;)

I stepped through the tutorial and each time I deleted the contents of the
Maven repository (many checksum errors resulted in build failures) until I
was able to successfully create and install the service assembly (step 2.4
of the tutorial).

In the deploy phase, step 2.5, everything works fine until the end where a
connect error is thrown. My installation has the RMI port set to 1199
(default is 1099) - so, the final command used was:
mvn jbi:projectDeply -Dport=1199

Thank-you Bruce for all your feedback yesterday.
-- 
View this message in context: http://www.nabble.com/maven-jbi-plugin-does-not-exist-tp18325070p18347820.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven-jbi-plugin does not exist

Posted by scott-o <os...@yahoo.com>.

bsnyder wrote:
> 
> On Mon, Jul 7, 2008 at 4:02 PM, scott-o <os...@yahoo.com> wrote:
> 
> So this must be an issue with your local Maven repo. Delete your
> ~/.m2/repository/org/apache/servicemix/tooling directory and see if it
> makes any difference. Sometimes the metadata files can prevent
> artifacts from being downloaded.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> 
> Blog: http://bruceblog.org/
> 
> 

Ok - I redirected the local repository to a different location, re-installed
the parent (step 2.4 in the tutorial), and then re-projectDeployed (step
2.5). The result was that the build was successful, but the Deployment
Analysis reported "Tutorial :: SA has -1 child dependencies" and nothing was
deployed.

tutorial pom.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<project>
    <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://serviceix.org</url>
  <modules>
    <module>tutorial-file-su</module>
    <module>tutorial-sa</module>
  </modules>
</project>

tutorial-file-su pom.xml is:
<?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-file-su</artifactId>
  <packaging>jbi-service-unit</packaging>
  <name>Tutorial :: File SU</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://www.myorganization.org</url>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>
        <extensions>true</extensions>
      </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</groupId>
      <artifactId>servicemix-file</artifactId>
      <version>${servicemix-version}</version>
    </dependency>
  </dependencies>
  <properties>
    <servicemix-version>3.2.1</servicemix-version>
  </properties>
</project>

tutorial-sa pom.xml is:
<?xml version="1.0"?>
<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>
  <name>Tutorial :: SA</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix.tutorial</groupId>
      <artifactId>tutorial-file-su</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <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>
      <id>asf-m2-snapshot-repo</id>
      <name>ASF Maven 2 Snapshot Repo</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
      <releases><enabled>false</enabled></releases>
      <snapshots><enabled>true</enabled></snapshots>
    </repository>
  </repositories>
  <properties>
    <servicemix-version>3.2.1</servicemix-version>
  </properties>
</project>

-- 
View this message in context: http://www.nabble.com/maven-jbi-plugin-does-not-exist-tp18325070p18343831.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven-jbi-plugin does not exist

Posted by Bruce Snyder <br...@gmail.com>.
On Mon, Jul 7, 2008 at 4:02 PM, scott-o <os...@yahoo.com> wrote:
>
>
> bsnyder wrote:
>>
>> On Mon, Jul 7, 2008 at 2:44 PM, scott-o <os...@yahoo.com> wrote:
>>
>>> I added the snippet to the pom.xml in the tutorial-sa directory and
>>> re-ran
>>> mvn from that directory.
>>> Unfortunately, the error "...maven-jbi-plugin' does not exist..."
>>> persists.
>>
>> The solution to this issue is making Maven see the version of the
>> plugin you have specified in the POM. What version of ServiceMix have
>> you specified in the POM?
>>
>>
>
> I added a <build><plugins>...</plugins></build> element to the pom.xml that
> specifies the jb-maven-plugin as shown in  rickpelletier's post on Jan 23,
> 2008, and used the <properties/> to specify 3.2.1 as the version. So I think
> Maven "knows" what to do now.
>
> However, now I get a build error - failed to resolve artifact, shown below,
> followed by my pom.xml:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Tutorial :: SA
> [INFO]    task-segment: [jbi:projectDeploy]
> [INFO]
> ------------------------------------------------------------------------
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/ser
> vicemix/tutorial/tutorial-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom
>
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/ser
> vicemix/tutorial/tutorial-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.servicemix.tutorial:tutorial-file-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.tutorial
> -Dartifa
> ctId=tutorial-file-su -Dversion=1.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/fil
> e
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>
>      mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tutorial
> -Dartifact
> Id=tutorial-file-su -Dversion=1.0-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1)
> org.apache.servicemix.tutorial:tutorial-sa:jbi-service-assembly:1.0-S
> NAPSHOT
>        2) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>
> org.apache.servicemix.tutorial:tutorial-sa:jbi-service-assembly: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)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Jul 07 14:42:38 PDT 2008
> [INFO] Final Memory: 3M/5M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> The tutorial-sa pom.xml that I'm using:
>
> <?xml version="1.0"?>
> <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>
>  <name>tutorial-sa</name>
>  <version>1.0-SNAPSHOT</version>
>  <url>http://maven.apache.org</url>
>  <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>
>  </dependencies>
>  <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>
>                  <id>asf-m2-snapshot-repo</id>
>                  <name>ASF Maven 2 Snapshot Repo</name>
>                  <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
>                  <releases><enabled>false</enabled></releases>
>                  <snapshots><enabled>true</enabled></snapshots>
>          </repository>
>  </repositories>
>  <properties>
>          <servicemix-version>3.2.1</servicemix-version>
>  </properties>
> </project>

I just grabbed the POM above, commented out the parent element,
commented out the dependency on tutorial-file-su, moved my local Maven
repo aside and ran 'mvn install.' The result was a successful build.
So this must be an issue with your local Maven repo. Delete your
~/.m2/repository/org/apache/servicemix/tooling directory and see if it
makes any difference. Sometimes the metadata files can prevent
artifacts from being downloaded.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Re: maven-jbi-plugin does not exist

Posted by scott-o <os...@yahoo.com>.

bsnyder wrote:
> 
> On Mon, Jul 7, 2008 at 2:44 PM, scott-o <os...@yahoo.com> wrote:
> 
>> I added the snippet to the pom.xml in the tutorial-sa directory and
>> re-ran
>> mvn from that directory.
>> Unfortunately, the error "...maven-jbi-plugin' does not exist..."
>> persists.
> 
> The solution to this issue is making Maven see the version of the
> plugin you have specified in the POM. What version of ServiceMix have
> you specified in the POM?
> 
> 

I added a <build><plugins>...</plugins></build> element to the pom.xml that
specifies the jb-maven-plugin as shown in  rickpelletier's post on Jan 23,
2008, and used the <properties/> to specify 3.2.1 as the version. So I think
Maven "knows" what to do now.

However, now I get a build error - failed to resolve artifact, shown below,
followed by my pom.xml:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial :: SA
[INFO]    task-segment: [jbi:projectDeploy]
[INFO]
------------------------------------------------------------------------
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ser
vicemix/tutorial/tutorial-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom

Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ser
vicemix/tutorial/tutorial-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.servicemix.tutorial:tutorial-file-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.tutorial
-Dartifa
ctId=tutorial-file-su -Dversion=1.0-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/fil
e

  Alternatively, if you host your own repository you can deploy the file
there:

      mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tutorial
-Dartifact
Id=tutorial-file-su -Dversion=1.0-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1)
org.apache.servicemix.tutorial:tutorial-sa:jbi-service-assembly:1.0-S
NAPSHOT
        2) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
 
org.apache.servicemix.tutorial:tutorial-sa:jbi-service-assembly: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)


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jul 07 14:42:38 PDT 2008
[INFO] Final Memory: 3M/5M
[INFO]
------------------------------------------------------------------------




The tutorial-sa pom.xml that I'm using:

<?xml version="1.0"?>
<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>
  <name>tutorial-sa</name>
  <version>1.0-SNAPSHOT</version>
  <url>http://maven.apache.org</url>
  <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>
  </dependencies>
  <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>
		  <id>asf-m2-snapshot-repo</id>
		  <name>ASF Maven 2 Snapshot Repo</name>
		  <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
		  <releases><enabled>false</enabled></releases>
		  <snapshots><enabled>true</enabled></snapshots>
	  </repository>
  </repositories>
  <properties>
	  <servicemix-version>3.2.1</servicemix-version>
  </properties>
</project>

-- 
View this message in context: http://www.nabble.com/maven-jbi-plugin-does-not-exist-tp18325070p18327640.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven-jbi-plugin does not exist

Posted by Bruce Snyder <br...@gmail.com>.
On Mon, Jul 7, 2008 at 2:44 PM, scott-o <os...@yahoo.com> wrote:

> I added the snippet to the pom.xml in the tutorial-sa directory and re-ran
> mvn from that directory.
> Unfortunately, the error "...maven-jbi-plugin' does not exist..." persists.

The solution to this issue is making Maven see the version of the
plugin you have specified in the POM. What version of ServiceMix have
you specified in the POM?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Re: maven-jbi-plugin does not exist

Posted by scott-o <os...@yahoo.com>.

bsnyder wrote:
> 
> On Mon, Jul 7, 2008 at 1:45 PM, scott-o <os...@yahoo.com> wrote:
>>
>> I've installed servicemix 3.2.1 Maven 2.0.9 and Java 1.6.0_06, and I'm
>> working through the tutorial and need some help on step 2.5.
>>
>> In step 2.4, I had to use the parameter
>> -DarchetypeCatalog=http://servicemix.apache.org/tooling/3.2.2-SNAPSHOT/archetype-catalog.xml
>> to get the create to work.
>>
>> At step 2.5, I get an error when executing mvn jbi:projectDeploy that the
>> maven-jbi-plugin does not exist.
>>
>> What can I do to get Maven to deploy the project?
>>
>> The trace from running mvn -e jbi:projectDeploy is below:
>>
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   Tutorial
>> [INFO]   Tutorial :: File SU
>> [INFO]   tutorial-sa
>> [INFO] Searching repository for plugin with prefix: 'jbi'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not
>> exist
> 
> I hazard a guess that you may have specified a newer version than is
> available in the central repository (http:/repo1.maven.org/maven2/)
> which only holds released versions. The latest release is 3.2.1.
> However, I notice that in the archetypeCatalog property above you're
> using version 3.2.2-SNAPSHOT which will only be available in the ASF
> snapshot repo (http://people.apache.org/repo/m2-snapshot-repository/).
> I'm guessing the issue is that you don't have the snapshot repo
> specified in your POM file so Maven doesn't know to look there. Just
> add the following to your POM and see if it locates the
> jbi-maven-plugin:
> 
> <repositories>
> ...
>   <repository>
>     <id>asf-m2-snapshot-repo</id>
>     <name>ASF Maven 2 Snapshot Repo</name>
>     <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
>     <releases>
>       <enabled>false</enabled>
>     <releases>
>     <snapshots>
>       <enabled>true</enabled>
>     </snapshots>
>   <repository>
> </repositories>
> 
> HTH
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache ActiveMQ - http://activemq.org/
> Apache Camel - http://activemq.org/camel/
> Apache ServiceMix - http://servicemix.org/
> 
> Blog: http://bruceblog.org/
> 
> 

I added the snippet to the pom.xml in the tutorial-sa directory and re-ran
mvn from that directory.
Unfortunately, the error "...maven-jbi-plugin' does not exist..." persists.

-- 
View this message in context: http://www.nabble.com/maven-jbi-plugin-does-not-exist-tp18325070p18326196.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: maven-jbi-plugin does not exist

Posted by Bruce Snyder <br...@gmail.com>.
On Mon, Jul 7, 2008 at 1:45 PM, scott-o <os...@yahoo.com> wrote:
>
> I've installed servicemix 3.2.1 Maven 2.0.9 and Java 1.6.0_06, and I'm
> working through the tutorial and need some help on step 2.5.
>
> In step 2.4, I had to use the parameter
> -DarchetypeCatalog=http://servicemix.apache.org/tooling/3.2.2-SNAPSHOT/archetype-catalog.xml
> to get the create to work.
>
> At step 2.5, I get an error when executing mvn jbi:projectDeploy that the
> maven-jbi-plugin does not exist.
>
> What can I do to get Maven to deploy the project?
>
> The trace from running mvn -e jbi:projectDeploy is below:
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Tutorial
> [INFO]   Tutorial :: File SU
> [INFO]   tutorial-sa
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not exist

I hazard a guess that you may have specified a newer version than is
available in the central repository (http:/repo1.maven.org/maven2/)
which only holds released versions. The latest release is 3.2.1.
However, I notice that in the archetypeCatalog property above you're
using version 3.2.2-SNAPSHOT which will only be available in the ASF
snapshot repo (http://people.apache.org/repo/m2-snapshot-repository/).
I'm guessing the issue is that you don't have the snapshot repo
specified in your POM file so Maven doesn't know to look there. Just
add the following to your POM and see if it locates the
jbi-maven-plugin:

<repositories>
...
  <repository>
    <id>asf-m2-snapshot-repo</id>
    <name>ASF Maven 2 Snapshot Repo</name>
    <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
    <releases>
      <enabled>false</enabled>
    <releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  <repository>
</repositories>

HTH

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/