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)
Change History (9)
by , 13 years ago
Attachment: | root_pom_589_widgets_in_build.patch added |
---|
by , 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 , 13 years ago
Ok. Correct patch file is now attached. However there are a few steps that are needed
- cd web-client/src/main
- mv resources apps
- mkdir resources
- mv apps resources
- Apply patch
comment:2 by , 13 years ago
Milestone: | v2.6.5 → v2.7.0 |
---|---|
Type: | defect → enhancement |
Version: | v2.6.3 |
by , 13 years ago
Attachment: | 589_widgets_in_build.2.patch added |
---|
an updated patch that makes servlet optional
by , 13 years ago
Attachment: | 589_widgets_in_build.3.patch added |
---|
fixed an issue with lucene and datadir inadvertently swapped
by , 13 years ago
Attachment: | 589_widgets_in_build.4.patch added |
---|
lastest fixes with the version and subVersion substituted correctly again
comment:3 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
patch for the root pom