|
95 | 95 | <plugin>
|
96 | 96 | <groupId>org.apache.maven.plugins</groupId>
|
97 | 97 | <artifactId>maven-compiler-plugin</artifactId>
|
| 98 | + <version>${maven-compiler-plugin-version}</version> |
98 | 99 | <configuration>
|
99 | 100 | <annotationProcessorPaths>
|
100 | 101 | <path>
|
|
105 | 106 | </annotationProcessorPaths>
|
106 | 107 | </configuration>
|
107 | 108 | </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 | + |
108 | 179 | </plugins>
|
109 | 180 | </build>
|
110 | 181 | </project>
|
0 commit comments