You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Danilo Eiji Seki (JIRA)" <ji...@codehaus.org> on 2008/02/07 19:32:28 UTC

[jira] Commented: (MEAR-78) Library directory configuration

    [ http://jira.codehaus.org/browse/MEAR-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122792 ] 

Danilo Eiji Seki commented on MEAR-78:
--------------------------------------

In the current plugin version, the following {{pom.xml}} configuration

{code:xml}
<?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>
{code}

Generates the following {{application.xml}}:

{code: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>
{code}

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:

{code: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>

    <library-directory>/MYLIBDIR</library-directory>

</application>
{code}

> Library directory configuration
> -------------------------------
>
>                 Key: MEAR-78
>                 URL: http://jira.codehaus.org/browse/MEAR-78
>             Project: Maven 2.x Ear Plugin
>          Issue Type: New Feature
>            Reporter: Danilo Eiji Seki
>
> Plugin configuration should include a property to set {{library-directory}} configuration in generated {{application.xml}}. It may not be necessary to include this property. Maybe something like "if {{defaultLibBundleDir}} is different from {{lib}}, include configuration".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira