|
217 | 217 | </executions> |
218 | 218 | </plugin> |
219 | 219 |
|
220 | | - <plugin> |
221 | | - <artifactId>maven-jar-plugin</artifactId> |
222 | | - <version>3.3.0</version> |
223 | | - <configuration> |
224 | | - <archive> |
225 | | - <manifestEntries> |
226 | | - <Automatic-Module-Name>org.tensorflow.core</Automatic-Module-Name> |
227 | | - </manifestEntries> |
228 | | - </archive> |
229 | | - </configuration> |
230 | | - <executions> |
231 | | - <execution> |
232 | | - <!-- |
233 | | - Create the native artifact |
234 | | - This artifact will contain only native libraries compiled by the javacpp-plugin, |
235 | | - and will be classified under the active platform (OS, arch, extension...) |
236 | | - --> |
237 | | - <id>native-jar</id> |
238 | | - <phase>package</phase> |
239 | | - <goals> |
240 | | - <goal>jar</goal> |
241 | | - </goals> |
242 | | - <configuration> |
243 | | - <classifier>${native.classifier}</classifier> |
244 | | - <skipIfEmpty>true</skipIfEmpty> |
245 | | - <includes> |
246 | | - <!-- In case of successive builds for multiple platforms without cleaning, ensures |
247 | | - we only include files for this platform. --> |
248 | | - <include>org/tensorflow/internal/c_api/${native.classifier}/</include> |
249 | | - </includes> |
250 | | - <classesDirectory>${project.build.directory}/native</classesDirectory> |
251 | | - <excludes> |
252 | | - <exclude>org/tensorflow/internal/c_api/${native.classifier}/*.exp</exclude> |
253 | | - <exclude>org/tensorflow/internal/c_api/${native.classifier}/*.lib</exclude> |
254 | | - <exclude>org/tensorflow/internal/c_api/${native.classifier}/*.obj</exclude> |
255 | | - <exclude>org/tensorflow/internal/c_api/${native.classifier}/*mklml*</exclude> |
256 | | - <exclude>org/tensorflow/internal/c_api/${native.classifier}/*msvcr120*</exclude> |
257 | | - </excludes> |
258 | | - </configuration> |
259 | | - </execution> |
260 | | - </executions> |
261 | | - </plugin> |
262 | | - |
263 | | - <plugin> |
264 | | - <artifactId>maven-surefire-plugin</artifactId> |
265 | | - <executions> |
266 | | - <execution> |
267 | | - <!-- |
268 | | - Run the tests after packaging the artifacts |
269 | | - This is required as most of our unit tests are in fact integration tests that should |
270 | | - be executed in a TensorFlow runtime environment. |
271 | | - --> |
272 | | - <id>default-test</id> |
273 | | - <phase>integration-test</phase> |
274 | | - <goals> |
275 | | - <goal>test</goal> |
276 | | - </goals> |
277 | | - <configuration> |
278 | | - <additionalClasspathElements> |
279 | | - <additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-${native.classifier}.jar</additionalClasspathElement> |
280 | | - <additionalClasspathElement>${project.build.directory}/native/</additionalClasspathElement> |
281 | | - </additionalClasspathElements> |
282 | | - </configuration> |
283 | | - </execution> |
284 | | - </executions> |
285 | | - </plugin> |
286 | | - |
287 | 220 | <plugin> |
288 | 221 | <artifactId>maven-source-plugin</artifactId> |
289 | 222 | <version>3.3.0</version> |
|
313 | 246 | <failOnError>false</failOnError> |
314 | 247 | <minmemory>256m</minmemory> |
315 | 248 | <maxmemory>2048m</maxmemory> |
316 | | - <links> |
317 | | - <link>http://bytedeco.org/javacpp/apidocs</link> |
318 | | - </links> |
319 | 249 | </configuration> |
320 | 250 | </execution> |
321 | 251 | </executions> |
|
0 commit comments