You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Marc Tremblay <ma...@pansapien.com> on 2006/03/08 18:08:47 UTC

Maven 2 and the JBI plugin

Hi,
 
I've built and installed (mvn install) the Maven 2 JBI plugin in
servicemix/tooling/maven2-jbi-plugin.  However, when I try to use the
jbi:generateInstaller goal, maven can't find the installed plugin.
 
C:\devel\services\quartz-service>mvn jbi:generateInstaller
[INFO] Scanning for projects...
[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 foun
d
[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Mar 08 12:03:54 EST 2006
[INFO] Final Memory: 1M/3M
[INFO]
----------------------------------------------------------------------------
 
I have the following in my master pom.xml
 
        <plugin>
          <groupId>org.apache.servicemix.plugins</groupId>
          <artifactId>maven2-jbi-plugin</artifactId>
          <version>1.0-SNAPSHOT</version>
          <extensions>true</extensions>
        </plugin>
 
Is there some way I can tell maven to use
org.apache.servicemix.plugins:maven2-jbi-plugin for the
jbi:generateInstaller goal?
 
Thanks.
 
Marc

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 06/03/2006
 

Re: Maven 2 and the JBI plugin

Posted by Guillaume Nodet <gn...@gmail.com>.
Take a look at a sample pom using it:
http://svn.apache.org/viewcvs.cgi/incubator/servicemix/trunk/servicemix-lwcontainer/pom.xml?rev=379627&view=markup

You have to set the
   <packaging>jbi-component</packaging>

and configure the plugin
            <plugin>
                <groupId>org.apache.servicemix.plugins</groupId>
                <artifactId>maven2-jbi-plugin</artifactId>
                <configuration>
                   <type>service-engine</type>
                   <bootstrap>
org.apache.servicemix.lwcontainer.LwContainerBootstrap</bootstrap>
                   <component>
org.apache.servicemix.lwcontainer.LwContainerComponent</component>
                </configuration>
            </plugin>

Then just run
        mvn install

Guillaume Nodet

On 3/8/06, Marc Tremblay <ma...@pansapien.com> wrote:
>
> Hi,
>
> I've built and installed (mvn install) the Maven 2 JBI plugin in
> servicemix/tooling/maven2-jbi-plugin.  However, when I try to use the
> jbi:generateInstaller goal, maven can't find the installed plugin.
>
> C:\devel\services\quartz-service>mvn jbi:generateInstaller
> [INFO] Scanning for projects...
> [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 foun
> d
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
>
> ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Mar 08 12:03:54 EST 2006
> [INFO] Final Memory: 1M/3M
> [INFO]
>
> ----------------------------------------------------------------------------
>
> I have the following in my master pom.xml
>
>         <plugin>
>           <groupId>org.apache.servicemix.plugins</groupId>
>           <artifactId>maven2-jbi-plugin</artifactId>
>           <version>1.0-SNAPSHOT</version>
>           <extensions>true</extensions>
>         </plugin>
>
> Is there some way I can tell maven to use
> org.apache.servicemix.plugins:maven2-jbi-plugin for the
> jbi:generateInstaller goal?
>
> Thanks.
>
> Marc
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 06/03/2006
>
>
>