Skip to content

Commit

Permalink
Fix the schema artifact name in add schema script
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 authored and fxprunayre committed Sep 23, 2024
1 parent a5a1b49 commit 94c0586
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions add-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ then
${insertLine} a\\
\ <dependency>\\
\ <groupId>org.geonetwork-opensource.schemas</groupId>\\
\ <artifactId>schema-${schema}</artifactId>\\
\ <artifactId>gn-schema-${schema}</artifactId>\\
\ <version>${gnSchemasVersion}</version>\\
\ </dependency>
SED_SCRIPT
Expand All @@ -103,7 +103,7 @@ SED_SCRIPT
\ <dependencies>\\
\ <dependency>\\
\ <groupId>org.geonetwork-opensource.schemas</groupId>\\
\ <artifactId>schema-${schema}</artifactId>\\
\ <artifactId>gn-schema-${schema}</artifactId>\\
\ <version>${gnSchemasVersion}</version>\\
\ </dependency>\\
\ </dependencies>\\
Expand All @@ -121,7 +121,7 @@ SED_SCRIPT
\ <artifactItems>\\
\ <artifactItem>\\
\ <groupId>org.geonetwork-opensource.schemas</groupId>\\
\ <artifactId>schema-${schema}</artifactId>\\
\ <artifactId>gn-schema-${schema}</artifactId>\\
\ <type>zip</type>\\
\ <overWrite>false</overWrite>\\
\ <outputDirectory>\$\{schema-plugins.dir\}</outputDirectory>\\
Expand All @@ -138,7 +138,7 @@ SED_SCRIPT
fi

# Add schema resources in service/pom.xml with test scope for unit tests
line=$(grep -n "<artifactId>schema-${schema}</artifactId>" services/pom.xml | cut -d: -f1)
line=$(grep -n "<artifactId>gn-schema-${schema}</artifactId>" services/pom.xml | cut -d: -f1)

if [ ! $line ]
then
Expand All @@ -154,7 +154,7 @@ then
${finalLine} a\\
\ <dependency>\\
\ <groupId>${projectGroupId}</groupId>\\
\ <artifactId>schema-${schema}</artifactId>\\
\ <artifactId>gn-schema-${schema}</artifactId>\\
\ <version>${gnSchemasVersion}</version>\\
\ <scope>test</scope>\\
\ </dependency>
Expand Down

0 comments on commit 94c0586

Please sign in to comment.