-
Notifications
You must be signed in to change notification settings - Fork 29
Spring stack requires unique parent pom id. #304
Description
The Spring Boot Stack is mistakenly sharing it's parent pom id with the Appsody stack.
Maven artifacts are expected to have unique coordinates (artifactid/group/version) for any given content. This stack is violating that expectation as the parent pom has the same coordinates as the appsody stack, but has different content.
This means that if the Appsody and Kabanero Spring Boot Stacks are used on the same system, there is potential for the installed parent pom to be overwritten with each others content, actual behavior is undefined, and errors will be expected.
To Reproduce
Steps to reproduce the behavior:
- appsody init a spring boot project from the kab repo
- note the parent pom coordinates from the generated project
2b. examine the parent pom content in the local maven cache - appsody init a spring boot project from the appsody repo
- note the parent pom coordinates from the generated project
4.b examine the parent pom content in the local maven cache. - notice that if steps 2 & 4 gave the same coordinates, that different content cannot exist in the cache at the same location, and which ever parent pom is there is now only correct for one of the projects.
Expected behavior
Parent poms should have unique id's to prevent the clash.
Actual behaviour
Parent pom has same id causing the clash.
Environment Details (please complete the following information):
- OS: doesn't matter
- Browser: irrelevant
- Version: All kab/appsody spring boot stacks (with the exception of the potentially unshipped kab/icpa stacks at 0.3.23)
If applicable please specify:
- CLI version: n/a
- Collection you are using: java-spring-boot2
Additional context
Stack 0.3.23 added -snowdrop to make the parent pom unique, but the implications of doing so were not containable within the timeframe for the 0.6.0 release. This defect is to track the appropriate resolution of those issues
.
This Issue should be targetted at 0.7.0