Skip to content

IVY-1526 Use parent pom's license (if any) if the child pom doesn't explicitly have its own#7

Closed
jaikiran wants to merge 1 commit intoapache:masterfrom
jaikiran:master
Closed

IVY-1526 Use parent pom's license (if any) if the child pom doesn't explicitly have its own#7
jaikiran wants to merge 1 commit intoapache:masterfrom
jaikiran:master

Conversation

@jaikiran
Copy link
Member

The commit here fixes the issue reported in https://issues.apache.org/jira/browse/IVY-1526.

Maven, natively, uses the parent pom's license if the child project doesn't specify its own licenses in the pom.xml [1]. The commit here does a change which behaves similarly when Ivy is resolving a Maven dependency - the parent's licenses are applied on the module descriptor if the module itself doesn't specify its licenses.

The commit also includes a couple of new tests to verify this change.

[1] http://www.mail-archive.com/users%40maven.apache.org/msg125044.html - Trying this against a sample parent/child Maven projects does show that the parent pom's license is used in the absence of any licenses in the child project.

@benmccann
Copy link

Awesome. Thank you so much for this fix

@benmccann
Copy link

Just a reminder to please review this pull request. Thanks!

@jsuereth
Copy link

FYI - We ran this on sbt/ivy and it looks great! I backported to Ivy 2.3 and it'll be available to sbt users shortly. Great work on teh fix! Also, nice catch on the test suite fix.

@benmccann
Copy link

Ping. Please review! :-)

@jaikiran
Copy link
Member Author

@benmccann I haven't heard any inputs on the mailing list nor here, from the Ivy dev team. Not sure how active the project is.

@hibnico
Copy link
Contributor

hibnico commented Aug 30, 2015

Merged. Thank you for the pull request. Sorry for the delay.

@benmccann
Copy link

Thanks!!

@jaikiran
Copy link
Member Author

Thanks @nlalevee for merging this. Glad to see the contribution being accepted. Will send out PRs for other issues that I have started looking into.

@jaikiran jaikiran closed this Aug 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants