question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

License maven plugin fails on build

See original GitHub issue

Describe the bug I’m currently working on adding support for hibernate search to the apm plugin. While doing this I noticed the license plugin throws this error while building: Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.19:update-file-header (first) on project apm-agent-parent: could not obtain the license repository: no licenses.properties found with url [file://<path-to-project>/apm-agent-java/licenses/licenses.properties] for resolver org.codehaus.mojo.license.model.LicenseRepository@626d2016 -> [Help 1]

To Reproduce Steps to reproduce the behavior:

  1. Run mvnw clean install on current master

I’m using OpenJDK 11 on Windows 10 and got the error with the Maven wrapper and also with a local Maven installation.

Expected behavior Build completes successfully and all added source files have the correct license header.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
theobisprojectcommented, Jun 25, 2019

The change works for me even on OpenJDK 11 👍

0reactions
eyalkorencommented, Jun 25, 2019

@theobisproject please try to merge #688 and see if you can build now. It may not work with OpenJDK 11, so try with 10. Let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failure when trying to install license-maven-plugin · GitHub
Build failure when trying to install license-maven-plugin - gist:2220389.
Read more >
An error while using the License Maven Plugin in a multi ...
The problem you are facing is that the maven-license-plugin by default looks in your local repository for the child artifacts. I suppose, your...
Read more >
License-Scanning silently fails when requirements are not met
The job should report licenses, or fail if there's an error. Possible fixes. Check the requirements for the org.codehaus.mojo:license-maven- ...
Read more >
POM Reference - Maven
The current core packaging values are: pom , jar , maven-plugin , ejb , war ... If not, Maven fails the build and...
Read more >
License Maven Plugin – Introduction - MojoHaus
This plugin manages the license of a maven project and its ... a list of all dependencies and their licenses for a single...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found