Stefan Schmidt created MEAR-289:
-----------------------------------

             Summary: skinnyWars issue with finalName for Jar module
                 Key: MEAR-289
                 URL: https://issues.apache.org/jira/browse/MEAR-289
             Project: Maven Ear Plugin
          Issue Type: Bug
    Affects Versions: 3.1.0
            Reporter: Stefan Schmidt
         Attachments: maven-ear-example.zip

When a finalName is given for a Jar module in a War it is not found by filename 
@\{artifactId}@-@\{version}@.@\{extension}@ for deletion in maven-ear-plugin.

Example as attached:
 * module-jar
 * module-jar2 (with finalName)
 * module-war (has jar and jar2 as dependency)
 * module-ear (has jar as dependency)

#> ./mvnw clean install

The module-ear-0-SNAPSHOT.ear contains the 
com.example-module-war-0-SNAPSHOT.war. In this war both jar's are in folder 
WEB-INF/lib module-jar-0-SNAPSHOT.jar and module-jar2-0-SNAPSHOT.jar.

On debugging maven-ear-plugin 3.1.0 it is checking only the finalName.jar and 
the name com.example-module-jar-0-SNAPSHOT.jar.

Debugging -> EarMojo.java line 816 to 838

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to