Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/withlonger/article/details/81041338
problem:
My project name is system-web, mvn: the jetty by the start command path http: / can not access the home page 8080 / system-web: // localhost.
My solution:
pom inside the plugin no configuration path, with a run mvn pom that directory in the file system-web: jetty, jetty found path is available starting src / main / webapp. So access path is http: // localhost: 8080 / this on it. If you resolve your problem, please let me know praise.
<plugins>
<!--配置Jetty插件-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.11.v20180605</version>
<configuration>
<httpConnector>
<port>8080</port><!-- 端口号,非必填 -->
</httpConnector>
</configuration>
</plugin>
</plugins>