1 2 3 Previous Next 32 Replies Latest reply on Dec 4, 2008 8:18 AM by Olivier BEARN

    Maven ESB plugin

    Kevin Conner Master

      Some of the issues raised over the last week started me thinking about how we can integrate JBoss ESB into a maven build, the first part of which is obviously to build the esb archive.

      After going through the current options I decided that the best solution was to start a plugin specifically for the creation of our archive. I spent some time over the weekend writing this plugin and have now checked it in.

      The source code can be retrieved from subversion (https://svn.labs.jboss.com/labs/jbossesb/workspace/maven/maven-jboss-esb-plugin) and it has been deployed into the JBoss snapshot repository.

      The plugin can be used from within a pom.xml as follows

      <project ...>
       ...
       <packaging>esb</packaging>
       ...
       <build>
       <plugins>
       <plugin>
       <groupId>org.jboss.maven.plugins</groupId>
       <artifactId>maven-jboss-esb-plugin</artifactId>
       <version>1.0-SNAPSHOT</version>
       <extensions>true</extensions>
       </plugin>
       ...
       </plugins>
       ...
       </build>
       ...
       <pluginRepositories>
       ...
       <pluginRepository>
       <snapshots>
       <enabled>false</enabled>
       </snapshots>
       <id>jboss</id>
       <name>JBoss Plugin Repository</name>
       <url>http://repository.jboss.org/maven2</url>
       </pluginRepository>
       <pluginRepository>
       <releases>
       <enabled>false</enabled>
       </releases>
       <snapshots />
       <id>jboss-snapshots</id>
       <name>JBoss Snapshot Plugin Repository</name>
       <url>http://snapshots.jboss.org/maven2</url>
       </pluginRepository>
       ...
       </pluginRepositories>
       ...
      </project>

      The documentation is scarce at the moment, we do not yet have a location for deploying the site information, but what is currently there can be generated using 'mvn site' on the source.

      Please remember that this is not intended to be part of the ESB project, it's purpose is solely to enable maven generation of our esb artifact.

      If you have any comments on what is there, or ideas on how this can be taken forward, then please let me know.

        1 2 3 Previous Next