Skip to content

Commit

Permalink
fix error when resetting password
Browse files Browse the repository at this point in the history
geonetwork/core-geonetwork#8522

Also fix pom version mismatch error
  • Loading branch information
jahow committed Feb 17, 2025
1 parent 98754e5 commit 05ee5d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions support-services/gn4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ RUN sed -i 's#</dependencies>#<dependency><groupId>org.geonetwork-opensource.sch
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>#' \
/app/web/pom.xml

# this will use the same version as the parent in the dcat-ap pom
RUN PARENT_VERSION=$(awk -F'[><]' '/<version>/{print $3; exit}' /app/pom.xml) && \
sed -i "s#<version>.*</version>#<version>${PARENT_VERSION}</version>#" \
/app/schemas/dcat-ap/pom.xml

# fix error in ESAPI properties (https://github.com/geonetwork/core-geonetwork/pull/8522)
RUN sed -i "s#ESAPI.Logger=org.owasp.esapi.logging.log4j.Log4JLogFactory#ESAPI.Logger=org.owasp.esapi.logging.slf4j.Slf4JLogFactory#" \
/app/web/src/main/webapp/WEB-INF/classes/ESAPI.properties


RUN mvn install -DskipTests


Expand Down

0 comments on commit 05ee5d3

Please sign in to comment.