Hello Eirik,
I´m trying to build/install Geonetwork in my OpenBSD 5.7 server. I´ve
installed an earlier version a couple of years ago, on an earlier version
of OpenBSD, as well, and everything went on smoothly.
Now, when I run Maven (3.3.3), following all the installation procedures, I
keep getting an error related to maven-frontend-plugin. Below is an excerpt
of the Maven output (I´ve included the full output, with the -X option,
attached).
=====================================================================
europa:[core-geonetwork]# mvn clean install package -DskipTests -rf
:web-ui-docs
[...]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 32.483 s
[INFO] Finished at: 2015-09-23T17:04:24-03:00
[INFO] Final Memory: 21M/115M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:0.0.11:install-node-and
-npm (install node and npm) on project web-ui-docs: Execution install node
and npm of goal com.g
ithub.eirslett:frontend-maven-plugin:0.0.11:install-node-and-npm failed: A
required class was mi
ssing while executing
com.github.eirslett:frontend-maven-plugin:0.0.11:install-node-and-npm:
org/slf4j/helpers/MarkerIgnoringBase
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.github.eirslett:frontend-maven-plugin:0.0.11
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/root/.m2/repository/com/github/eirslett/frontend-maven-plugin/0.0.11/frontend-maven-plugin-0.0.11.jar
[ERROR] urls[1] = etc. (22 other URLs)
=====================================================================
I examined the pom.xml file, and realized it asks for version 0.0.11 of the
plugin. I changed it to a more recent version (0.0.25, for instance), I
keep getting this error (complete output attached):
europa:[core-geonetwork]# mvn clean install package -DskipTests -rf
:web-ui-docs
[...]
[INFO] --- frontend-maven-plugin:0.0.25:install-node-and-npm (install node
and npm) @ web-ui-docs ---
[INFO] Installing node version v0.10.24
[INFO] Creating temporary directory
/home/src/core-geonetwork/web-ui-docs/node_tmp
[INFO] Downloading Node.js from
http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x86.tar.gz to
/home/src/core-geonetwork/web-ui-docs/node_tmp/node.tar.gz
[INFO] No proxy was configured, downloading directly
[INFO] Extracting Node.js files in node_tmp
[INFO] Unpacking /home/src/core-geonetwork/web-ui-docs/node_tmp/node.tar.gz
into /home/src/core-geonetwork/web-ui-docs/node_tmp
[INFO] Moving node binary to /home/src/core-geonetwork/web-ui-docs/node/node
[INFO] Deleting temporary directory
/home/src/core-geonetwork/web-ui-docs/node_tmp
[INFO] Installed node locally.
[INFO] Found NPM version 1.3.23
[INFO]
[INFO] --- frontend-maven-plugin:0.0.25:npm (npm download modules) @
web-ui-docs ---
[INFO] Running 'npm install --color=false' in
/home/src/core-geonetwork/web-ui-docs
[ERROR] /home/src/core-geonetwork/web-ui-docs/node/node[1]: syntax error:
`(' unexpected
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JS API and Service documentation ................... FAILURE [
13.747 s]
[INFO] GeoNetwork web client module ....................... SKIPPED
[INFO] GeoNetwork Web module .............................. SKIPPED
[INFO] GeoNetwork E2E Javascript Tests .................... SKIPPED
[INFO] GeoServer module ................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16.290 s
[INFO] Finished at: 2015-09-23T18:28:29-03:00
[INFO] Final Memory: 22M/116M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
com.github.eirslett:frontend-maven-plugin:0.0.25:npm (npm downloa
d modules) on project web-ui-docs: Failed to run task: 'npm install
--color=false' failed. (error code 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/MojoFailureException
Everything else seems to build with success, including the geoserver module.
Do you have any clue? I´ve searched the Internet and found people with
similar problems with MarkerIgnoringBase in different projects, some say
that the Maven recent versions are the problem (I also tried to use an
earlier version, with no success), etc.
I don´t have much experience with Java, indeed... Any hint would be very
welcome!
Thanks a lot, in advance...
Best,
Marcelo
--
Labgis/IFHT/UERJ
Tel.: +55 (21) 2334-1035