Sunday, May 21, 2023

Ultimate Guide: a Jakarta EE HelloWorld App with Payara Server & Maven! 🔥


Create a new Maven project:
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.example -DartifactId=hello-maven-project

Navigate to the project directory:
cd hello-maven-project

Open the pom.xml file in a text editor and add the following dependencies inside the <dependencies> section:
<dependency>
    <groupId>jakarta.platform</groupId>
    <artifactId>jakarta.jakartaee-api</artifactId>
    <version>8.0.0</version>
    <scope>provided</scope>
</dependency>

No comments:

Post a Comment