这工作正常:
<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,所以我需要jetty 9。但是我在maven存储库中找不到它。我怎样才能获得它?我使用 IntelliJ 作为 IDE。
最佳答案
该项目已移至 Eclipse 基金会。现在它有不同的groupId:
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.3.v20140905</version>
...
</plugin>
关于java - 如何在maven中使用jetty 9插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26075131/