|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | + Licensed to the Apache Software Foundation (ASF) under one |
| 5 | + or more contributor license agreements. See the NOTICE file |
| 6 | + distributed with this work for additional information |
| 7 | + regarding copyright ownership. The ASF licenses this file |
| 8 | + to you under the Apache License, Version 2.0 (the |
| 9 | + "License"); you may not use this file except in compliance |
| 10 | + with the License. You may obtain a copy of the License at |
| 11 | +
|
| 12 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +
|
| 14 | + Unless required by applicable law or agreed to in writing, |
| 15 | + software distributed under the License is distributed on an |
| 16 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 17 | + KIND, either express or implied. See the License for the |
| 18 | + specific language governing permissions and limitations |
| 19 | + under the License. |
| 20 | +--> |
| 21 | + |
| 22 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | + <modelVersion>4.0.0</modelVersion> |
| 24 | + <parent> |
| 25 | + <groupId>org.apache.opennlp</groupId> |
| 26 | + <artifactId>opennlp</artifactId> |
| 27 | + <version>2.3.2-SNAPSHOT</version> |
| 28 | + <relativePath>../pom.xml</relativePath> |
| 29 | + </parent> |
| 30 | + <groupId>org.apache.opennlp</groupId> |
| 31 | + <artifactId>opennlp-dl-gpu</artifactId> |
| 32 | + <name>Apache OpenNLP DL (GPU)</name> |
| 33 | + |
| 34 | + <dependencies> |
| 35 | + <dependency> |
| 36 | + <groupId>org.apache.opennlp</groupId> |
| 37 | + <artifactId>opennlp-dl</artifactId> |
| 38 | + <version>${project.version}</version> |
| 39 | + <exclusions> |
| 40 | + <exclusion> |
| 41 | + <groupId>com.microsoft.onnxruntime</groupId> |
| 42 | + <artifactId>onnxruntime</artifactId> |
| 43 | + </exclusion> |
| 44 | + </exclusions> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>com.microsoft.onnxruntime</groupId> |
| 48 | + <artifactId>onnxruntime_gpu</artifactId> |
| 49 | + <version>${onnxruntime.version}</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.junit.jupiter</groupId> |
| 53 | + <artifactId>junit-jupiter-api</artifactId> |
| 54 | + <scope>test</scope> |
| 55 | + </dependency> |
| 56 | + <dependency> |
| 57 | + <groupId>org.junit.jupiter</groupId> |
| 58 | + <artifactId>junit-jupiter-engine</artifactId> |
| 59 | + <scope>test</scope> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>org.slf4j</groupId> |
| 63 | + <artifactId>slf4j-simple</artifactId> |
| 64 | + <scope>test</scope> |
| 65 | + </dependency> |
| 66 | + <dependency> |
| 67 | + <groupId>org.apache.opennlp</groupId> |
| 68 | + <artifactId>opennlp-dl</artifactId> |
| 69 | + <version>${project.version}</version> |
| 70 | + <type>test-jar</type> |
| 71 | + <scope>test</scope> |
| 72 | + </dependency> |
| 73 | + </dependencies> |
| 74 | + |
| 75 | + <build> |
| 76 | + <plugins> |
| 77 | + <plugin> |
| 78 | + <groupId>org.apache.maven.plugins</groupId> |
| 79 | + <artifactId>maven-surefire-plugin</artifactId> |
| 80 | + <configuration> |
| 81 | + <dependenciesToScan> |
| 82 | + <dependency>org.apache.opennlp:opennlp-dl</dependency> |
| 83 | + </dependenciesToScan> |
| 84 | + </configuration> |
| 85 | + </plugin> |
| 86 | + </plugins> |
| 87 | + </build> |
| 88 | + |
| 89 | + <profiles> |
| 90 | + <profile> |
| 91 | + <id>eval-tests</id> |
| 92 | + <properties> |
| 93 | + <opennlp.forkCount>0.5C</opennlp.forkCount> |
| 94 | + </properties> |
| 95 | + <build> |
| 96 | + <plugins> |
| 97 | + <plugin> |
| 98 | + <groupId>org.apache.maven.plugins</groupId> |
| 99 | + <artifactId>maven-surefire-plugin</artifactId> |
| 100 | + <configuration> |
| 101 | + <argLine>-Xmx4g</argLine> |
| 102 | + <includes> |
| 103 | + <include>**/*Test.java</include> |
| 104 | + <include>**/*Eval.java</include> |
| 105 | + </includes> |
| 106 | + <dependenciesToScan> |
| 107 | + <dependency>org.apache.opennlp:opennlp-dl</dependency> |
| 108 | + </dependenciesToScan> |
| 109 | + </configuration> |
| 110 | + </plugin> |
| 111 | + </plugins> |
| 112 | + </build> |
| 113 | + </profile> |
| 114 | + </profiles> |
| 115 | +</project> |
0 commit comments