Skip to content

Fix dependency analyze warnings#8128

Merged
gianm merged 14 commits intoapache:masterfrom
ccaominh:fix-maven-dependency-analyze-warnings
Jul 26, 2019
Merged

Fix dependency analyze warnings#8128
gianm merged 14 commits intoapache:masterfrom
ccaominh:fix-maven-dependency-analyze-warnings

Conversation

@ccaominh
Copy link
Copy Markdown
Contributor

Description

Update the maven dependency plugin to the latest version and fix all warnings for unused declared and used undeclared dependencies in the compile scope (command: mvn dependency:analyze -DoutputXML=true -DignoreNonCompile=true -DfailOnWarning=true). Added new travis job to add the check to CI. Also fixed some source code files to use the correct packages for their imports.


This PR has:

  • been self-reviewed.

ccaominh added 4 commits July 22, 2019 13:38
Update the maven dependency plugin to the latest version and fix all
warnings for unused declared and used undeclared dependencies in the
compile scope. Added new travis job to add the check to CI. Also fixed
some source code files to use the correct packages for their imports.
@ccaominh
Copy link
Copy Markdown
Contributor Author

Seeing flaky OutOfMemoryError in BufferHashGrouperTest (same as #8134)

Comment thread core/pom.xml Outdated
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>provided</scope>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to explicitly specify the provided deps? (I'm thinking they won't be packaged anyway)

Copy link
Copy Markdown
Contributor Author

@ccaominh ccaominh Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency:analyze goal (via the outputXML property) suggested the provided scope.

Comment thread licenses.yaml Outdated
Comment thread licenses.yaml Outdated
Comment thread pom.xml Outdated
Comment thread .travis.yml
Copy link
Copy Markdown
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after CI passes.

Comment thread .travis.yml
- 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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - thanks.

@ccaominh
Copy link
Copy Markdown
Contributor Author

ccaominh commented Jul 24, 2019

The SS_SHOULD_BE_STATIC failures for the "strict compilation" job are the same as #8135.

@gianm gianm added this to the 0.16.0 milestone Jul 26, 2019
@gianm gianm merged commit 5dd0d8e into apache:master Jul 26, 2019
@ccaominh ccaominh deleted the fix-maven-dependency-analyze-warnings branch July 26, 2019 17:50
ccaominh added a commit to ccaominh/druid that referenced this pull request Jul 29, 2019
fjy pushed a commit that referenced this pull request Jul 29, 2019
@ccaominh ccaominh mentioned this pull request Aug 2, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants