eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.22k stars 868 forks source link

The plugin always uses node version 6.3.1 #962

Closed vnb-dev closed 3 years ago

vnb-dev commented 3 years ago

Hi,

We are using the frontend maven plugin for building our project. Until now, we have not specified anywhere what node version to be used by the plugin. It seems that it always loads version 6.3.1 but now we need to change that due to dependant libraries limitations.

We tried adding the following configurations in the pom.xml: `

            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <version>1.11.3</version>
            <executions>
                <execution>
                    <goals>
                        <goal>install-node-and-npm</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <nodeVersion>v12.4.0</nodeVersion>
            </configuration>
        </plugin>`

Even after making those changes the frontend maven plugin still tries to use node version 6.3.1: [INFO] --- frontend-maven-plugin:0.0.25:install-node-and-npm (install-node-and-npm) @ a-db --- [INFO] Node v6.3.1 is already installed. [INFO] Installing npm version 3.10.3

Please advise us on how to fix that issue.

eirslett commented 3 years ago

Maybe you have a parent pom that sets the version? Try moving the block inside the , that might also help?

vnb-dev commented 3 years ago

It was defined in the parent pom of the parent pom. Thanks a lot for the guidance!