Spring Initializr Custom Instance

1k Views Asked by At

I would like to fork the Spring Initializr from GitHub and add my own nexus repo and common dependencies we use.

Forking and modifying the code is no issue. I do have a few questions: 1. How can I tell the Spring Boot CLI to use my custom initializr? 2. How can I tell Spring Tool Suite to use my custom initializr?

2

There are 2 best solutions below

4
On BEST ANSWER

In the CLI you add the --target parameter:

spring init --target http://your.service.url

In Spring Tool Suite it seems it's not possible.

0
On

In Spring Tool Suite you can add a system property to your STS.ini file to change the url the wizard uses. E.g add something like this right after -vmargs

-Dspring.initializr.json.url=http://start.spring.io

Of course... change the url to the one where your modified version the intialzr service is deployed.