Build fails since recent update of clean-webpack-plugin module
I've tried to re-build this plugin after I updated it but it fails due to a not-updated clean-webpack-plugin
installation on my local machine.
However, I cannot understand why that is the case, cause I followed the "Update Strategy" we discussed at our last dev:
- Update
dmx-platform
to latest master - Did run
rm -rf node_modules
- mvn clean install -P all -DskipTests
The platform builds fine.
However, the build process of this plugin does not seem to find the new node module:
In the plugin folder of this project I also followed the update strategy:
Note: The plugin is located where it is recommended, in /Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command
- Update to latest commit in this repo
- Run
rm -r node_modules/
- Run
mvn clean package
The following output occurs, which is related to the following change 0514d273
machine:dmx-tableview-command malt$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DMX Tableview Command 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dmx-tableview-command ---
[INFO] Deleting /Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command/target
[INFO] Deleting /Users/malt/source/dmx/dmx-platform/bundle-deploy (includes = [dmx-tableview-command*.jar], excludes = [])
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dmx-tableview-command ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dmx-tableview-command ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dmx-tableview-command ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dmx-tableview-command ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dmx-tableview-command ---
[INFO] No tests to run.
[INFO]
[INFO] --- exec-maven-plugin:1.2:exec (npm-run-build) @ dmx-tableview-command ---
> dmx-tableview-command@0.1.0 build /Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command
> ../../node_modules/.bin/webpack -p --hide-modules
/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/cli.js:231
throw err;
^
Error: clean-webpack-plugin only accepts an options object. See:
https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-optional
at new CleanWebpackPlugin (/Users/malt/source/dmx/dmx-platform/node_modules/clean-webpack-plugin/dist/clean-webpack-plugin.js:17:13)
at Object.<anonymous> (/Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command/webpack.config.js:44:5)
at Module._compile (/Users/malt/source/dmx/dmx-platform/node_modules/v8-compile-cache/v8-compile-cache.js:178:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (/Users/malt/source/dmx/dmx-platform/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/convert-argv.js:115:13)
at requireConfig (/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/convert-argv.js:117:6)
at /Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/convert-argv.js:124:17
at Array.forEach (<anonymous>)
at module.exports (/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/convert-argv.js:122:15)
at yargs.parse (/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/cli.js:228:39)
at Object.parse (/Users/malt/source/dmx/dmx-platform/node_modules/yargs/yargs.js:567:18)
at /Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/cli.js:206:8
at Object.<anonymous> (/Users/malt/source/dmx/dmx-platform/node_modules/webpack-cli/bin/cli.js:505:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/malt/source/dmx/dmx-platform/node_modules/webpack/bin/webpack.js:156:2)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/malt/.nvm/versions/node/v10.13.0/bin/node" "/Users/malt/.nvm/versions/node/v10.13.0/bin/npm" "run" "build"
npm ERR! node v10.13.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! dmx-tableview-command@0.1.0 build: `../../node_modules/.bin/webpack -p --hide-modules`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dmx-tableview-command@0.1.0 build script '../../node_modules/.bin/webpack -p --hide-modules'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the dmx-tableview-command package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ../../node_modules/.bin/webpack -p --hide-modules
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dmx-tableview-command
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dmx-tableview-command
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /Users/malt/source/dmx/dmx-platform/modules-external/dmx-tableview-command/npm-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.332 s
[INFO] Finished at: 2019-04-10T19:57:39+02:00
[INFO] Final Memory: 12M/220M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (npm-run-build) on project dmx-tableview-command: Command execution failed.: Process exited with an error: 1(Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Result is: I can't build the plugin at all right now.