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

"Can't find license-maven-plugin" in 1.16 if plugin isn't configured in the POM #139

Closed
digulla opened this issue Jun 6, 2018 · 2 comments

Comments

@digulla
Copy link

digulla commented Jun 6, 2018

If you try to run mvn license:aggregate-add-third-party without adding the plugin to the root / parent POM first, you get the error Can't find license-maven-plugin throws in this line:

throw new IllegalStateException("Can't find license-maven-plugin");

I see two solutions:

  1. Enhance the error message: "Please add the plugin to your POM"
  2. Put the three values in a property file (using resource filtering) and load that file from the classpath.
@ppalaga
Copy link
Contributor

ppalaga commented Jan 4, 2019

Thanks for the report. A PR with an integration test is welcome.

@ppalaga ppalaga added this to the Backlog milestone Feb 1, 2019
AndyGee added a commit to AndyGee/license-maven-plugin that referenced this issue Aug 5, 2019
Use the PluginDescriptor.
Most painful checkstyle.
@ppalaga ppalaga closed this as completed in 24c6bc5 Aug 5, 2019
ppalaga added a commit that referenced this issue Aug 5, 2019
Fix #139 - "Can't find license-maven-plugin"
AndyGee added a commit to AndyGee/license-maven-plugin that referenced this issue Jan 15, 2020
* Fix mojohaus#139 - "Can't find license-maven-plugin"

Use the PluginDescriptor.
Most painful checkstyle.
@rkraneis
Copy link

Why is this closed as completed? This issue still persists :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants