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.24k stars 870 forks source link

How to skip downloading & installing Node #1140

Closed TharinduDG closed 5 months ago

TharinduDG commented 6 months ago

Do you want to request a feature or report a bug? feature

What is the current behavior? I'm trying to build Apache pinot in my company's CD pipeline. Apache pinot uses frontend-maven-plugin and it tries to download and install node. But we're not allowed to download anything other than maven dependencies. Is there an option in this plugin to skip download? If so I think I can run the build process inside docker where node can be allowed.

I couldn't find anything in the docs. 🤔

andythsu commented 6 months ago

would like to know too!

andythsu commented 5 months ago

@TharinduDG Turns out there's a skip param you can probably use

https://github.com/eirslett/frontend-maven-plugin/blob/5ad126f96120c42e4f5d7856af57434485c26a66/frontend-maven-plugin/src/main/java/com/github/eirslett/maven/plugins/frontend/mojo/InstallNodeAndPnpmMojo.java#L72

something like

<plugin>
    ...
    <configuration>
        <skip>true</skip>
    </configuration>
</plugin>
TharinduDG commented 5 months ago

Thanks. :-)