[Commented] (MSHADE-366) "Access denied" during 'minimizeJar'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Commented] (MSHADE-366) "Access denied" during 'minimizeJar'

Hudson (Jira)

    [ https://issues.apache.org/jira/browse/MSHADE-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197055#comment-17197055 ]

Melloware commented on MSHADE-366:
----------------------------------

Same here:
```
[INFO] --- maven-shade-plugin:3.2.2:shade (jakarta) @ primefaces ---
[INFO] Excluding org.json:json:jar:20180813 from the shaded jar.
[INFO] Excluding org.owasp.encoder:encoder:jar:1.2.1 from the shaded jar.
[INFO] Excluding commons-io:commons-io:jar:2.4 from the shaded jar.
[INFO] Minimizing jar org.primefaces:primefaces:jar:9.0-SNAPSHOT
[WARNING] C:\dev\primefaces\primefaces-melloware\target\classes (Access is denied)
[INFO] Minimized 1592 -> 1592 (100%)
[INFO] Attaching shaded artifact.
```

*Maven info:*
```
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T11:06:16-04:00)
Maven home: C:\Tools\apache-maven-3.6.2
Java version: 1.8.0_211, vendor: Oracle Corporation, runtime: C:\Tools\jdk1.8.0_211\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
```

> "Access denied" during 'minimizeJar'
> ------------------------------------
>
>                 Key: MSHADE-366
>                 URL: https://issues.apache.org/jira/browse/MSHADE-366
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 3.2.3
>         Environment: Windows 10 Professional, Java 8, Maven 3.6.3 (bundled in IntelliJ IDEA Ultimate 2020.1)
>            Reporter: Alexander Kriegisch
>            Priority: Major
>         Attachments: full-build.log, module-build.log
>
>
> Whenever I use Maven Shade with {{minimizeJar}} on my Windows 10 box, I see this warning during the build:
> {code:none}
> [INFO] Including net.bytebuddy:byte-buddy:jar:1.10.10 in the shaded jar.
> [INFO] Minimizing jar de.scrum-master:remove-final-agent:jar:1.0-SNAPSHOT
> [WARNING] C:\Users\alexa\Documents\java-src\ByteBuddyAspect\remove-final-parent\remove-final-agent\target\classes (Zugriff verweigert)
> {code}
> "Zugriff verweigert" is German for "access denied".
> One sample plugin configuration is:
> {code:xml}
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-shade-plugin</artifactId>
>         <version>3.2.3</version>
>         <executions>
>           <execution>
>             <phase>package</phase>
>             <goals>
>               <goal>shade</goal>
>             </goals>
>             <configuration>
>               <minimizeJar>true</minimizeJar>
>               <createDependencyReducedPom>false</createDependencyReducedPom>
>               <shadedArtifactAttached>false</shadedArtifactAttached>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
> {code}
> I removed my filters because even without them the same warning occurs. As soon as I deactivate {{minimizeJar}}, the warning is gone.



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