5
我想配置一個項目的pom.xml文件。我希望它在測試階段啓動Jetty服務器。爲了做到這一點,我應該在Jetty插件中添加「daemon」元素,正如我在下面所做的那樣,但是IntelliJ以「元素守護進程不允許在這裏」警告我。你能幫我麼?是什麼原因?Maven Jetty插件守護進程元素不允許在這裏
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.11.v20150529</version>
<configuration>
<httpConnector>
<port>8083</port>
</httpConnector>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
有沒有這個錯誤的參考,我們可以upvote?有一個不合理的錯誤真的很煩人,但我不想禁用我的pom.xml的模式驗證。 – Joffrey
凹凸。我也希望看到這個固定。 –
我的解決方法是重新啓動IDE,而不是打開pom.xml ... –