2016-08-22 1 views
0

のMaven +にNPMMavenのは、私がpackage.jsonの依存関係をインストールするプラグインを以下しているのexec-mavenの-プラグインセット登録およびプロキシ

をインストールするNPM、私はプラグインを以下にnpm config set registrynpm config set proxyコマンドを実行することができます方法はありますか?

<plugin> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>exec-maven-plugin</artifactId> 
      <executions> 
       <execution> 
        <id>exec-npm-install</id> 
        <phase>generate-sources</phase> 

        <goals> 
        <goal>exec</goal> 
        </goals> 

        <configuration> 
        <executable>npm</executable> 
        <arguments> 
         <argument>install</argument> 
        </arguments> 
        <workingDirectory>${basedir}/src/main/webapp</workingDirectory> 
        </configuration> 

       </execution> 
      </executions> 
     </plugin> 
+0

は、[frontend-を見てみましょうmaven-plugin](https://github.com/eirslett/frontend-maven-plugin/) – khmarbaise

答えて

0

は、プロジェクトのルートに.nprmcファイルを介して、それを成し遂げることができた

は、ファイルを作成し、

レジストリのようなエントリを持っている= プロキシ=

関連する問題