How to generate OpenLegacy Lowcode API with Maven
By default, the OpenLegacy Lowcode API build tool is Gradle. If you prefer to use Maven this can be achieved via the CLI with the following command:
ol generate --project <YOUR PROJECT NAME> --generator spring-java-rest --build-tool maven
This will result in a Spring Boot API project with Maven as its build tool.
You can then build it and run it with the following commands:
# Building the API project into the .m2 and the target directory
mvn clean install -DskipTests
# Building the API project in the target directory
mvn clean package -DskipTests
# Running the API as a Spring Boot project
mvn clean spring-boot:run
Note that a generated settings XML file is inside the project root directory. You can build the project using it by adding the -s
option
# Building the API project into the .m2 and the target directory
mvn -s settings.xml clean install -DskipTests
# Building the API project in the target directory
mvn -s settings.xml clean package -DskipTests
# Running the API as a Spring Boot project
mvn -s settings.xml clean spring-boot:run
Updated 6 days ago