执行目标com.github.eirslett失败:front -maven-plugin:0.0.22:install



在尝试构建项目时,我得到以下错误:

Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.22:install-node-and-npm (install node and npm) on project ProjectName: Could not download Node.js from: http://nodejs.org/dist/v0.10.40/x64/node.exe: Got error code 503 from the server.

这是我的pom.xml实现的com.github.eirslett:frontend-maven-plugin.
一切似乎都很好,没有编译错误,但是在尝试构建时,上面的错误出现了。

<?xml version="1.0" encoding="UTF-8"?>
<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>0.0.22</version>
<executions>
<execution>
<id>install node and npm</id>
<phase>initialize</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v0.10.40</nodeVersion>
<npmVersion>2.5.1</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<phase>initialize</phase>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>grunt build</id>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>build --no-color</arguments>
</configuration>
</execution>
</executions>
</plugin>

我想你是在代理服务器后面使用它的。

此版本插件于2015年2月发布。有一个与此问题相关的报告问题。

<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>0.0.22</version>

答案在这个问题中:

设置为最新发布版本的front -maven-plugin

最新更新