#531: Build / use maven profiles and resources filter
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Add profile support in maven pom.xml in order to:
* update properties (eg. version number, xsl factory) in different files
(eg. config.xml, create-db-default.sql, server.prop)
* easily create custom build (eg. INSPIRE one)
Usage :
* mvn -Denv=dev
* mvn -Denv=inspire
* mvn -Denv=prod (default)
To do: apply to the installer build.xml and documentation ?
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531>
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.
#531: Build / use maven profiles and resources filter
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Comment(by fxp):
Committed revision 8062.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531#comment:1>
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.
#531: Build / use maven profiles and resources filter
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Changes (by jesseeichar):
* cc: jesseeichar (added)
Comment:
This change breaks running jetty because the filters are only ran the war
is being built. I am looking into updating the jetty configuration
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531#comment:2>
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.
#531: Build / use maven profiles and resources filter
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Comment(by jesseeichar):
One idea is to not do the filtering in the war configuration but instead:
1. move files in webResources back to webapp
1. do the filtering as part of resource processing phase which copies all
the webapp files to a directory in target
1. update pom so that the webapp resources for both jetty and war are
found in the filtered directory.
I will try to do this and create a patch.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531#comment:3>
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.
#531: Build / use maven profiles and resources filter
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Comment(by jesseeichar):
I found a problem with my patch. the line:
<directory>src/main/webResources</directory>
must be changed to
<directory>${basedir}/src/main/webResources</directory>
and
<filter>src/main/filters/${env}.properties</filter>
must be changed to
<filter>${basedir}/src/main/filters/${env}.properties</filter>
(after the previous patch has been applied)
And while applying previous patch you will probably have to apply it from
web project as follows:
web> patch -p1 < 531_fix_for_jetty.patch
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531#comment:4>
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.
#531: Build / use maven profiles and resources filter
----------------------+-----------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: task | Status: closed
Priority: minor | Milestone: v2.7.0
Component: General | Version:
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by Fxp):
* status: new => closed
* resolution: => fixed
Comment:
Revision: 8074
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/531#comment:5>
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.