maven-issues mailing list archives

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

    [ https://jira.codehaus.org/browse/MEAR-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=307206#comment-307206
] 

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: https://jira.codehaus.org/browse/MEAR-146
>             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: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message