Skip to content

Commit c63a450

Browse files
committed
Use validation messages from updated shape files
1 parent 56d076b commit c63a450

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

core/sds-aspect-meta-model-resolver/pom.xml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
9797
<artifactId>maven-compiler-plugin</artifactId>
98+
<version>${maven-compiler-plugin-version}</version>
9899
<configuration>
99100
<annotationProcessorPaths>
100101
<path>
@@ -105,6 +106,76 @@
105106
</annotationProcessorPaths>
106107
</configuration>
107108
</plugin>
109+
110+
<!-- Exclude updated meta model shape files from sds-aspect-meta-model dependency -->
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-dependency-plugin</artifactId>
114+
<version>${maven-dependency-plugin-version}</version>
115+
<executions>
116+
<execution>
117+
<id>unpack</id>
118+
<phase>generate-sources</phase>
119+
<goals>
120+
<goal>unpack</goal>
121+
</goals>
122+
<configuration>
123+
<artifactItems>
124+
<artifactItem>
125+
<groupId>io.openmanufacturing</groupId>
126+
<artifactId>sds-aspect-meta-model</artifactId>
127+
<version>${aspect-meta-model-version}</version>
128+
<type>jar</type>
129+
<overWrite>true</overWrite>
130+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
131+
<excludes>
132+
bamm/meta-model/2.0.0/aspect-meta-model-shapes.ttl,bamm/characteristic/2.0.0/characteristic-shapes.ttl
133+
</excludes>
134+
</artifactItem>
135+
</artifactItems>
136+
</configuration>
137+
</execution>
138+
</executions>
139+
</plugin>
140+
141+
<!-- Download updated meta model shape files -->
142+
<!-- This refers to the state of the shape files after merging of https://github.com/OpenManufacturingPlatform/sds-bamm-aspect-meta-model/pull/176 -->
143+
<plugin>
144+
<groupId>com.googlecode.maven-download-plugin</groupId>
145+
<artifactId>download-maven-plugin</artifactId>
146+
<version>${download-maven-plugin-version}</version>
147+
<executions>
148+
<execution>
149+
<id>download-meta-model-shapes</id>
150+
<phase>process-resources</phase>
151+
<goals>
152+
<goal>wget</goal>
153+
</goals>
154+
<configuration>
155+
<url>
156+
https://raw.githubusercontent.com/OpenManufacturingPlatform/sds-bamm-aspect-meta-model/159ced3e69e5d694e5158f2942cb3182941cf032/src/main/resources/bamm/meta-model/2.0.0/aspect-meta-model-shapes.ttl
157+
</url>
158+
<outputFileName>aspect-meta-model-shapes.ttl</outputFileName>
159+
<outputDirectory>${project.build.directory}/classes/bamm/meta-model/2.0.0</outputDirectory>
160+
</configuration>
161+
</execution>
162+
<execution>
163+
<id>download-characteristics-shapes</id>
164+
<phase>process-resources</phase>
165+
<goals>
166+
<goal>wget</goal>
167+
</goals>
168+
<configuration>
169+
<url>
170+
https://raw.githubusercontent.com/OpenManufacturingPlatform/sds-bamm-aspect-meta-model/159ced3e69e5d694e5158f2942cb3182941cf032/src/main/resources/bamm/characteristic/2.0.0/characteristic-shapes.ttl
171+
</url>
172+
<outputFileName>characteristic-shapes.ttl</outputFileName>
173+
<outputDirectory>${project.build.directory}/classes/bamm/characteristic/2.0.0</outputDirectory>
174+
</configuration>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
108179
</plugins>
109180
</build>
110181
</project>

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@
108108
<!-- Versions of plugins -->
109109
<build-helper-maven-plugin-version>3.2.0</build-helper-maven-plugin-version>
110110
<cyclonedx-maven-plugin-version>1.4.1</cyclonedx-maven-plugin-version>
111+
<download-maven-plugin-version>1.6.8</download-maven-plugin-version>
111112
<git-commit-id-plugin-version>4.0.5</git-commit-id-plugin-version>
112113
<groovy-maven-plugin-version>2.1.1</groovy-maven-plugin-version>
113114
<jacoco-maven-plugin-version>0.8.7</jacoco-maven-plugin-version>
114115
<maven-clean-plugin-version>3.1.0</maven-clean-plugin-version>
115116
<maven-compiler-plugin-version>3.8.1</maven-compiler-plugin-version>
117+
<maven-dependency-plugin-version>3.3.0</maven-dependency-plugin-version>
116118
<maven-enforcer-plugin-version>3.0.0</maven-enforcer-plugin-version>
117119
<maven-jar-plugin-version>3.2.2</maven-jar-plugin-version>
118120
<maven-javadoc-plugin-version>3.3.0</maven-javadoc-plugin-version>

0 commit comments

Comments
 (0)