2 Replies Latest reply on Jan 7, 2016 3:28 AM by sonyjop

    Unable to package ejb-jar.xml using maven-ejb-pluggin v 2.5.1

    sonyjop

      Hello

       

      I want to package my ejb-jar.xml. so I mentioned the POM.xml pluggin as :

      <plugin>

               <groupId>org.apache.maven.plugins</groupId>

               <artifactId>maven-ejb-plugin</artifactId>

               <version>2.5.1</version>

               <!-- <version>3.0</version> -->

               <configuration>

                <ejbVersion>3.0</ejbVersion>

                 <ejbJar>/META-INF/ejb-jar.xml</ejbJar>

            <archive>

                 <manifest>

                   <addClasspath>true</addClasspath>

                 </manifest>

                </archive>

               </configuration>

            </plugin>

       

      Still it is not packaging the ejb-jar.xml into the jar file which is created. Any help will be appreciated.

      I use: JBoss EAP 6.3, JBDS 8.1

        • 1. Re: Unable to package ejb-jar.xml using maven-ejb-pluggin v 2.5.1
          jaysensharma

          I do not see any problem with   "maven-ejb-plugin"  2.5.1 version it seems to be working fine.    The only thing you need to remember that you should place your ejb-jar.xml   inside the "$EJB_Project/src/main/resources/META-INF" directory something like following:

           

           

          EJB_Project/

          ......... |____

          ......... ....|____pom.xml

          ......... ....|____src

          ......... .........|____main

          ......... ........... |____java

          ......... ......... ......|____ejb

          ......... ......... ...........|____TestBean.java

          ......... ......... ...........|____TestRemote.java

          ......... ........... |____resources

          ......... ......... ......|____META-INF

          ......... ......... ...........|____ejb-jar.xml

          1 of 1 people found this helpful
          • 2. Re: Unable to package ejb-jar.xml using maven-ejb-pluggin v 2.5.1
            sonyjop

            Thanks a lot Jay. I were keeping my file in a different META-INF folder which is outside the resources folder.

             

            That helped a lot and I am thru now.