Netbeans: project's main artifact is processed through maven-shade-plugin

java, maven, maven-shade-plugin, netbeans

Solution

I found a "fix" by following the instructions over in Apache's Maven Docs

I added the following to my pom in the shade plugin section.

    <configuration>
      <shadedArtifactAttached>true</shadedArtifactAttached>
      <shadedClassifierName>launcher</shadedClassifierName> <!-- Can be any name that makes sense -->
    </configuration>

I now have 2 artifacts but it works for my needs.

Problem

I am building my project with `maven-shade-plugin` and Netbeans 8.0 is complaining with the following warning: Project's main artifact is processed through maven-shade-plugin When the final artifact jar contains classes not originating in current project, NetBeans internal compiler cannot use the sources of the project for compilation. Then changes done in project's source code only appears in depending projects when project is recompiled. Also applies to features like Refactoring which will not be able to find usages in depending projects. How can I fix this? What can it break?

Original source

Related problems