## Install Apache Maven and jetty
## Create war
mkdir test
cd test
mkdir jettyapp
cd C:\test\jettyapp\
mvn archetype:generate -DgroupId=com.george.test -DartifactId=jetty-app -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
cd jetty-app
mvn package
cd target
C:\test\jettyapp\jetty-app\target>cp jetty-app.war C:\java\jetty-distribution-9.4.8.v20171121\webapps\
## Start jetty server
C:\java\jetty-distribution-9.4.8.v20171121>java -jar start.jar
## Navigate to http://localhost:8080/jetty-app/
## Reference: http://www.baeldung.com/deploy-to-jetty
Niciun comentariu:
Trimiteți un comentariu