Skip to content

Commit

Permalink
Merge pull request #50 from aodn/bug/5633-skip-module-codeartifact
Browse files Browse the repository at this point in the history
remove the need to push geonetwork-api to code artifact
  • Loading branch information
utas-raymondng authored Jun 5, 2024
2 parents 2e433bc + 1f0e740 commit bebfda4
Show file tree
Hide file tree
Showing 40 changed files with 20 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ ENV GN_DIR /opt/geonetwork
#

# Override log4j as we need to add our log appear, by default ROOT level is off which is very strange design
COPY ./geonetwork/target/classes/log4j-imos.xml ${GN_DIR}/WEB-INF/classes/log4j2.xml
COPY ./geonetwork/target/classes/log4j-imos-index.xml ${GN_DIR}/WEB-INF/classes/log4j2-index.xml
COPY ./geonetwork-core/target/classes/log4j-imos.xml ${GN_DIR}/WEB-INF/classes/log4j2.xml
COPY ./geonetwork-core/target/classes/log4j-imos-index.xml ${GN_DIR}/WEB-INF/classes/log4j2-index.xml

# Copy our jar to the lib folder so that scan can happens
COPY ./geonetwork/target/geonetwork-*.jar ${GN_DIR}/WEB-INF/lib/
COPY ./geonetwork-core/target/geonetwork4-*.jar ${GN_DIR}/WEB-INF/lib/
COPY ./geonetwork-api/target/geonetwork-api-*.jar ${GN_DIR}/WEB-INF/lib/

COPY ./geonetwork/target/dependency/* ${GN_DIR}/WEB-INF/lib/
COPY ./geonetwork/target/classes/schema_plugins/converter/*.xsl ${GN_DIR}/WEB-INF/data/config/schema_plugins/iso19139/process/
COPY ./geonetwork/target/classes/schema_plugins/converter/*.xsl ${GN_DIR}/WEB-INF/data/config/schema_plugins/iso19115-3.2018/process/
COPY ./geonetwork-core/target/dependency/* ${GN_DIR}/WEB-INF/lib/
COPY ./geonetwork-core/target/classes/schema_plugins/converter/*.xsl ${GN_DIR}/WEB-INF/data/config/schema_plugins/iso19139/process/
COPY ./geonetwork-core/target/classes/schema_plugins/converter/*.xsl ${GN_DIR}/WEB-INF/data/config/schema_plugins/iso19115-3.2018/process/

# Config override
COPY ./geonetwork/target/classes/gnconfig/config-overrides.xml ${GN_DIR}/WEB-INF/
COPY ./geonetwork-core/target/classes/gnconfig/config-overrides.xml ${GN_DIR}/WEB-INF/
11 changes: 11 additions & 0 deletions geonetwork-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
</dependencies>
<build>
<plugins>
<!--
No need to push this api to code repo as it is not something in common, we just need this to
be part of the binary.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion geonetwork/pom.xml → geonetwork-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>geonetwork</artifactId>
<artifactId>geonetwork4-core</artifactId>
<packaging>jar</packaging>

<description>AODN customized Geonetwork Instance</description>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<modules>
<module>geonetwork-api</module>
<module>geonetwork</module>
<module>geonetwork-core</module>
</modules>

<properties>
Expand Down

0 comments on commit bebfda4

Please sign in to comment.