#589: Add option to build with web-client
-------------------------+--------------------------------------------------
Reporter: jesseeichar | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.5
Component: General | Version: v2.6.3
Keywords: |
-------------------------+--------------------------------------------------
In the attached patch I have the following changes:
- added a widgets profile that is to be used IN CONJUNCTION with the
normal env-* profiles (see below for more)
- made web-client build before web
- add an web-client as an overlay to the maven war configuration so that
if the widgets profile is active
- modified profiles and filters to use configuration overrides for
controlling configuration
- update jetty configuration so that it looks for resources in:
- web/src/main/webapps
- web/target/webapps
- and if widgets profile is enabled web-client/src/main/resources
The profile change means that you can now do:
{{{mvn jetty:run -Penv-dev,widgets }}}
(runs jetty with the extra path to the web-client js, the sources are
used so the javascript can be edited at the source and have the updates
reflected live, assuming debug mode)
and
{{{mvn package -Penv-dev,widgets}}}
(builds the war with the web-client resources in the war)
when {{{-Pwidgets}}} is in the command line the config-overrides-
widget.xml file is used as one of the overrides file. This means that the
config-gui's client node is updated to use the url
{{{../../apps/search/}}} and the widget attribute is {{{true}}}.
Note: These changes are to be used as defaults and for quickly getting
running. For serious configuration it is recommended to create an
overrides file specific for your environment and when launching geonetwork
add the parameter:
{{{-Dgeonetwork.jeeves.configuration.overrides.file=<path-to-your-
configuration-file>}}}
I would recommend putting your configuration file in src/main/webapp/WEB-
INF/
and there for the system property parameter would look like:
{{{-Dgeonetwork.jeeves.configuration.overrides.file=/WEB-INF/config-
overrides-custom.xml}}}
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/589>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.