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

Add a starter to an existing project #9

Open
cmoulliard opened this issue Jun 15, 2017 · 1 comment
Open

Add a starter to an existing project #9

cmoulliard opened this issue Jun 15, 2017 · 1 comment

Comments

@cmoulliard
Copy link
Collaborator

The command spring-boot-new-project allows to create a new project but not to add to an existing project starters.
That could be interesting to check if start.spring.io offers this opportunity or if we should find our own way to add such starters/artifacts and import pom file within the dependenciesManagement section

@cmoulliard cmoulliard assigned cmoulliard and unassigned cmoulliard Jun 15, 2017
@sebastienblanc
Copy link
Contributor

Not sure how start.spring.io could help on this, I think this could be done simply with the DependencyFacet. We retrieve the list of deps from start.spring.io (or the cached one) and for each dep/starter selected we check if there is an entry in the bom section as well, like :

  "boms": {
 ...
       "keycloak": {
            "repositories": [],
            "groupId": "org.keycloak.bom",
            "artifactId": "keycloak-adapter-bom",
            "version": "3.1.0.Final"
        }
...
 }
...
"keycloak": {
            "bom": "keycloak",
            "groupId": "org.keycloak",
            "scope": "compile",
            "artifactId": "keycloak-spring-boot-starter"
        },
...

bom entry can then be added using dependencyFacet.addManagedDependency()

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

No branches or pull requests

2 participants