You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/10/08 09:03:00 UTC

[jira] [Updated] (MEAR-308) Facing issues with "deleting outdated resource"

     [ https://issues.apache.org/jira/browse/MEAR-308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Slawomir Jaranowski updated MEAR-308:
-------------------------------------
    Fix Version/s: waiting-for-feedback

> Facing issues with "deleting outdated resource"
> -----------------------------------------------
>
>                 Key: MEAR-308
>                 URL: https://issues.apache.org/jira/browse/MEAR-308
>             Project: Maven EAR Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Rich M
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: build.log, earmetainfissue.zip
>
>
> I am using maven-resources plugin to copy an additional file insider EAR META-INF folder. It works fine for the first time with clean. But when run again without clean, EAR plugin deletes the file saying "deleting outdated resource...".
> The pipeline runs the clean install first, and then run mvn deploy at later stage. Since mvn deploy builds ear again, it results in ear without the additional file.
> Here is a sample code attached. To recreate the problem:
>  # Run mvn clean package. Note that \target\testear-1.0\META-INF will have 2 files.
>  # Run mvn package. \target\testear-1.0\META-INF will have only 1 file now.
> How can this behavior be fixed ?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)