Errors encountered in compiling on Windows

Errors encountered in Compiling Files on Windows,The error message is as follows:


Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/s
hared/maven-artifact-transfer/0.10.0/maven-artifact-transfer-0.10.0.jar (128 kB
at 57 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-model-builder/3.0/maven-model-builder-3.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexu
s/plexus-utils/2.0.4/plexus-utils-2.0.4.jar (222 kB at 88 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-aether-provider/3.0/maven-aether-provider-3.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-settings-builder/3.0/maven-settings-builder-3.0.jar (38 kB at 15 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/aeth
er/aether-impl/1.7/aether-impl-1.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-repository-metadata/3.0/maven-repository-metadata-3.0.jar (30 kB at 11 kB/s
)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/aeth
er/aether-spi/1.7/aether-spi-1.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-aether-provider/3.0/maven-aether-provider-3.0.jar (51 kB at 16 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/aeth
er/aether-api/1.7/aether-api-1.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/aethe
r/aether-spi/1.7/aether-spi-1.7.jar (14 kB at 3.9 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-model-builder/3.0/maven-model-builder-3.0.jar (148 kB at 42 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/aeth
er/aether-util/1.7/aether-util-1.7.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plex
us/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/aethe
r/aether-impl/1.7/aether-impl-1.7.jar (106 kB at 27 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plex
us/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/aethe
r/aether-api/1.7/aether-api-1.7.jar (74 kB at 19 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
shared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.j
ar
Downloaded from central: https://repo.maven.apache.org/maven2/org/sonatype/aethe
r/aether-util/1.7/aether-util-1.7.jar (108 kB at 26 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexu
s/plexus-interpolation/1.14/plexus-interpolation-1.14.jar (61 kB at 15 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-io/common
s-io/2.5/commons-io-2.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexu
s/plexus-component-annotations/1.7.1/plexus-component-annotations-1.7.1.jar (4.3
 kB at 967 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/com
mons-codec/1.11/commons-codec-1.11.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-core/3.0/maven-core-3.0.jar (527 kB at 118 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-a
pi/1.7.5/slf4j-api-1.7.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/s
hared/maven-common-artifact-filters/3.0.1/maven-common-artifact-filters-3.0.1.ja
r (61 kB at 13 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/s
hared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar (164 kB at 33 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-ap
i/1.7.5/slf4j-api-1.7.5.jar (26 kB at 5.1 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-io/commons
-io/2.5/commons-io-2.5.jar (209 kB at 39 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/comm
ons-codec/1.11/commons-codec-1.11.jar (335 kB at 50 kB/s)
[INFO] Installing D:\20190529-deepamehta-master\modules\dmx-core\target\dmx-core
-5.0-beta-3.jar to D:\Maven\maven-resipoty\systems\dmx\dmx-core\5.0-beta-3\dmx-c
ore-5.0-beta-3.jar
[INFO] Installing D:\20190529-deepamehta-master\modules\dmx-core\pom.xml to D:\M
aven\maven-resipoty\systems\dmx\dmx-core\5.0-beta-3\dmx-core-5.0-beta-3.pom
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ dmx-core ---
[INFO] Writing OBR metadata
[INFO] Installing systems/dmx/dmx-core/5.0-beta-3/dmx-core-5.0-beta-3.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] -----------------------< systems.dmx:dmx-plugin >-----------------------
[INFO] Building DMX Plugin 5.0-beta-3                                    [4/30]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (hot-deploy) @ dmx-plugin -
--
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\20190529-deepamehta-master\modules
\dmx-plugin\target
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ dmx-plugin ---
[INFO] Installing D:\20190529-deepamehta-master\modules\dmx-plugin\pom.xml to D:
\Maven\maven-resipoty\systems\dmx\dmx-plugin\5.0-beta-3\dmx-plugin-5.0-beta-3.po
m
[INFO]
[INFO] ---------------------< systems.dmx:dmx-webservice >---------------------
[INFO] Building DMX Webservice 5.0-beta-3                                [5/30]
[INFO] -------------------------------[ bundle ]-------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dmx-webser
vice ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\20190529-deepamehta-master\modules
\dmx-webservice\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dmx-webservic
e ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dm
x-webservice ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\20190529-deepamehta-master\modules
\dmx-webservice\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dmx-w
ebservice ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dmx-webservice ---

[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ dmx-webservice --
-
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (hot-deploy) @ dmx-webservi
ce ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ dmx-webserv
ice ---
[INFO] Installing D:\20190529-deepamehta-master\modules\dmx-webservice\target\dm
x-webservice-5.0-beta-3.jar to D:\Maven\maven-resipoty\systems\dmx\dmx-webservic
e\5.0-beta-3\dmx-webservice-5.0-beta-3.jar
[INFO] Installing D:\20190529-deepamehta-master\modules\dmx-webservice\pom.xml t
o D:\Maven\maven-resipoty\systems\dmx\dmx-webservice\5.0-beta-3\dmx-webservice-5
.0-beta-3.pom
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @ dmx-webservice
---
[INFO] Installing systems/dmx/dmx-webservice/5.0-beta-3/dmx-webservice-5.0-beta-
3.jar
[INFO] Writing OBR metadata
[INFO]
[INFO] ---------------------< systems.dmx:dmx-webclient >----------------------
[INFO] Building DMX Webclient 5.0-beta-3                                 [6/30]
[INFO] -------------------------------[ bundle ]-------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo
/exec-maven-plugin/1.2/exec-maven-plugin-1.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/
exec-maven-plugin/1.2/exec-maven-plugin-1.2.pom (6.9 kB at 14 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo
/mojo-parent/24/mojo-parent-24.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/
mojo-parent/24/mojo-parent-24.pom (23 kB at 41 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo
/exec-maven-plugin/1.2/exec-maven-plugin-1.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/
exec-maven-plugin/1.2/exec-maven-plugin-1.2.jar (37 kB at 62 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ dmx-webcli
ent ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ dmx-webclient
 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ dm
x-webclient ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\20190529-deepamehta-master\modules
\dmx-webclient\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ dmx-w
ebclient ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ dmx-webclient ---
[INFO]
[INFO] --- exec-maven-plugin:1.2:exec (npm-install) @ dmx-webclient ---
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.2
/junit-3.8.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.2/
junit-3.8.2.pom (747 B at 1.7 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-plugin-api/2.0/maven-plugin-api-2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-plugin-api/2.0/maven-plugin-api-2.0.pom (601 B at 1.3 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven/2.0/maven-2.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven/2.0/maven-2.0.pom (8.8 kB at 14 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/common
s/commons-exec/1.0.1/commons-exec-1.0.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons
/commons-exec/1.0.1/commons-exec-1.0.1.pom (7.2 kB at 12 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-core/2.0.6/maven-core-2.0.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.
jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/r
eporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar (9.9 kB at 19 k
B/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.j
ar (21 kB at 37 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar (14 kB at 24 kB/s
)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plex
us/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/
maven-monitor/2.0.6/maven-monitor-2.0.6.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar (37 kB at 61 kB/s
)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plex
us/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar

Downloading from central: https://repo.maven.apache.org/maven2/org/apache/common
s/commons-exec/1.0.1/commons-exec-1.0.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-core/2.0.6/maven-core-2.0.6.jar (152 kB at 119 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/m
aven-monitor/2.0.6/maven-monitor-2.0.6.jar (10 kB at 7.9 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons
/commons-exec/1.0.1/commons-exec-1.0.1.jar (49 kB at 32 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexu
s/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar
(195 kB at 119 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexu
s/plexus-utils/2.0.5/plexus-utils-2.0.5.jar (223 kB at 134 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DMX 5.0-beta-3:
[INFO]
[INFO] DMX ................................................ SUCCESS [  0.119 s]
[INFO] DMX Module ......................................... SUCCESS [  0.248 s]
[INFO] DMX Core ........................................... SUCCESS [ 52.258 s]
[INFO] DMX Plugin ......................................... SUCCESS [  0.034 s]
[INFO] DMX Webservice ..................................... SUCCESS [  0.243 s]
[INFO] DMX Webclient ...................................... FAILURE [  5.914 s]
[INFO] DMX Base ........................................... SKIPPED
[INFO] DMX Notes .......................................... SKIPPED
[INFO] DMX Bookmarks ...................................... SKIPPED
[INFO] DMX Contacts ....................................... SKIPPED
[INFO] DMX Timestamps ..................................... SKIPPED
[INFO] DMX Events ......................................... SKIPPED
[INFO] DMX Tags ........................................... SKIPPED
[INFO] DMX Date/Time ...................................... SKIPPED
[INFO] DMX Facets ......................................... SKIPPED
[INFO] DMX Topicmaps ...................................... SKIPPED
[INFO] DMX Config ......................................... SKIPPED
[INFO] DMX Workspaces ..................................... SKIPPED
[INFO] DMX Files .......................................... SKIPPED
[INFO] DMX File Manager ................................... SKIPPED
[INFO] DMX Help ........................................... SKIPPED
[INFO] DMX Access Control ................................. SKIPPED
[INFO] DMX Geomaps ........................................ SKIPPED
[INFO] DMX Caching ........................................ SKIPPED
[INFO] DMX Storage - Neo4j ................................ SKIPPED
[INFO] DMX Test ........................................... SKIPPED
[INFO] DMX Provision ...................................... SKIPPED
[INFO] 3rd Party Bundles .................................. SKIPPED
[INFO] Felix Bundles ...................................... SKIPPED
[INFO] DMX Bundles ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  59.528 s
[INFO] Finished at: 2019-06-10T16:09:57+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (npm
-install) on project dmx-webclient: Command execution failed.: Cannot run progra
m "npm" (in directory "D:\20190529-deepamehta-master\modules\dmx-webclient"): Cr
eateProcess error=2, 系统找不到指定的文件。 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :dmx-webclient

What is the reason?Thanks !

QQ%E6%88%AA%E5%9B%BE20190610161349

For building its frontend part DMX depends on the Node.js ecosystem. You need to install Node.js.

I’ve updated the README of the plugin starter project accordingly:

Thank you for your question!

Thank you for your answer. I’ll try again.

I’ve encountered the same error when trying to build DMX from source on Windows 10 despite having NodeJS installed.

Here is what worked for me. I had to adjust the value of <executable> from npm to npm.cmd in the pom.xml file of the dmx-webclient module (seee Line 54 + Line 65).

See:

This is a bug in the maven-exec-plugin (<1.6) and as the link suggests, was fixed in the 1.6. release.