Skip to content
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

Aggregate third party report fails on multimodule maven that has module with cross dependencies #317

Open
nfalco79 opened this issue Apr 3, 2019 · 2 comments

Comments

@nfalco79
Copy link
Contributor

nfalco79 commented Apr 3, 2019

We are performing a release mvn release:prepare release:perform on a multimodule maven project.
Some module depends from other modules. The typical scenario is:
parent
|->model
|->client (depends from model)
|->web (depends from model)

The release plugin change the version and run a clean verify in all pom.xml after that run deploy site:deploy goals. The aggregate-add-third-party mojo run on parent project and to resolve all dependencies of children modules. It fails when one of child module depends on other child (web -> model) because aggregate-add-third-party is not able to resolve the child module with the new version since it has been never installed.

@ppalaga
Copy link
Contributor

ppalaga commented Apr 16, 2019

Thanks for the test. A fix is welcome as well.

@ppalaga
Copy link
Contributor

ppalaga commented Apr 16, 2019

@nfalco79 describes a workaround in #318 (comment) :

Change the preparationGoals of the mave-release-plugin from it default value (clean verify) to clean install so that when the release plugin run the second phase (perform) deploy site:deploy than the site generation of the parent project has jars of submodules available in the local m2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants