-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Fix dependency analyze warnings #8128
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
Merged
gianm
merged 14 commits into
apache:master
from
ccaominh:fix-maven-dependency-analyze-warnings
Jul 26, 2019
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fbb214b
Fix dependency analyze warnings
ccaominh ba702e4
Fix licenses and dependencies
ccaominh 9c9d1ad
Fix licenses and dependencies again
ccaominh 2706f64
Fix integration test dependency
ccaominh 02d74d2
Address review comments
ccaominh b51687b
Fix unit test dependencies
ccaominh 7fb4f65
Fix integration test dependency
ccaominh 712e9bb
Fix integration test dependency again
ccaominh 020692e
Fix integration test dependency third time
ccaominh b43789e
Fix integration test dependency fourth time
ccaominh 3c45c26
Merge remote-tracking branch 'upstream/master' into fix-maven-depende…
ccaominh 9601f34
Merge remote-tracking branch 'upstream/master' into fix-maven-depende…
ccaominh 0d01951
Fix compile error
ccaominh d9e17c5
Fix assert package
ccaominh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,34 @@ matrix: | |
| # Strict compilation requires more than 2 GB | ||
| script: MAVEN_OPTS='-Xmx3000m' mvn clean -Pstrict -pl '!benchmarks' compile test-compile spotbugs:check -B --fail-at-end | ||
|
|
||
| # packaging check | ||
| # analyze dependencies | ||
| - env: | ||
| - NAME="analyze dependencies" | ||
| install: MAVEN_OPTS='-Xmx3000m' mvn install -q -ff -DskipTests -B | ||
| script: MAVEN_OPTS='-Xmx3000m' mvn dependency:analyze -DoutputXML=true -DignoreNonCompile=true -DfailOnWarning=true | ||
| after_failure: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome - thanks. |
||
| - | | ||
| cat << EOF | ||
|
|
||
| The dependency analysis has found a dependency that is either: | ||
|
|
||
| 1) Used and undeclared: These are available as a transitive dependency but should be explicitly | ||
| added to the POM to ensure the dependency version. The XML to add the dependencies to the POM is | ||
| shown above. | ||
|
|
||
| 2) Unused and declared: These are not needed and removing them from the POM will speed up the build | ||
| and reduce the artifact size. | ||
|
|
||
| If there are false positive dependency analysis warnings, they can be suppressed: | ||
| https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html#usedDependencies | ||
| https://maven.apache.org/plugins/maven-dependency-plugin/examples/exclude-dependencies-from-dependency-analysis.html | ||
|
|
||
| For more information, refer to: | ||
| https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html | ||
|
|
||
| EOF | ||
|
|
||
| # packaging check | ||
| - env: | ||
| - NAME="packaging check" | ||
| before_install: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.