Mic*_*iel 7 jetty maven maven-jetty-plugin
关于这个主题有很多可用的信息,但我无法在Jetty 9中使用它.我发现的最新方法是:Jetty Maven插件忽略了自定义webdefault.xml
我从maven资源库中提取了webdefault.xml.然后,我设置useFileMappedBuffer
来false
并把它放在我的项目作为内jetty-maven-plugin-webdefault.xml
.
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.0.0.M4</version>
<configuration>
<webAppConfig>
<defaultsDescriptor>src/main/resources/jetty-maven-plugin-webdefault.xml<</defaultsDescriptor>
</webAppConfig>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
当我执行时jetty:run
,我看到我的webdefault.xml被引用:
[INFO] Web defaults = src/main/resources/jetty-maven-plugin-webdefault.xml
Run Code Online (Sandbox Code Playgroud)
但我仍然在Windows中使用文件锁定问题(使用IntelliJ IDEA 11).有谁知道解决方案?
归档时间: |
|
查看次数: |
3842 次 |
最近记录: |