bsnyder wrote:
> 
> On Mon, Jul 7, 2008 at 2:44 PM, scott-o <[EMAIL PROTECTED]> 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.

Reply via email to