Failed to enable Maven Jetty plugin daemon

I am trying to customize a project pom.xml file. I want it to start the Jetty server in the testing phase. To do this, I have to add the "daemon" element to the Jetty plugin, as I did below, but IntelliJ warns me: "The element daemon is not allowed here." could you help me? What is the reason?

<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> 
+5
source share
1 answer

This is actually an IntelliJ Idea error. It sometimes does not recognize some configuration properties correctly. The plugin has this property, so you have no other option but to simply ignore the error in the IDE. The plugin will work as expected.

+10
source

Source: https://habr.com/ru/post/1241430/


All Articles