Hi,

 I am having constant troubles building DSpace 5/6 with -Dmirage2.on=true

maven gives me this output:

[INFO] Found NPM version 1.4.23
[INFO] ------ (Mirage2) com.github.eirslett:frontend-maven-plugin:0.0.23:npm
[INFO] Running 'npm install --color=false' in
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2
[ERROR] npm WARN package.json Mirage2@0.1.1 No description
[ERROR] npm WARN package.json Mirage2@0.1.1 No repository field.
[ERROR] npm WARN package.json Mirage2@0.1.1 No README data
[INFO]
[INFO] > Mirage2@0.1.1 postinstall
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2
[INFO] > bower install
[INFO]
[ERROR]
[ERROR]
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/tough-cookie/node_modules/ip-regex/index.js:3
[ERROR] const v4 =
'(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\.(?:25[0-
[ERROR] ^^^^^
[ERROR] bower                            error Use of const in strict mode.
[ERROR]
[ERROR] Stack trace:
[ERROR] SyntaxError: Use of const in strict mode.
[ERROR]     at Module._compile (module.js:439:25)
[ERROR]     at Object.Module._extensions..js (module.js:474:10)
[ERROR]     at Module.load (module.js:356:32)
[ERROR]     at Function.Module._load (module.js:312:12)
[ERROR]     at Module.require (module.js:364:17)
[ERROR]     at require (module.js:380:17)
[ERROR]     at Object.<anonymous>
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/bower-registry-client/node_modules/request/node_modules/tough-cookie/lib/cookie.js:34:15)
[ERROR]     at Module._compile (module.js:456:26)
[ERROR]     at Object.Module._extensions..js (module.js:474:10)
[ERROR]     at Module.load (module.js:356:32)
[ERROR]
[ERROR] Console trace:
[ERROR] Trace
[ERROR]     at StandardRenderer.error
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/lib/renderers/StandardRenderer.js:82:17)
[ERROR]     at Logger.<anonymous>
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/bin/bower:110:22)
[ERROR]     at Logger.emit (events.js:95:17)
[ERROR]     at Logger.emit
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
[ERROR]     at
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/lib/commands/index.js:40:20
[ERROR]     at _rejected
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/q/q.js:797:24)
[ERROR]     at
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/q/q.js:823:30
[ERROR]     at Promise.when
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/q/q.js:1035:31)
[ERROR]     at Promise.promise.promiseDispatch
(/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/q/q.js:741:41)
[ERROR]     at
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node_modules/bower/node_modules/q/q.js:509:49
[ERROR]
[ERROR] System info:
[ERROR] Bower version: 1.3.12
[ERROR] Node version: 0.10.31
[ERROR] OS: Linux 4.15.0-1011-kvm x64
[ERROR]
[ERROR] npm ERR! Mirage2@0.1.1 postinstall: `bower install`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the Mirage2@0.1.1 postinstall script.
[ERROR] npm ERR! This is most likely a problem with the Mirage2 package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR!     bower install
[ERROR] npm ERR! You can get their info via:
[ERROR] npm ERR!     npm owner ls Mirage2
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] npm ERR! System Linux 4.15.0-1011-kvm
[ERROR] npm ERR! command
"/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node"
"/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/npm/bin/npm-cli.js"
"install" "--color=false"
[ERROR] npm ERR! cwd
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2
[ERROR] npm ERR! node -v v0.10.31
[ERROR] npm ERR! npm -v 1.4.23
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR!
[ERROR] npm ERR! Additional logging details can be found in:
[ERROR] npm ERR!
/tmp/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log
[ERROR] npm ERR! not ok code 0
[ERROR] MojoFailureException:
org.apache.maven.plugin.MojoFailureException: Failed to run task
    at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute
(NpmMojo.java:62)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo
(ExecutorMojo.java:302)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.execute
(ExecutorMojo.java:235)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)
Caused by:
com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm
install --color=false' failed. (error code 1)
    at
com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute
(NodeTaskExecutor.java:38)
    at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute
(NpmMojo.java:59)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo
(ExecutorMojo.java:302)
    at com.soebes.maven.plugins.iterator.ExecutorMojo.execute
(ExecutorMojo.java:235)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:117)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
(LifecycleModuleBuilder.java:81)
    at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:356)


Both 6.3 and 5.10 builds used to work without patches so I guess some
dependencies have changed.

Does anyone have a clue on how to fix this?

thanks Stefan

-- 
Stefan Kombrink
Universität Ulm
Kommunikations- und Informationszentrum (kiz)
Abteilung Informationsmedien
+49-731-50-31482

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to