frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

Unable to execute goal install-node-and-npm

Open dudeNumber4 opened this issue 3 years ago • 1 comments

I'm trying to configure version 1.12.1 of this plugin in an existing java project. Following what's in the ReadMe about "Installing node and npm," it simply shows a chunk of XML that should go in my pom. There's no indication of... how to actually use it.

So I started trying to figure out what the maven command would be to actually execute this goal. Everything I read tells me the command should be mvn frontend-maven-plugin:install-node-and-npm

This gives me the error, No plugin found for prefix 'frontend-maven-plugin' in the current project and in the plugin groups... I read through the info page for this error, none of those conditions apply. Running the command with -X shows Resolving plugin prefix frontend-maven-plugin from [org.apache.maven.plugins, org.codehaus.mojo] so maven can't find the plugin right there in my pom. I confirmed that I'm executing the command in the same directory as my pom so it's not using some other pom.

When I try to run the goal as if it wasn't present in my pom mvn com.github.eirslett:frontend-maven-plugin:1.12.1:install-node-and-npm, it tells me it needs the param value for nodeVersion. So this command is working (but I want it to work with what's in my pom).

What is the proper command to simply execute the goal locally?

dudeNumber4 avatar Jul 07 '22 19:07 dudeNumber4

Disregard, I now understand that it executes in the phase as shown in the XML sample. My project wasn't building at this time, so it wasn't executing then either. Also, I'm new to maven.

dudeNumber4 avatar Jul 08 '22 16:07 dudeNumber4