0 Replies Latest reply on Oct 26, 2011 3:51 AM by maniv

    maven build script for jboss-esb project

    maniv

      Follow the below steps to create jboss-esb project build......

           

                <!--  mention node named "packaging" value as "jboss-esb" under parent root node called "project" and following node name called "version" -->

      • <packaging>jboss-esb</packaging>

                <!-- mention node named "resources" under parent node called "build" and following node name called "plugins"-->

      • <resources>

                   <resource>

                          <!--  notify the folder where the META-INF folder exists  -->

                         <directory>${basedir}/esbcontent</directory>

                         <filtering>true</filtering>

                   </resource>

                     <!--  can be added any content  which will be copied into .esb file archieve -->

                   <resource>

                         <directory>${basedir}/src</directory>

                         <filtering>true</filtering>

                   </resource>

             </resources>

             <!-- mention node named "plugins" under parent node called "build"-->

      • <plugins>

                   <plugin>

                         <groupId>org.codehaus.mojo</groupId>

                         <artifactId>jboss-packaging-maven-plugin</artifactId>

                         <version>2.1.1</version>

                         <extensions>true</extensions>

                         <configuration>

                                <!-- mention the archieve name on which jboss-esb project created by this script -->   

                               <archiveName>jboss_esb_project_name</archiveName>

                         </configuration>

                         <executions>

                               <execution>

                                        <!-- mention build-esb to run jboss-esb build archieve -->

                                     <id>build-esb</id>

                                     <goals>

                                              <!--  goal should be as esb -->

                                           <goal>esb</goal>

                                     </goals>

                               </execution>

                         </executions>

                   </plugin>

             </plugins>