Building dmx-plugin-template
Me And Daniel are trying to get started with DMX Plugin Development and ran into the following errors:
We checked out this repo and then ran mvn clean package
.
This is the output.
macbookpro-malte:dmx-plugins malt$ git clone https://git.dmx.systems/dmx-plugins/dmx-plugin-template
Cloning into 'dmx-plugin-template'...
warning: redirecting to https://git.dmx.systems/dmx-plugins/dmx-plugin-template.git/
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 144 (delta 5), reused 0 (delta 0)
Receiving objects: 100% (144/144), 17.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (38/38), done.
macbookpro-malte:dmx-plugins malt$ cd dmx-plugin-template/
macbookpro-malte:dmx-plugin-template malt$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DeepaMehta 5 Plugin Template 0.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dm5-plugin-template ---
[INFO] Deleting /Users/malt/source/dmx/bundle-deploy (includes = [dm5-plugin-template*.jar], excludes = [])
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dm5-plugin-template ---
[INFO] No tests to run.
[INFO]
[INFO] --- exec-maven-plugin:1.2:exec (npm-run-build) @ dm5-plugin-template ---
> dm5-plugin-template@0.3.0 build /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template
> ../../node_modules/.bin/webpack -p --hide-modules
sh: ../../node_modules/.bin/webpack: No such file or directory
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! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! dm5-plugin-template@0.3.0 build: `../../node_modules/.bin/webpack -p --hide-modules`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the dm5-plugin-template@0.3.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 dm5-plugin-template 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 dm5-plugin-template
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dm5-plugin-template
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-plugins/dmx-plugin-template/npm-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.546 s
[INFO] Finished at: 2018-12-21T16:34:55+01:00
[INFO] Final Memory: 12M/226M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (npm-run-build) on project dm5-plugin-template: 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
macbookpro-malte:dmx-plugin-template malt$ mvn clean package
I guess a local installation of webpack is missing, right?
So we did a npm install webpack
and tried to build the plugin again.
After adapting my the path to webpack in the package.json
I ran into the following output:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
macbookpro-malte:dmx-plugin-template malt$ vim package.json
macbookpro-malte:dmx-plugin-template malt$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DeepaMehta 5 Plugin Template 0.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dm5-plugin-template ---
[INFO] Deleting /Users/malt/source/dmx/bundle-deploy (includes = [dm5-plugin-template*.jar], excludes = [])
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dm5-plugin-template ---
[INFO] No tests to run.
[INFO]
[INFO] --- exec-maven-plugin:1.2:exec (npm-run-build) @ dm5-plugin-template ---
> dm5-plugin-template@0.3.0 build /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template
> webpack -p --hide-modules
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
...
Do you want to install 'webpack-cli' (yes/no): You need to install 'webpack-cli' to use webpack via CLI.
You can also install the CLI manually.
...
Then i did an npm install webpack-cli
and tried to build the plugin again:
macbookpro-malte:dmx-plugin-template malt$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building DeepaMehta 5 Plugin Template 0.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dm5-plugin-template ---
[INFO] Deleting /Users/malt/source/dmx/bundle-deploy (includes = [dm5-plugin-template*.jar], excludes = [])
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dm5-plugin-template ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dm5-plugin-template ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dm5-plugin-template ---
[INFO] No tests to run.
[INFO]
[INFO] --- exec-maven-plugin:1.2:exec (npm-run-build) @ dm5-plugin-template ---
> dm5-plugin-template@0.3.0 build /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template
> webpack -p --hide-modules
/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/cli.js:244
throw err;
^
Error: Cannot find module 'vue-loader'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/webpack.config.js:4:29)
at Module._compile (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/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-plugins/dmx-plugin-template/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/convert-argv.js:133:13)
at requireConfig (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/convert-argv.js:135:6)
at /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/convert-argv.js:142:17
at Array.forEach (<anonymous>)
at module.exports (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/convert-argv.js:140:15)
at yargs.parse (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/cli.js:241:39)
at Object.parse (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/yargs/yargs.js:567:18)
at /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/cli.js:219:8
at Object.<anonymous> (/Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/node_modules/webpack-cli/bin/cli.js:538: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-plugins/dmx-plugin-template/node_modules/webpack/bin/webpack.js:155:2)
at Module._compile (internal/modules/cjs/loader.js:688:30)
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! dm5-plugin-template@0.3.0 build: `webpack -p --hide-modules`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dm5-plugin-template@0.3.0 build script '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 dm5-plugin-template package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack -p --hide-modules
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dm5-plugin-template
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dm5-plugin-template
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/malt/source/dmx/dmx-plugins/dmx-plugin-template/npm-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.729 s
[INFO] Finished at: 2018-12-21T16:42:47+01:00
[INFO] Final Memory: 12M/226M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (npm-run-build) on project dm5-plugin-template: 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
macbookpro-malte:dmx-plugin-template malt$
Just wanted to note this down. We will continue trying to build a copy of the dmx-webclient
module.