Skip to content
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

Fixed maven plugin dependency on plexus-resources #213

Merged
merged 2 commits into from
Feb 27, 2018

Conversation

lutovich
Copy link
Contributor

POMs for publishing to maven central are generated using ./gradlew generatePomFileForPluginMavenPublication command. Generated POMs include compile dependencies from gradle build scripts with <scope>compile</scope>. Dependency org.codehaus.plexus:plexus-resources:1.0.1 was declared as compile-only in the gradle build script. This made POM generation skip it. So published plugin did not specify all needed dependencies in it's POM, which resulted in NoClassDefFoundError errors.

This PR fixes the problem by declaring plexus-resources dependency with compile scope. Generated POM then contains it as a correct scope-compile dependency.

Fixes #212

POMs for publishing to maven central are generated using
`./gradlew generatePomFileForPluginMavenPublication` command. Generated
POMs include compile dependencies from gradle build scripts with
`<scope>compile</scope>`. Dependency `org.codehaus.plexus:plexus-resources:1.0.1`
was declared as compile-only in the gradle build script. This made POM
generation skip it. So published plugin did not specify all needed
dependencies in it's POM, which resulted in `NoClassDefFoundError`
errors.

This commit fixes the problem by declaring `plexus-resources` dependency
with compile scope. Generated POM then contains it as a correct
scope-compile dependency.
@nedtwigg nedtwigg merged commit f7f6ce3 into diffplug:master Feb 27, 2018
@lutovich lutovich deleted the maven-plexus-resources branch February 27, 2018 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

maven-plugin BETA3 broken: missing ResourceManager class
2 participants