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

Fix missing version in extension #442

Merged
merged 3 commits into from
Jan 8, 2019

Conversation

cescoffier
Copy link
Member

Issue reported in #441.
When the bom is present the version is not set in the pom.xml file.

@cescoffier cescoffier added this to the 0.5.0 milestone Jan 7, 2019
@@ -91,7 +92,7 @@ public static boolean addExtensions(Model model, List<String> extensions, Log lo
if (!MojoUtils.hasDependency(model, optional.get().getGroupId(), optional.get().getArtifactId())) {
log.info("Adding extension " + optional.get().toCoordinates());

if (containsBOM(model)) {
if (containsBOM(model) && optional.get().getGroupId().startsWith(CreateProjectMojo.PLUGIN_GROUPID)) {
Copy link
Member

Choose a reason for hiding this comment

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

We can't parse the BOM somehow and check if the dependency is defined in the BOM?

@cescoffier
Copy link
Member Author

cescoffier commented Jan 7, 2019 via email

@cescoffier
Copy link
Member Author

cescoffier commented Jan 7, 2019 via email

@cescoffier
Copy link
Member Author

cescoffier commented Jan 7, 2019 via email

@cescoffier
Copy link
Member Author

@gsmet I've updated the PR to resolve the dependencies from the BOM and check whether the given extension is defined in the bom file.

@gsmet
Copy link
Member

gsmet commented Jan 8, 2019

Looks good, thanks, merging!

@gsmet gsmet merged commit 6c6fe25 into master Jan 8, 2019
@cescoffier cescoffier deleted the features/fix-missing-version-in-generated-project branch January 14, 2019 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants