This repository contains examples of project catalogs for the Spring CLI.
- Java 21
- Spring Boot 3.2.2
- Spring CLI
To use those templates is necessary to register the project-catalog.yml
to the Sprint CLI project-catalog.
To do this, run the following command:
$ spring project-catalog add examples https://github.com/valdemarjuniorr/project-catalog-examples
It will add a project catalog named examples
to the Spring CLI project-catalog list. To check if the project catalog examples
was added, run the following command:
$ spring project-catalog list
You will see the following output:
┌────────┬───────────┬───────────────────────────────────────────────────────────┬────┐
│Name │Description│URL │Tags│
├────────┼───────────┼───────────────────────────────────────────────────────────┼────┤
│examples│ │https://github.com/valdemarjuniorr/project-catalog-examples│[] │
└────────┴───────────┴───────────────────────────────────────────────────────────┴────┘
After adding those project templates, you will be able to create a new project. To do this, run the following command, for example to use web
template:
spring boot new <PROJECT_NAME> web