2016-01-25 19 views
5

プロジェクトのpom.xmlファイルを設定しようとしています。テスト段階でJettyサーバーを起動します。これを行うには、私が以下で行ったようにJettyのプラグインに "daemon"要素を追加する必要がありますが、IntelliJは "Elementデーモンはここで許可されていません"と警告します。手伝ってくれませんか?理由は何ですか?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> 

答えて

10

実際にはIntelliJ Ideaのバグです。一部の構成プロパティが正しく認識されないことがあります。プラグインにはこのプロパティがあるので、IDEのエラーを無視する以外の方法はありません。プラグインは期待どおりに動作します。

+3

アップグレードできるこのバグのリファレンスはありますか?正当な誤りがあるのは本当に面倒ですが、私はpom.xmlのスキーマ検証を無効にしたくありません。 – Joffrey

+1

バンプ。私はこれも固定されて見てみたいと思います。 –

+0

私の回避策は、IDEを再起動し、pom.xmlを開かないことです... –

関連する問題