-
Notifications
You must be signed in to change notification settings - Fork 234
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 check issue #258
Comments
Thanks for reporting. 👍 The issue should be fixed now. |
Thanks! 👍 Feel free to close issue |
Hi @murphd40 FYI, v3.7 has been released with the fixed pom. Thanks to @PascalSchumacher for the fix. Kr |
I have tried the dependency check with lib v3.7 and unfortunately the problem still persists:
Here is a picture of the POM as I see it: |
Strange, may be a UTF-8 BOM. I'll check and get back to you asap. Anyway, I should have asked you to test with the snapshot version first. |
We are using dependency-check-gradle plugin |
I do not know the dependency-check-gradle plugin, but I doubt that it uses the pom in the jar. Please check/upload the random beans poms in the local gradle repo (usually |
The failures occur on our Jenkins pipeline so it is not a local issue. The error log suggests it's a pom problem:
The failure is only occurring for this dependency. Is it common practise to include license / copyright in pom files? I can't see it in any of my other dependencies |
The license is already mentioned in the pom file (licenses tag)
This is what I did. The license is already mentioned in the pom.xml file. So the header has no added value. This was added automatically by my IDE in the early stage of the project. Can you try with 3.8.0-SNAPSHOT ? |
Sure. Where can I find the snapshot version? |
The Apache foundation requires that projects add the license header to every source file so all apache projects should have the header in their pom. E.g.: https://github.com/apache/commons-lang/blob/master/pom.xml, https://github.com/apache/logging-log4j2/blob/master/log4j-core/pom.xml https://github.com/apache/camel/blob/master/pom.xml ...
|
Apache projects add the license header in xml files, but they do not add a If this does not help, let's get back to the issue. I checked with an hex editor the pom.xml and there is no suspicious character before the declaration. The |
I think you have to add the maven snapshot repository: https://oss.sonatype.org/content/repositories/snapshots/ @benas Right? |
Yes, more details in the wiki here: https://github.com/benas/random-beans/wiki/Getting-Started#maven-usage |
I think I have found the problem. It looks like the POM of one of the dependencies of random-beans-randomizers is causing the issue:
I had to remove the Sorry it took so long to discover this |
Your screenshot was about the core module, so I focused on trying to find a problem with the pom of the core module.. not the randomizers module. Anyway, thanks for the investigation. I see the pom of this artifact and indeed there is no xml decalration: https://search.maven.org/#artifactdetails%7Cdk.brics.automaton%7Cautomaton%7C1.11-8%7Cjar May be open a bug on their issue tracker? |
Yeah I didn't consider that the error might be in the randomizers module - sorry. I opened an issue for this library but there is very little activity on the repository so I'm not confident that it will be addressed any time soon. |
This lib is causing our build pipeline to fail a dependency check:
I believe the reason is that the MIT license is included in the POM file
The text was updated successfully, but these errors were encountered: