Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

MXNET-1302 Exclude commons-codec and commons-io from assembled JAR #14000

Merged
merged 1 commit into from
Mar 1, 2019

Conversation

jessr92
Copy link
Contributor

@jessr92 jessr92 commented Jan 27, 2019

Consumers of MXNet are exposed to the commons-codec and commons-io library versions MXNet uses internally. This change excludes those JARs from the JARs created with make scalapkg.

Description

This PR removes commons-codec and commons-io from the assembled JAR and adds both packages as dependencies in deploy.xml

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • commons-io and commons-codec remove from assembled JAR
  • commons-io and commons-codec added as dependencies to deploy.xml

Comments

My Maven knowledge is sparse so I may have missed something.

For testing:

  • The JAR no longer contains org.apache.commons classes
  • make scalapkg && make scalaunittests && make scalaintegrationtests passed on my Ubuntu 18.04 machine (JDK 8).

Originally reported in #13929

@lanking520
Copy link
Member

@frankfliu Could you please take a look

Copy link
Member

@lanking520 lanking520 left a comment

Choose a reason for hiding this comment

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

Since we have this dependency specified on parent pom file. All submodules should be able to inherit from there.

@gordon1992 could you please make corresponding changes?

@vandanavk
Copy link
Contributor

@gordon1992 could you resolve branch conflicts?

@frankfliu for review

@zachgk
Copy link
Contributor

zachgk commented Feb 5, 2019

@mxnet-label-bot update [Maven, Scala, pr-awaiting-response]

@marcoabreu marcoabreu added Maven pr-awaiting-response PR is reviewed and waiting for contributor to respond and removed Build pr-awaiting-review PR is waiting for code review labels Feb 5, 2019
@jessr92
Copy link
Contributor Author

jessr92 commented Feb 7, 2019

I shall

  • resolve the merge conflict
  • remove the unnecessary commons dependencies in submodules
    and update this pull request.

Thank you for looking at this

@jessr92
Copy link
Contributor Author

jessr92 commented Feb 10, 2019

@mxnet-label-bot update [Scala, Maven, pr-awaiting-review]

@marcoabreu marcoabreu added pr-awaiting-review PR is waiting for code review Scala and removed Scala pr-awaiting-response PR is reviewed and waiting for contributor to respond labels Feb 10, 2019
@jessr92
Copy link
Contributor Author

jessr92 commented Feb 11, 2019

@mxnet-label-bot update [Scala, Maven, pr-awaiting-response]

@marcoabreu marcoabreu added pr-awaiting-response PR is reviewed and waiting for contributor to respond and removed pr-awaiting-review PR is waiting for code review labels Feb 11, 2019
scala-package/core/pom.xml Outdated Show resolved Hide resolved
scala-package/core/pom.xml Outdated Show resolved Hide resolved
@jessr92 jessr92 reopened this Feb 19, 2019
@jessr92
Copy link
Contributor Author

jessr92 commented Feb 19, 2019

@mxnet-label-bot update [Maven, Scala, pr-awaiting-review]

@marcoabreu marcoabreu added pr-awaiting-review PR is waiting for code review and removed pr-awaiting-response PR is reviewed and waiting for contributor to respond labels Feb 19, 2019
@lanking520
Copy link
Member

Please take a look at the website crash, there seemed to be some problem with it

scala-package/pom.xml Outdated Show resolved Hide resolved
scala-package/pom.xml Outdated Show resolved Hide resolved
scala-package/core/pom.xml Outdated Show resolved Hide resolved
@jessr92 jessr92 force-pushed the master branch 2 times, most recently from 7bf77f7 to c81ac9a Compare February 23, 2019 11:47
@jessr92
Copy link
Contributor Author

jessr92 commented Feb 23, 2019

Please take a look at the website crash, there seemed to be some problem with it

Fixed. All other CR comments addressed.

Thanks for your time.

Copy link
Member

@lanking520 lanking520 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

Copy link
Contributor

@piyushghai piyushghai left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contributions :)

@jessr92
Copy link
Contributor Author

jessr92 commented Feb 28, 2019

Thanks for the approvals.

I note the failing of windows-gpu, looks like it was aborted. I'm not sure how to retry this check so I have a green tick which I assume is a requirement prior to merging. Any advice welcomed.

Thanks,
Gordon

@lanking520
Copy link
Member

@gordon1992 The path forward is to pull --rebase with master since we decided to disable the Windows test for now

@jessr92 jessr92 force-pushed the master branch 3 times, most recently from 9a34989 to 008b8d5 Compare February 28, 2019 20:41
@jessr92
Copy link
Contributor Author

jessr92 commented Feb 28, 2019

Ah yes, I see the commit disabling the Windows test. My fork is now up to date with that change.

Thanks,
Gordon

@jessr92
Copy link
Contributor Author

jessr92 commented Mar 1, 2019

@mxnet-label-bot update [Maven, Scala, pr-awaiting-merge]

@marcoabreu marcoabreu added pr-awaiting-merge Review and CI is complete. Ready to Merge and removed pr-awaiting-review PR is waiting for code review labels Mar 1, 2019
@lanking520 lanking520 merged commit c6b1fd5 into apache:master Mar 1, 2019
vdantu pushed a commit to vdantu/incubator-mxnet that referenced this pull request Mar 31, 2019
haohuanw pushed a commit to haohuanw/incubator-mxnet that referenced this pull request Jun 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Maven pr-awaiting-merge Review and CI is complete. Ready to Merge Scala
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants