Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Jetty plugin daemon element not allowed here

Tags:

I am trying to configure a project's pom.xml file. I want it to start Jetty server in testing phase. In order to do it I should add "daemon" element to Jetty plugin as I did below, but IntelliJ warns me with "Element daemon is not allowed here." Can you please 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>