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

#1037: Fix error when building from a submodule directory #1045

Merged
merged 1 commit into from
Oct 26, 2019
Merged

#1037: Fix error when building from a submodule directory #1045

merged 1 commit into from
Oct 26, 2019

Conversation

vanogrid
Copy link
Contributor

@vanogrid vanogrid commented Oct 26, 2019

Closes #1037

The license-plugin-header-style.xml in the root directory was not resolved correctly when the project was built from a submodule directory, so I ended up adding a new plugin directory-maven-plugin which does that.

Other solutions were to use the ${maven.multiModuleProjectDirectory} property, but I was not able to make it work, or to add a relative path property to each of the submodules <properties><projectRoot>${parent.basedir}</projectRoot></properties>, but this configuration would be difficult to maintain, as there are 120 submodules.

Add directory-maven-plugin to resolve the location of the
license-plugin-header-style.xml from a submodule directory
@iluwatar iluwatar merged commit 5d47488 into iluwatar:master Oct 26, 2019
@iluwatar iluwatar added this to the 1.22.0 milestone Oct 26, 2019
@iluwatar
Copy link
Owner

Many thanks for solving this problem for us @vanogrid. Maven really does not make it easy.

@vanogrid vanogrid deleted the fix-submodule-build branch October 26, 2019 18:06
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.

Error when building from submodule directories
2 participants