Uploaded image for project: 'Maven Shade Plugin'
  1. Maven Shade Plugin
  2. MSHADE-366

The warning "Access denied" during 'minimizeJar' is always printed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.3
    • 3.4.1
    • None
    • Windows 10 Professional, Java 8, Maven 3.6.3 (bundled in IntelliJ IDEA Ultimate 2020.1)

    Description

      Whenever I use Maven Shade with minimizeJar on my Windows 10 box, I see this warning during the build:

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

      "Zugriff verweigert" is German for "access denied".

      One sample plugin configuration is:

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

      I removed my filters because even without them the same warning occurs. As soon as I deactivate minimizeJar, the warning is gone.

      Attachments

        1. module-build.log
          3 kB
          Alexander Kriegisch
        2. full-build.log
          18 kB
          Alexander Kriegisch

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              kriegaex Alexander Kriegisch
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: