Skip to content

Commit 1488e59

Browse files
committed
fix error when resetting password
geonetwork/core-geonetwork#8522 Also fix pom version mismatch error
1 parent 98754e5 commit 1488e59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

support-services/gn4/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ RUN sed -i 's#</dependencies>#<dependency><groupId>org.geonetwork-opensource.sch
1818
RUN sed -i 's#</artifactItems>#<artifactItem><groupId>org.geonetwork-opensource.schemas</groupId><artifactId>gn-schema-dcat-ap</artifactId><type>zip</type><overWrite>false</overWrite><outputDirectory>${schema-plugins.dir}</outputDirectory></artifactItem></artifactItems>#' \
1919
/app/web/pom.xml
2020

21+
# this will use the same version as the parent in the dcat-ap pom
22+
RUN PARENT_VERSION=$(awk -F'[><]' '/<version>/{print $3; exit}' /app/pom.xml) && \
23+
sed -i "s#<version>4\.4\..*</version>#<version>${PARENT_VERSION}</version>#" \
24+
/app/schemas/dcat-ap/pom.xml
25+
26+
# fix error in ESAPI properties (https://github.com/geonetwork/core-geonetwork/pull/8522)
27+
RUN sed -i "s#ESAPI.Logger=org.owasp.esapi.logging.log4j.Log4JLogFactory#ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory#" \
28+
/app/web/src/main/webapp/WEB-INF/classes/ESAPI.properties
29+
30+
2131
RUN mvn install -DskipTests
2232

2333

0 commit comments

Comments
 (0)