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

Failed build with multi module build which contains a tests jar dependency #27

Open
khmarbaise opened this issue May 9, 2019 · 3 comments

Comments

@khmarbaise
Copy link

khmarbaise commented May 9, 2019

I faced a problem while using a test jar dependency which results in a failing of ossindex-maven-plugin like the following:

[INFO] [jenkins-event-spy] Generated /var/jenkins_home/workspace/XXXX-401@2@tmp/withMavene5eaed4f/maven-spy-20190508-144513-59315409483963051943433.log
[ERROR] Failed to execute goal on project module: Could not resolve dependencies for project de.xyz:jar:12.2.0.3-SNAPSHOT: Could not find artifact module-y:jar:tests:12.2.0.3-SNAPSHOT in nexus

I'm calling ossindex-maven-plugin like this:

mvn clean package ossindex:audit

It looks like the plugin is not correctly resolving the artifacts or not correctly being integrated into the life cycle. This build was run on JDK 11+ and Maven 3.6.1 and ossindex-maven-plugin version 3.0.4.

If you use

mvn clean deploy ossindex:audit

This issue does not occur. This is related to the installation of the artifacts during the build.

If you need more detailed information please ping me...

@ken-duck
Copy link

Whoops. This slipped under my radar. I have been traveling on business for a couple of weeks and missed your report.

I will be doing a lot of OSS Index related work this week, and will endeavour to get you a solution. Thanks!

@khmarbaise
Copy link
Author

NP take your time...

@jdillon
Copy link
Collaborator

jdillon commented May 20, 2019

You'll probably have better luck with:

mvn clean install ossindex:audit

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

No branches or pull requests

3 participants