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

dependecy check could not analyze pom.xml for java #1270

Closed
praveensutar opened this issue May 10, 2018 · 6 comments
Closed

dependecy check could not analyze pom.xml for java #1270

praveensutar opened this issue May 10, 2018 · 6 comments
Labels

Comments

@praveensutar
Copy link

For java related projects, when build is successfully done and jar are created in target directory those are only analyzed by dependecy-check not the pom.xml separatly where all other dependecy are mentioned.

Need to provide feature like to analyze pom.xml.

Thank You in advance

@stevespringett
Copy link
Collaborator

The DependencyCheck Maven plugin analyzes poms.

https://jeremylong.github.io/DependencyCheck/dependency-check-maven/

@praveensutar
Copy link
Author

praveensutar commented May 10, 2018 via email

@stevespringett
Copy link
Collaborator

The CLI doesn’t understand poms which is why we recommend using the maven plugin for maven builds.

In its simplest form, the plugin can be executed from the command line similar to other maven plugins.

mvn org.owasp:dependency-check-maven:check

If you want to customize the execution or automate it as part of the build, the examples and the configuration link provides all necessary info.

@Ramos-dev
Copy link

I am also confused by this. when run org.owasp:dependency-check-maven working perfect,but why can not run cli in pom.xml's current directory?
why“CLI doesn’t understand poms ” ?

@stevespringett
Copy link
Collaborator

The CLI doesn't have dependencies on Maven core, so it doesn't know how to resolve Maven dependencies. This keeps the CLI lightweight and puts an emphasis on using best-practices. We've always recommended that if a Dependency-Check plugin exists for a given build system (Maven, Gradle, SBT, etc), then users are highly encouraged to use the plugin over the CLI. The results will be much more accurate.

@lock
Copy link

lock bot commented Sep 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Sep 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants