Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Spring stack requires unique parent pom id. #304

@BarDweller

Description

@BarDweller

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:

  1. appsody init a spring boot project from the kab repo
  2. note the parent pom coordinates from the generated project
    2b. examine the parent pom content in the local maven cache
  3. appsody init a spring boot project from the appsody repo
  4. note the parent pom coordinates from the generated project
    4.b examine the parent pom content in the local maven cache.
  5. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions