Hi All,
I’m developing a shell script that allows us to automate building geonetwork from source, including our own customisations and additional schemas, and also elasticsearch and kibana. The aim is for quick deployment, automated tests, and creating a custom docker image.
This is actually working (which is a shock to me with my rudimentary scripting knowledge) and I can get a running geonetwork with elasticsearch and kibana in about 5 minutes, with no human intervention. So now I’m trying to tidy up the output.
The key issue I have is suppressing the output from maven during the build and also when running jetty. Running maven in quiet mode suppresses all but a number of DEBUG messages ([DEBUG] execute contextualize) and a couple of errors that aren’t really errors. An internet search led me to try the following environment variable as I have maven 3.3.9 installed:
export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.defaultLogLevel=off
however whatever level I set seems to make no difference at all to the output. Is it the correct environment variable?
Is it possible that the log level is set in the pom.xml somewhere- I don’t think it’s possible to override that from the command prompt, is it?
Thanks!
Jo
···
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For urgent responses at that time, please visit support.astuntechnology.com or phone our office on 01372 744009
Hi,
I don’t know about that variable, but something like redirecting the output to /dev/null should work, if you are on linux:
mvn clean package install -DskipTests > /dev/null && cd web && mvn jetty:run
On Thu, Aug 16, 2018 at 4:14 PM Jo Cook <jocook@anonymised.com> wrote:
Hi All,
I’m developing a shell script that allows us to automate building geonetwork from source, including our own customisations and additional schemas, and also elasticsearch and kibana. The aim is for quick deployment, automated tests, and creating a custom docker image.
This is actually working (which is a shock to me with my rudimentary scripting knowledge) and I can get a running geonetwork with elasticsearch and kibana in about 5 minutes, with no human intervention. So now I’m trying to tidy up the output.
The key issue I have is suppressing the output from maven during the build and also when running jetty. Running maven in quiet mode suppresses all but a number of DEBUG messages ([DEBUG] execute contextualize) and a couple of errors that aren’t really errors. An internet search led me to try the following environment variable as I have maven 3.3.9 installed:
export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.defaultLogLevel=off
however whatever level I set seems to make no difference at all to the output. Is it the correct environment variable?
Is it possible that the log level is set in the pom.xml somewhere- I don’t think it’s possible to override that from the command prompt, is it?
Thanks!
Jo
–
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For urgent responses at that time, please visit support.astuntechnology.com or phone our office on 01372 744009
–
Reserve your conference place now: Bristol 26 Sept | Leeds 3rd October
Sign up to our mailing list for updates on news, products, conferences, events and training
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18 7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
iShare - enterprise geographic intelligence platform
GeoServer, PostGIS and QGIS training
Helpdesk and customer portal
Company registration no. 5410695. Registered in England and Wales. Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no. 864201149.
Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork