In the current plugin version, the following pom.xml configuration
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mygroup</groupId>
<artifactId>application</artifactId>
<packaging>ear</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.mygroup</groupId>
<artifactId>ejbmodule</artifactId>
<type>ejb</type>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<defaultLibBundleDir>/MYLIBDIR</defaultLibBundleDir>
<modules>
<version>5</version>
</modules>
</configuration>
</plugin>
</build>
</project>
Generates the following application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
version="5">
<module>
<ejb>ejbmodule-1.0-SNAPSHOT.jar</ejb>
</module>
</application>
But notice that the above generated XML does not include a library-directory configuration, included in JEE 5. This new configuration ends the "different library directory problem across servers" problem.
What I need is that in the case of EAR version 5 and defaultLibBundleDir set for the EAR plugin, such value to be included in the application.xml, generating something like this:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
version="5">
<module>
<ejb>ejbmodule-1.0-SNAPSHOT.jar</ejb>
</module>
<library-directory>/MYLIBDIR</library-directory>
</application>
? uh?
What are you talkin about?