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

Jenkins build failed due to a missing file #969

Closed raghavendra1221 closed 3 years ago

raghavendra1221 commented 3 years ago

[DEBUG] copy ReactUI/src/main/resources/web/node_modules/cross-spawn/node_modules/.bin/semver to ReactUI/target/classes/web/node_modules/cross-spawn/node_modules/.bin/semver

I am having an issue where the plugin copies files from Installation directory to target directory and it fails because it is missing a file as shown as above. I am not sure why that file is not getting generated or missed. Is there a way we could exclude the plugin to copy for the file or folder ?

Please let me know

eirslett commented 3 years ago

I don't think this plugin is doing it, probably you're running some npm build tool that copies the files.

raghavendra1221 commented 3 years ago

I think the working directory and installation Directory here are copying the files. Here if there is a way I can specify excludes, that will solve my problem.

frontend-maven-plugin
            <version>1.6</version>
            <configuration>
                **<workingDirectory>**../ReactUI/src/main/resources/web</workingDirectory>
                **<installDirectory**>target</installDirectory>
            </configuration>
eirslett commented 3 years ago

I suggest 1) use the latest version of the plugin, 2) remove all custom configuration of installDirectory, downloadDirectory, etc etc, and just use the plugin defaults. Does that work?