License enforcement fails on 4.2.rc3
michael-simons opened this issue · comments
Version affected
4.2.rc3
Describe the bug
If I add dependency enforcement to 4.2.rc3 the build fails with
Execution validate of goal com.mycila:license-maven-plugin:4.2.rc3:check failed: Cannot invoke "org.apache.maven.project.MavenProject.getArtifact()" because "project" is null
How to Reproduce
Please be so kind and clone https://github.com/michael-simons/neo4j-migrations
- Run
./mvnw license:check
- Notice it works
- Run
./mvnw -Dlicense-maven-plugin.version=4.2.rc3 license:check
above exception is thrown.
Here's my config https://github.com/michael-simons/neo4j-migrations/blob/4ee8e0315f51b0a7152afa23665331fa47f79e68/pom.xml#L553-L639
Thank you.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Nothing has changed. I’d love to have some feedback. Thanks.
will take a look in a few days.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Please keep it open.
haven't forgotten about this, just haven't had time. The code was changed because maven changed the method signature. Will need to dig more into this specific issue but did want to at least comment on why it changed on be2dfa2
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Keep it open please.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thanks for re-opening this.
Can I maybe help solving this?
The problem is in this commit. If you can read @hazendaz mind to figure out what he meant, please do!
I forked the project and the first thing I noted, that the *IT
tests do not run at all… :( So MavenProjectLicensesIT
does not do anything.
The original change I did was only to use newer dependency tree as its method signature changed.
DependencyNode buildDependencyGraph( ProjectBuildingRequest buildingRequest, ArtifactFilter filter )
throws DependencyGraphBuilderException;
@michael-simons Thanks for PR to try to remediate the issue. I've approved it to run and reviewing it now...