I have discovered some issues with the latest ear plugin and was
wondering if anyone was having similar issues or had a fix.  It looks
like the last release of the plugin was some time ago.

 

1.      Context root does not seem to be getting set in the application
xml
2.      BundleFileName does not appear to be working
3.      Module definitions are placed in a random order within the
application XML.

 

Here is a sample of my pom for the ear definition

 

<build>

    <plugins>

      <plugin>

        <artifactId>maven-ear-plugin</artifactId>

        <configuration>

          <finalName>edsweb</finalName>

          <defaultLibBundleDir>/lib</defaultLibBundleDir>

          <webModule>

            <artifactId>edsweb-war</artifactId>

            <contextRoot>/edsweb</contextRoot>

          </webModule>

          <ejb3Module>

            <artifactId>jboss-seam</artifactId>

            <bundleFileName>jboss-seam.jar</bundleFileName>

          </ejb3Module>

          <ejb3Module>

            <artifactId>edsweb-ejb</artifactId>

            <bundleFileName>edsweb-ejb.jar</bundleFileName>

          </ejb3Module>

          <ejb3Module>

            <artifactId>edsrpt-ejb</artifactId>

            <bundleFileName>edsrpt-ejb.jar</bundleFileName>

          </ejb3Module>

          <ejb3Module>

            <artifactId>edsdata-ejb</artifactId>

            <bundleFileName>edsdata-ejb.jar</bundleFileName>

          </ejb3Module>

          <ejb3Module>

            <artifactId>edsbusiness-ejb</artifactId>

            <bundleFileName>edsbusiness-ejb.jar</bundleFileName>

          </ejb3Module>

          <jarModule>

            <artifactId>jboss-el</artifactId>

          </jarModule>

        </configuration>

      </plugin>

    </plugins>

  </build>

 

When I run the mvn ear command the artifacts in the directory still have
the version number appended to them as is the case in the application
xml despite the bundleFileName parameter.  The context root is set to
the default (edsweb-war)  rather that what I set.  Also the ordering of
the modules in the application.xml seems rather random and it is very
important that I am able to control the loading order of these modules.
If they are not loaded in the proper order they will not work.

 

Any input would be appreciated.

  

Scott Ryan

Consultant/Java Developer

Cell: 303 263-3044

 

Reply via email to