-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
suppressionFile not found when using parent pom #711
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
Comments
That's because the maven build will not switch current-working-dir to your nested project while running the build from your top-level pom. Configuring the suppression-file using Maven's <suppressionFile>${basedir}/dependency-check-suppression.xml</suppressionFile> |
@smuda consider looking at how checkstyle "should" be configured for a multi-module build: https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html There they use a build-tools project to house the configuration. The same could be done with dependency-check. |
@aikebah Thank you, that worked perfectly. @jeremylong Thank you, that was a really good link and I'll make sure to use that in a later project where we have multiple java projects. In this case it seems a bit overkill. |
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. |
After running into #517 I'm trying to add a suppressionFile to my maven configuration. It's a nested maven configuration that looks like this:
The configuration for the dependency-check-plugin is in server/pom.xml and looks like this:
That works nicely when running the server.pom directory.
When running the parent pom, which in turn calls the server pom, the following error is displayed:
I copied the dependency-check-suppression.xml to the parent directory and then it works. It seems to me that the plugin does not use the relative path to the pom where it's configured, but rather the directory of the first pom file.
Can anyone else confirm this? What am I doing wrong?
The text was updated successfully, but these errors were encountered: