From 0b6bf01ec5946b0ba147c1e6fc65f5f8235e1885 Mon Sep 17 00:00:00 2001 From: Florian Necas Date: Thu, 16 Nov 2023 09:34:43 +0100 Subject: [PATCH] fix: reset db and georchestra build --- pom.xml | 5 +- web/pom.xml | 452 +++++++++++++++--- .../config-security/config-security.xml | 7 - 3 files changed, 376 insertions(+), 88 deletions(-) diff --git a/pom.xml b/pom.xml index dabf338a2f..c5f3e66afc 100644 --- a/pom.xml +++ b/pom.xml @@ -1474,8 +1474,6 @@ geonetwork WEB-INF/config.properties - 1.8 - 1.8 @@ -1490,9 +1488,8 @@ GEONETWORK_DB_CONNECTION_PROPERTIES= --> - ${geonetwork.db.type:h2} - ../config-db/${db.type}.xml + ../config-db/postgres-postgis.xml #{systemEnvironment['GEONETWORK_DB_HOST']?:'localhost'} #{systemEnvironment['GEONETWORK_DB_PORT']} #{systemEnvironment['GEONETWORK_DB_NAME']?:'~/gn'} diff --git a/web/pom.xml b/web/pom.xml index 4ebd916c00..bd69b6fe23 100644 --- a/web/pom.xml +++ b/web/pom.xml @@ -407,6 +407,17 @@ ${project.version} + + ${project.groupId} + gn-georchestra-utils + ${project.version} + + + ${project.groupId} + gn-georchestra-authnz + ${project.version} + + dlib @@ -625,83 +636,87 @@ - io.github.git-commit-id - git-commit-id-maven-plugin - 4.9.9 - - - initialize - get-the-git-infos - - revision - - - + io.github.git-commit-id + git-commit-id-maven-plugin + 4.9.9 + + + initialize + get-the-git-infos + + revision + + + + + ${project.basedir}/../.git + git + yyyy-MM-dd'T'HH:mm:ssZ + ${user.timezone} + false + true + src/main/webResources/WEB-INF/classes/git.properties + + properties + true + true + true + false + false + false + false + + + + ^git.tags$ + ^git.branch$ + ^git.commit.id$ + ^git.commit.id.abbrev$ + ^git.closest.tag.name$ + ^git.closest.tag.commit.count$ + ^git.commit.id.describe.short$ + ^git.build.time$ + + + + false + 7 + flat + + false + false + 7 + -dirty + * + true + false + + + + + + + validating project version + + ${project.version} + + + + + + false + - - ${project.basedir}/../.git - git - yyyy-MM-dd'T'HH:mm:ssZ - ${user.timezone} - false - true - src/main/webResources/WEB-INF/classes/git.properties - - properties - true - true - false - false - false - false - - - - ^git.tags$ - ^git.branch$ - ^git.commit.id$ - ^git.commit.id.describe.*$ - ^git.build.time$ - - - - false - 7 - flat - - false - false - 7 - -dirty - * - true - false - - - - - - - validating project version - - ${project.version} - - - - - - false - maven-clean-plugin @@ -745,7 +760,8 @@ META-INF/MANIFEST.MF data/** - doc/** + doc/en/** + doc/fr/** images/logos/* images/logos/statTmp scripts/lib/** @@ -1303,6 +1319,288 @@ + + + debianPackage + + yyyyMMddHHmmss + + + geonetwork + + + org.apache.maven.plugins + maven-war-plugin + + generic + false + false + + + ${project.basedir}/../schemas + + **/src/main/plugin/* + + WEB-INF/data/config/schema_plugins + + + ${project.basedir}/../web-ui/src/main/resources + + + ${build.webapp.resources} + + + + xml/schemas/**, + catalog/lib/style/bootstrap/docs/**, + catalog/lib/style/bootstrap/fonts/**, + catalog/lib/style/bootstrap/grunt/**, + catalog/lib/style/bootstrap/test-infra/**, + catalog/lib/style/font-awesome/css/**, + catalog/lib/style/font-awesome/src/**, + catalog/lib/style/font-awesome/scss/** + + ${build.webapp.resources}/WEB-INF/web.xml + + + + maven-resources-plugin + 2.5 + + + copy-filter-webResource + process-resources + + copy-resources + + + false + ${build.webapp.resources} + + + ${basedir}/src/main/webResources + true + ${build.webapp.resources} + + + + ${basedir}/src/main/filters/${env}.properties + + true + + + + + + org.apache.maven.plugins + maven-scm-plugin + 1.9.4 + + ${project.build.directory}/deb/etc/georchestra + scm:git:https://github.com/georchestra/datadir.git + false + 22.0 + branch + + + + checkout-deb-default-datadir + process-resources + + checkout + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.7 + + + remove-useless-directories + package + + + + + + + + + + + + run + + + + fix-permissions + package + + + + + + + + + + + + + run + + + set-project-packageversion + package + + run + + + true + + + + + + + + + + + net.sf.debian-maven + debian-maven-plugin + 1.0.6 + + georchestra-geonetwork + Debian package for the GeoNetwork fork of geOrchestra. + ${project.packageVersion} + http://www.georchestra.org/ + geOrchestra + PSC + psc@georchestra.org + true + + + + + + + docker + + georchestra/${project.parent.artifactId}:${git.closest.tag.name}-dev + scm:git:https://github.com/georchestra/datadir.git + docker-master + scm:git:https://github.com/georchestra/geonetwork_minimal_datadir.git + gn4.2.2 + + + + geonetwork + + + org.apache.maven.plugins + maven-scm-plugin + 1.9.4 + + + checkout-docker-default-datadir + process-resources + + checkout + + + ${project.build.directory}/datadir/ + ${dockerDatadirScmUrl} + false + ${dockerDatadirScmVersion} + branch + + + + checkout-docker-gn-datadir + process-resources + + checkout + + + ${project.build.directory}/gn_datadir/ + ${dockerGnDatadirScmUrl} + false + ${dockerGnDatadirScmVersion} + branch + + + + + + com.spotify + docker-maven-plugin + 0.3.8 + + ${dockerImageName} + ${project.basedir}/src/docker + + + /var/lib/jetty/webapps + ${project.build.directory} + geonetwork/** + + + /etc/georchestra + ${project.build.directory}/datadir + ${project.parent.artifactId}/** + + + /mnt/geonetwork_datadir + ${project.build.directory}/gn_datadir + .git** + true + + + docker-hub + https://index.docker.io/v1/ + + + + com.google.guava + guava + 19.0 + + + javax.activation + activation + 1.1.1 + + + + + + + + log4j-logstash + + + net.logstash.log4j + jsonevent-layout + 1.7 + + + + + sentry-log4j + + + io.sentry + sentry-log4j + 1.7.30 + + + + war diff --git a/web/src/main/webapp/WEB-INF/config-security/config-security.xml b/web/src/main/webapp/WEB-INF/config-security/config-security.xml index 13a182ee41..b0de1db0a0 100644 --- a/web/src/main/webapp/WEB-INF/config-security/config-security.xml +++ b/web/src/main/webapp/WEB-INF/config-security/config-security.xml @@ -30,13 +30,6 @@ http://www.springframework.org/schema/context/spring-context.xsd" xmlns="http://www.springframework.org/schema/beans"> - - -