2016-02-25 67 views
0

它的posibble只需執行gulp,grunt,npm,bower任務,無需安裝節點和npm通過插件使用系統中安裝的節點和npm?maven-frontend-plugin使用系統節點

<build> 
    <plugins> 
     <plugin> 
      <groupId>com.github.eirslett</groupId> 
      <artifactId>frontend-maven-plugin</artifactId> 
      <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> 
      <version>@[email protected]</version> 

      <executions> 

       <!-- <execution> 
        <id>install node and npm</id> 
        <goals> 
         <goal>install-node-and-npm</goal> 
        </goals> 
        <configuration> 
         <nodeVersion>v0.12.2</nodeVersion> 
         <npmVersion>2.7.6</npmVersion> 
        </configuration> 
       </execution>--> 

       <execution> 
        <id>grunt build</id> 
        <goals> 
         <goal>grunt</goal> 
        </goals> 
        <configuration> 
         <arguments>--no-color</arguments> 
        </configuration> 
       </execution> 

      </executions> 
     </plugin> 
    </plugins> 

回答

0

看起來不像它,根據筆者對這一問題的意見:

https://github.com/eirslett/frontend-maven-plugin/issues/277

Maven的EXEC-插件可能有你需要的東西。

+0

從如何提出問題:「鼓勵與外部資源的鏈接,但請在鏈接的周圍添加上下文,以便您的同行用戶瞭解它是什麼以及爲什麼在那裏。始終引用最重要的部分鏈接,以防目標網站無法訪問或永久離線。「 – alexi2