The new Eclipse MicroProfile Starter is live and it's really easy to generate a new project.
Go to https://start.microprofile.io/ and follow the steps below to generate a new project.
groupId: com.kodnito
artifactId: hello_microprofile_world
MicroProfile Version: MP 2.1
MicroProfile Server: Thorntail V2
Choose Beans Discovery Mode
In Examples for specifications section, choose what code examples you want to be generated.
And that's it, just click Download button and your new project will be downloaded.
Unzip the zip file and open the terminal, go to the directory and use one of the following command to start the application:
If you choosed Thorntail, then run the following command:
$ mvn clean package && java -jar target/hello_microprofile_world-thorntail.jar
or if you choosed the OpenLiberty, run the following command:
$ mvn clean package && java -jar target/hello_microprofile_world.jar
If you choosed another version then the following commands are used for the following servers:
Payara:
$ mvn clean package && java -jar target/hello_microprofile_world-microbundle.jar
$ mvn clean package && java -jar target/hello_microprofile_world-exec.jar
$ mvn clean package && java -jar target/hello_microprofile_world.jar
You find the test page at http://localhost:8080/index.html
That's it, have fun with your new projects.
Share this: