maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Yak (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MSHADE-292) Relocation exclude works differently on Win and Unix platforms
Date Mon, 25 Jun 2018 12:44:00 GMT

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

Artem Yak updated MSHADE-292:
-----------------------------
    Description: 
Un-tar attached project.

execute on Windows :  
{code:java}
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15
{code}
output is: 
{code:java}
0 2018-06-25 15:36    com/
0 2018-06-25 15:36    com/banana/
250 2018-06-25 15:36  com/banana/T.class
0 2018-06-25 15:36    com/orange/
0 2018-06-25 15:36    com/orange/framework/
270 2018-06-25 15:36  com/orange/framework/T.class
250 2018-06-25 15:36  com/orange/T.class
0 2018-06-25 15:36    META-INF/maven/com.orange.qa/
0 2018-06-25 15:36    META-INF/maven/com.orange.qa/BUG/
2166 2018-06-25 18:15 META-INF/maven/com.orange.qa/BUG/pom.xml
114 2018-06-25 15:36  META-INF/maven/com.orange.qa/BUG/pom.properties
0 2018-06-25 15:36    bug/com/
0 2018-06-25 15:36    bug/com/google/
0 2018-06-25 15:36    bug/com/google/gson/
0 2018-06-25 15:36    bug/com/google/gson/annotations/

{code}
 execute on Unix (CentOS or MacOS) : 
{code:java}
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15{code}
output is 
{code:java}
        0  06-25-2018 18:35   bug/com/
        0  06-25-2018 18:35   bug/com/orange/
        0  06-25-2018 18:35   bug/com/orange/framework/
      278  06-25-2018 18:35   bug/com/orange/framework/T.class
        0  06-25-2018 18:35   com/
        0  06-25-2018 18:35   com/orange/
      250  06-25-2018 18:35   com/orange/T.class
        0  06-25-2018 18:35   com/banana/
      250  06-25-2018 18:35   com/banana/T.class
        0  06-25-2018 18:35   META-INF/maven/com.orange.qa/
        0  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/
     2166  06-25-2018 18:15   META-INF/maven/com.orange.qa/BUG/pom.xml
      109  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/pom.properties
        0  06-25-2018 18:35   bug/com/google/
        0  06-25-2018 18:35   bug/com/google/gson/

{code}
*Actual result:*

  Relocation->exclude didn't work as expected on unix

*Expected results* is on Windows:

com/orange/framework/T must be excluded from bug.com relocations 

 

  was:
Un-tar attached project.

execute on Windows : 

 
{code:java}
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15
{code}
output is:

 

 
{code:java}
0 2018-06-25 15:36    com/
0 2018-06-25 15:36    com/banana/
250 2018-06-25 15:36  com/banana/T.class
0 2018-06-25 15:36    com/orange/
0 2018-06-25 15:36    com/orange/framework/
270 2018-06-25 15:36  com/orange/framework/T.class
250 2018-06-25 15:36  com/orange/T.class
0 2018-06-25 15:36    META-INF/maven/com.orange.qa/
0 2018-06-25 15:36    META-INF/maven/com.orange.qa/BUG/
2166 2018-06-25 18:15 META-INF/maven/com.orange.qa/BUG/pom.xml
114 2018-06-25 15:36  META-INF/maven/com.orange.qa/BUG/pom.properties
0 2018-06-25 15:36    bug/com/
0 2018-06-25 15:36    bug/com/google/
0 2018-06-25 15:36    bug/com/google/gson/
0 2018-06-25 15:36    bug/com/google/gson/annotations/

{code}
 

 

execute on Unix (CentOS or MacOS) : 
{code:java}
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15{code}
output is 

 
{code:java}
        0  06-25-2018 18:35   bug/com/
        0  06-25-2018 18:35   bug/com/orange/
        0  06-25-2018 18:35   bug/com/orange/framework/
      278  06-25-2018 18:35   bug/com/orange/framework/T.class
        0  06-25-2018 18:35   com/
        0  06-25-2018 18:35   com/orange/
      250  06-25-2018 18:35   com/orange/T.class
        0  06-25-2018 18:35   com/banana/
      250  06-25-2018 18:35   com/banana/T.class
        0  06-25-2018 18:35   META-INF/maven/com.orange.qa/
        0  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/
     2166  06-25-2018 18:15   META-INF/maven/com.orange.qa/BUG/pom.xml
      109  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/pom.properties
        0  06-25-2018 18:35   bug/com/google/
        0  06-25-2018 18:35   bug/com/google/gson/

{code}
*Actual result:*

  Relocation->exclude didn't work as expected on unix

*Expected results* is on Windows:

com/orange/framework/T must be excluded from bug.com relocations 

 


> Relocation exclude works differently on Win and Unix platforms
> --------------------------------------------------------------
>
>                 Key: MSHADE-292
>                 URL: https://issues.apache.org/jira/browse/MSHADE-292
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>            Reporter: Artem Yak
>            Priority: Major
>         Attachments: defect.tar.gz
>
>
> Un-tar attached project.
> execute on Windows :  
> {code:java}
> mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15
> {code}
> output is: 
> {code:java}
> 0 2018-06-25 15:36    com/
> 0 2018-06-25 15:36    com/banana/
> 250 2018-06-25 15:36  com/banana/T.class
> 0 2018-06-25 15:36    com/orange/
> 0 2018-06-25 15:36    com/orange/framework/
> 270 2018-06-25 15:36  com/orange/framework/T.class
> 250 2018-06-25 15:36  com/orange/T.class
> 0 2018-06-25 15:36    META-INF/maven/com.orange.qa/
> 0 2018-06-25 15:36    META-INF/maven/com.orange.qa/BUG/
> 2166 2018-06-25 18:15 META-INF/maven/com.orange.qa/BUG/pom.xml
> 114 2018-06-25 15:36  META-INF/maven/com.orange.qa/BUG/pom.properties
> 0 2018-06-25 15:36    bug/com/
> 0 2018-06-25 15:36    bug/com/google/
> 0 2018-06-25 15:36    bug/com/google/gson/
> 0 2018-06-25 15:36    bug/com/google/gson/annotations/
> {code}
>  execute on Unix (CentOS or MacOS) : 
> {code:java}
> mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15{code}
> output is 
> {code:java}
>         0  06-25-2018 18:35   bug/com/
>         0  06-25-2018 18:35   bug/com/orange/
>         0  06-25-2018 18:35   bug/com/orange/framework/
>       278  06-25-2018 18:35   bug/com/orange/framework/T.class
>         0  06-25-2018 18:35   com/
>         0  06-25-2018 18:35   com/orange/
>       250  06-25-2018 18:35   com/orange/T.class
>         0  06-25-2018 18:35   com/banana/
>       250  06-25-2018 18:35   com/banana/T.class
>         0  06-25-2018 18:35   META-INF/maven/com.orange.qa/
>         0  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/
>      2166  06-25-2018 18:15   META-INF/maven/com.orange.qa/BUG/pom.xml
>       109  06-25-2018 18:35   META-INF/maven/com.orange.qa/BUG/pom.properties
>         0  06-25-2018 18:35   bug/com/google/
>         0  06-25-2018 18:35   bug/com/google/gson/
> {code}
> *Actual result:*
>   Relocation->exclude didn't work as expected on unix
> *Expected results* is on Windows:
> com/orange/framework/T must be excluded from bug.com relocations 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message