这工作得很好:如何在maven中使用jetty 9插件?
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version>
<configuration>
<webApp>
<contextPath>/${project.artifactId}</contextPath>
</webApp>
<stopKey>STOP</stopKey>
<stopPort>9999</stopPort>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>
但我需要使用的Servlet 3.1,所以我需要码头9.但在Maven仓库中我找不到它。我如何获得它?我使用IntelliJ作为IDE。
谢谢,但这不是插件?我希望能够在IntelliJ中运行jetty,添加此依赖不会有帮助。 – 2014-09-28 03:30:32
我刚刚修改了我的上述帖子。不要将它作为依赖项添加,只需用它替换当前的插件定义(更改groupId和version)。如果它没有帮助,你能否详细说明一下你在这方面使用IntelliJ的准确程度? – 2014-09-28 06:11:14
你好,它没有。在IntelliJ的右侧,我看到了maven的可用生命周期和插件。当我使用我有问题时,有多个码头选项可用,如运行,运行战等。有了这个没有什么.. – 2014-09-28 07:34:06