-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"dependency-reduced-pom.xml" is generated in the root of the project instead of "/target" #555
Comments
dependency-reduced-pom.xml
is generated in the root of the project instead of /target
…ced pom in the project build directory Related issue: logfellow#555
Hmmm.. storing the reduced pom other than in the project root is not a good idea. As per the plugin documentation:
And indeed, the checkstyle plugin that currently comes after the shade plugin is now unable to find the rules file located a Probably better to keep things as they are atm (reduced pom in the project root). Maybe we could just configure the clean plugin to remove this file as well... |
+1 to configuring the clean plugin |
…ocation Related issue: logfellow#555
The Maven Shade plugin is configured to produce a dependency reduced POM where dependencies to shaded artefacts are removed. This reduced POM is created in the root of the project structure instead of in the /target directory where build artefacts usually go. In general it is "bad practice" for the build to modify files outside of the build directory...
Proposition is to configure the shade plugin to save the reduced pom in the project build directory.
Note: as it is atm, the reduced pom won't be removed by a
mvn clean
...The text was updated successfully, but these errors were encountered: