How does "maven jetty: run" work?

what i learned:

  • Jetty is a Java servlet.
  • Maven is a build automation tool used primarily for Java projects.
  • Github jetty url https://github.com/eclipse/jetty.project
  • mvn jetty: run starts a web project from the pom configuration
  • mvn jetty: run are supported by maven-jetty-plugin

So next, what should I do next?

And I want to know what happened when I execute the mvn jetty: run command?

What does it send to the marina when it is used?

+4
source share
1 answer

webapp, WAR. Jetty webapp . webapp Maven , . , :

  • ${project.basedir}/src/main/webapp
  • ${project.build.outputDirectory}
  • web.xml ${project.basedir}/src/main/webapp/WEB-INF/

, . , IDE , .

webapp WAR, . , . Jetty, , : code, , , , .

https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html#jetty-run-goal

+5

Source: https://habr.com/ru/post/1662814/


All Articles