Opened 13 years ago

Closed 13 years ago

#589 closed enhancement (fixed)

Add option to build with web-client

Reported by: jesseeichar Owned by: fxp
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

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

Attachments (5)

root_pom_589_widgets_in_build.patch (362 bytes ) - added by jesseeichar 13 years ago.
patch for the root pom
589_widgets_in_build.patch (1.3 MB ) - added by jesseeichar 13 years ago.
only patch that really needs to be applied BUT all files in src/main/resources need to be put in src/main/resources/apps
589_widgets_in_build.2.patch (1.3 MB ) - added by jesseeichar 13 years ago.
an updated patch that makes servlet optional
589_widgets_in_build.3.patch (1.3 MB ) - added by jesseeichar 13 years ago.
fixed an issue with lucene and datadir inadvertently swapped
589_widgets_in_build.4.patch (1.3 MB ) - added by jesseeichar 13 years ago.
lastest fixes with the version and subVersion substituted correctly again

Change History (9)

by jesseeichar, 13 years ago

patch for the root pom

by jesseeichar, 13 years ago

Attachment: 589_widgets_in_build.patch added

only patch that really needs to be applied BUT all files in src/main/resources need to be put in src/main/resources/apps

comment:1 by jesseeichar, 13 years ago

Ok. Correct patch file is now attached. However there are a few steps that are needed

  1. cd web-client/src/main
  2. mv resources apps
  3. mkdir resources
  4. mv apps resources
  5. Apply patch

comment:2 by fxp, 13 years ago

Milestone: v2.6.5v2.7.0
Type: defectenhancement
Version: v2.6.3

by jesseeichar, 13 years ago

an updated patch that makes servlet optional

by jesseeichar, 13 years ago

fixed an issue with lucene and datadir inadvertently swapped

by jesseeichar, 13 years ago

lastest fixes with the version and subVersion substituted correctly again

comment:3 by fxp, 13 years ago

Owner: changed from geonetwork-devel@… to fxp
Status: newassigned

comment:4 by fxp, 13 years ago

Resolution: fixed
Status: assignedclosed

r8147-8151

Note: See TracTickets for help on using tickets.