Skip to content

Commit

Permalink
unpack schema sample data into folders, produce mef files at build ti…
Browse files Browse the repository at this point in the history
…me (geonetwork#7457)

* unpack iso19139 sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

* unpack iso19155-3.2018 sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

* unpack dublin-core sample data, create mef file at build time

Signed-off-by: Jody Garnett <[email protected]>

---------

Signed-off-by: Jody Garnett <[email protected]>
  • Loading branch information
jodygarnett authored Jan 18, 2024
1 parent 4dfbb33 commit 22cbf18
Show file tree
Hide file tree
Showing 40 changed files with 1,800 additions and 0 deletions.
22 changes: 22 additions & 0 deletions schemas/dublin-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,28 @@
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>sample-data</id>
<phase>compile</phase>
<configuration>
<!-- inline ant build target -->
<target>
<mkdir dir="target/sample-data"/>
<defaultexcludes add="**/.DS_Store"/>
<zip destfile="target/sample-data/natural_polar_ecosystems.mef"
basedir="src/main/plugin/dublin-core/sample-data/natural_polar_ecosystems"
whenempty="create"
excludes="**/.keepme"/>
</target>
</configuration>
<goals><goal>run</goal></goals>
</execution>
</executions>
</plugin>

<!-- package up plugin folder as a zip -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down
11 changes: 11 additions & 0 deletions schemas/dublin-core/src/assembly/schema-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<directory>src/main/plugin/</directory>
<outputDirectory></outputDirectory>
<useDefaultExcludes>true</useDefaultExcludes>
<excludes>
<exclude>dublin-core/sample-data/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>target/sample-data</directory>
<outputDirectory>dublin-core/sample-data</outputDirectory>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>*.mef</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<info version="1.0">
<general>
<createDate>2005-03-31T19:13:30</createDate>
<changeDate>2005-03-31T19:13:30</changeDate>
<schema>dublin-core</schema>
<isTemplate>false</isTemplate>
<format>full</format>
</general>
<categories />
<privileges>
<group name="all">
<operation name="download" />
<operation name="view" />
</group>
</privileges>
<public />
<private />
</info>

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<simpledc xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>Natural polar ecosystems</dc:title>
<dc:creator>GeoNetwork test user</dc:creator>
<dc:subject>Antarctic ecosystem</dc:subject>
<dc:subject>Arctic ecosystem</dc:subject>
<dc:subject>polar ecosystem</dc:subject>
<dc:description>A harmonised database of natural ecosystems in the Circumpolar Arctic, based on published vegetation maps. </dc:description>
<dc:publisher>GeoNetwork test centre</dc:publisher>
<dc:contributor>Unknown</dc:contributor>
<dc:date>2000</dc:date>
<dc:type>Maps and graphics</dc:type>
<dc:format>Web page</dc:format>
<dc:identifier>01f8da31-10d7-11da-b569-000f1f1a7b03</dc:identifier>
<dc:source>Compiled from published vegetation maps of the 8 circumpolar countries.</dc:source>
<dc:language>en</dc:language>
<dc:relation>Unknown</dc:relation>
<dc:coverage>North 90, South -90, East 180, West -180. (Global)</dc:coverage>
<dc:rights>Access constraints: None. Usage constraints: No restrictions</dc:rights>
</simpledc>
23 changes: 23 additions & 0 deletions schemas/iso19115-3.2018/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,29 @@
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>sample-data</id>
<phase>compile</phase>
<configuration>
<!-- inline ant build target -->
<target>
<mkdir dir="target/sample-data"/>
<defaultexcludes add="**/.DS_Store"/>
<zip destfile="target/sample-data/service_record.mef"
basedir="src/main/plugin/iso19115-3.2018/sample-data/service_record"
whenempty="create"
excludes="**/.keepme"/>
</target>
</configuration>
<goals><goal>run</goal></goals>
</execution>
</executions>
</plugin>


<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
Expand Down
11 changes: 11 additions & 0 deletions schemas/iso19115-3.2018/src/assembly/schema-plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
<directory>src/main/plugin/</directory>
<outputDirectory></outputDirectory>
<useDefaultExcludes>true</useDefaultExcludes>
<excludes>
<exclude>iso19115-3.2018/sample-data/**</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>target/sample-data</directory>
<outputDirectory>iso19115-3.2018/sample-data</outputDirectory>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>*.mef</include>
</includes>
</fileSet>
</fileSets>
</assembly>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<info version="1.1">
<general>
<createDate>2015-05-04T16:34:08</createDate>
<changeDate>2019-12-09T16:45:53</changeDate>
<schema>iso19115-3.2018</schema>
<isTemplate>n</isTemplate>
<localId>1772</localId>
<format>full</format>
<rating>0</rating>
<popularity>0</popularity>
<uuid>0dbac056-cd5a-4c9c-bbec-564e47c4507c</uuid>
</general>
<categories />
<privileges>
<group name="all">
<operation name="featured" />
<operation name="dynamic" />
<operation name="notify" />
<operation name="editing" />
<operation name="download" />
<operation name="view" />
</group>
</privileges>
<public />
<private />
</info>

Loading

0 comments on commit 22cbf18

Please sign in to comment.