Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error building maven project due to frontent-maven-plugin

I am trying to build/complie a maven project that uses the front-end-maven plugin. However when compelling the project I get this error within IntelliJ IDEA:

Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.26:install-node-and-npm (install node and npm) on project PROJECT-NAME: The plugin com.github.eirslett:frontend-maven-plugin:0.0.26 requires Maven version 3.1.0

I had Maven 3.3.3 installed so have downgraded it too 3.1.1 however I still receive the same error.

This is the section in my POM.xml file which details the plugin:

 <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <version>0.0.26</version>

                <configuration>
                    <workingDirectory>src/web</workingDirectory>
                </configuration>

                <executions>
                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <phase>validate</phase>
                        <configuration>
                            <nodeVersion>v0.12.7</nodeVersion>
                            <npmVersion>2.11.3</npmVersion>
                        </configuration>
                    </execution>

                    <execution>
                        <id>npm install</id>
                        <goals>
                            <goal>npm</goal>
                        </goals>
                        <phase>generate-sources</phase>
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>

                    <execution>
                        <id>gulp dev build</id>
                        <goals>
                            <goal>gulp</goal>
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>dev-once</arguments>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

When running mvn clean install --debug in the terminal I get the error;

   [DEBUG] -- end configuration --
[INFO] Found proxies: []
[INFO] Installing node version v0.12.7
[INFO] Creating temporary directory /Users/folder/Development/BSD/eng-bsd-bigted-server-ice-tea/src/web/node_tmp
[INFO] Downloading Node.js from http://nodejs.org/dist/v0.12.7/node-v0.12.7-darwin-x64.tar.gz to /Users/folder/Development/BSD/eng-bsd-bigted-server-ice-tea/src/web/node_tmp/node.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
Nov 03, 2015 1:41:30 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request: No route to host
Nov 03, 2015 1:41:30 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request
like image 377
chinds Avatar asked Oct 29 '25 05:10

chinds


1 Answers

Anyone facing the issue on version 1.9.1, can try and upgrade the version 1.12.1. Which fixed the issue for me.

like image 130
Saurabh Gupta Avatar answered Oct 31 '25 19:10

Saurabh Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!