Java – NetBeans: handle the main artifacts of the project through Maven shade plugin
•
Java
I'm using Maven shade plugin to build my project, and NetBeans 8.0 is complaining about the following warnings:
The main artifacts of the project are 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 to solve this problem? What can break?
Solution
Usually, this is a problem in the project
Although the jar files in the local repo contain classes from its own dependencies, the Src / main / Java folder does not contain them Confusion arises when the Java engine attempts to recompile changes made locally in the editor
There is no way to "fix" it It is placed there, and the duplicate error submission editor displays compilation errors, where there are no errors I think one problem is to make the user warning disappear
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码