2016-05-28 6 views
1

の実行に失敗しましたこれは私のpom.xmlです:フロントエンドMavenプラグインは、我々はフロントエンドのMavenプラグイン を使用する我々のプロジェクトでは、目標

 <plugin> 
      <groupId>com.github.eirslett</groupId> 
      <artifactId>frontend-maven-plugin</artifactId> 
      <version>1.0</version> 
      <configuration> 
       <workingDirectory>src/main/webapp/ui</workingDirectory> 
       <installDirectory>src/main/webapp/ui/node_modules</installDirectory> 
      </configuration> 
      <executions> 
       <execution> 
        <!--Needed To run Grunt Tasks--> 
        <id>install node and npm</id> 
        <goals> 
         <goal>install-node-and-npm</goal> 
        </goals> 
        <configuration> 
         <nodeVersion>v5.3.0</nodeVersion> 
         <npmVersion>3.3.12</npmVersion> 
        </configuration> 
       </execution> 
       <execution> 
        <id>grunt build</id> 
        <goals> 
         <goal>grunt</goal> 
        </goals> 
       </execution> 

      </executions> 
     </plugin> 

私はこのエラーを得たプロジェクトクリーンインストールする場合:

led to execute goal com.github.eirslett:frontend-maven-plugin:1.0:install-node-and-npm (install node and npm) on project web: The plugin com.github.eirslett:frontend-maven-plugin:1.0 requires Maven version 3.1.0 -> [Help 1] 

私のMavenのバージョンも3.3.3です。バージョン3.1.0で試してみましたが、同じエラーが発生しました。そのため、settings.xmlにプロキシを使用しましたが、同じエラーが発生しました。

+0

どのようにmavenコマンドを実行しますか? IDEの中から?この場合、IDEはbuild-inを使用することがあります。これは、たとえばnetbeansの場合です。 –

+0

@MikhailChibelああ、ありがとう、私はそれを得た – Moolerian

答えて

3

私はそれを解決しました。私のIDEにはバンドルされているので、私はちょうどそれを使って私に伝えます!

enter image description here

0

Netbeansのとジェンキンスプラグインを構築するとき、私は同じ問題を抱えていました。 Netbeansは、Mavenのバンドル版も使用しています。 Tools-Options-Java-Mavenに行き、 "Maven Home"の下で別のバージョンのMavenを選択します。

バンドル版は3.0.5です。

Netbeans Options