You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Laszlo Varadi (JIRA)" <ji...@codehaus.org> on 2012/11/16 10:52:13 UTC

[jira] (MEAR-162) skinnyWars with wars without manifest Class-Path attribute

Laszlo Varadi created MEAR-162:
----------------------------------

             Summary: skinnyWars with wars without manifest Class-Path attribute
                 Key: MEAR-162
                 URL: https://jira.codehaus.org/browse/MEAR-162
             Project: Maven 2.x Ear Plugin
          Issue Type: Bug
    Affects Versions: 2.8
            Reporter: Laszlo Varadi
         Attachments: EarMojo.patch

The classpath attribute should be set after populating with values, otherwise the classpath will be empty in the war manifest in case when the attribute is a newly created attribute. See patch.

--
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

        

[jira] (MEAR-162) skinnyWars with wars without manifest Class-Path attribute

Posted by "Guillaume Boucherie (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MEAR-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Boucherie updated MEAR-162:
-------------------------------------

    Attachment: MEAR-162.patch
    
> skinnyWars with wars without manifest Class-Path attribute
> ----------------------------------------------------------
>
>                 Key: MEAR-162
>                 URL: https://jira.codehaus.org/browse/MEAR-162
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>            Reporter: Laszlo Varadi
>         Attachments: EarMojo.patch, MEAR-162.patch
>
>
> The classpath attribute should be set after populating with values, otherwise the classpath will be empty in the war manifest in case when the attribute is a newly created attribute. See patch.

--
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

        

[jira] (MEAR-162) skinnyWars with wars without manifest Class-Path attribute

Posted by "Guillaume Boucherie (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MEAR-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=317489#comment-317489 ] 

Guillaume Boucherie commented on MEAR-162:
------------------------------------------

In fact I think that the MANIFEST.MF will never be update because the org.codehaus.plexus.archiver.jar.Manifest getters (getMainSection and getSection) return new instance of Section object, so changes made on this instance will never impact current Manifest instance.
If it could help I create a patch (it include the one provided by Laszlo Varadi) that contains an update skinny war it test, that test the MANIFEST.MF generated classpath.
                
> skinnyWars with wars without manifest Class-Path attribute
> ----------------------------------------------------------
>
>                 Key: MEAR-162
>                 URL: https://jira.codehaus.org/browse/MEAR-162
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8
>            Reporter: Laszlo Varadi
>         Attachments: EarMojo.patch, MEAR-162.patch
>
>
> The classpath attribute should be set after populating with values, otherwise the classpath will be empty in the war manifest in case when the attribute is a newly created attribute. See patch.

--
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