maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane Nicoll (JIRA) <>
Subject [jira] (MEAR-146) Expose parameter to not write library-directory element in application.xml
Date Mon, 27 Aug 2012 20:13:21 GMT


Stéphane Nicoll commented on MEAR-146:

Thanks for the patch Alex. I have changed it slightly to:

# Use libraryDirectoryMode instead of libraryDirectory. I don't like the idea of mixing magic
strings with the actual value for the library directory,
# Rename the option to make them shorter and easier to read (DEFAULT_LIB_BUNDLE_DIR is not
really easy to put in a pom file): the new values are now "DEFAULT", "EMPTY" and "NONE" (and
the case does not matter so you can write this lower-case as well),
# Move the parameter to the right mojo (the main mojo does not need this parameter).

I also added the ITs for the 3 options.

I just deployed a snapshot (2.8-20120827.200901-277). Can you try this out and let me know
if that fixes your issue?

Thanks a lot for your assistance, for the details and the patch. This really helped.

> Expose parameter to not write library-directory element in application.xml
> --------------------------------------------------------------------------
>                 Key: MEAR-146
>                 URL:
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.7
>         Environment: Oracle WebLogic
>            Reporter: Alex Halovanic
>            Assignee: Stéphane Nicoll
>            Priority: Minor
>             Fix For: 2.8
>         Attachments: ear-general-librarydirectory.patch, ear-remove-librarydirectory-IT.patch,
ear-remove-librarydirectory-IT.patch, ear-remove-librarydirectory.patch, ear-remove-librarydirectory.patch
> The current handling of defaultLibBundleDir leads to some issues on Oracle Weblogic 10+.
 The Ear plugin currently sets library-directory to the value of defaultLibBundleDir in the
application.xml for EARs v5+.  Some of Oracle's classloading features break (specifically
"Generic File Loading") when this element is set.  defaultLibBundleDir has to be set to APP-INF/lib
since this is the magic library folder for WebLogic.
> The patch adds a parameter to prevent setting library-directory for cases like this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message