|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ |
| 4 | + ~ This program and the accompanying materials are made available under the |
| 5 | + ~ terms of the Apache License, Version 2.0 which is available at |
| 6 | + ~ https://www.apache.org/licenses/LICENSE-2.0. |
| 7 | +See the NOTICE file distributed with this work for additional |
| 8 | +information regarding copyright ownership. |
| 9 | + ~ |
| 10 | + ~ See the NOTICE file distributed with this work for additional |
| 11 | + ~ information regarding copyright ownership. |
| 12 | + ~ Unless required by applicable law or agreed to in writing, software |
| 13 | + ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | + ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | + ~ License for the specific language governing permissions and limitations |
| 16 | + ~ under the License. |
| 17 | + ~ |
| 18 | + ~ SPDX-License-Identifier: Apache-2.0 |
| 19 | + ~ |
| 20 | + ~ |
| 21 | + --> |
| 22 | + |
| 23 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 24 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 26 | + <modelVersion>4.0.0</modelVersion> |
| 27 | + |
| 28 | + <groupId>org.deeplearning4j</groupId> |
| 29 | + <artifactId>onnx-import-examples</artifactId> |
| 30 | + <version>1.0.0-SNAPSHOT</version> |
| 31 | + <name>model import examples</name> |
| 32 | + <description>Loading models trained in keras or tensorflow</description> |
| 33 | + |
| 34 | + <properties> |
| 35 | + <dl4j-master.version>1.0.0-M2</dl4j-master.version> |
| 36 | + <!-- Change the nd4j.backend property to nd4j-cuda-X-platform to use CUDA GPUs --> |
| 37 | + <nd4j.backend>nd4j-native</nd4j.backend> |
| 38 | + <!-- <nd4j.backend>nd4j-cuda-10.2-platform</nd4j.backend> --> |
| 39 | + <java.version>1.8</java.version> |
| 40 | + <maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version> |
| 41 | + <maven.minimum.version>3.3.1</maven.minimum.version> |
| 42 | + <exec-maven-plugin.version>1.4.0</exec-maven-plugin.version> |
| 43 | + <maven-shade-plugin.version>2.4.3</maven-shade-plugin.version> |
| 44 | + <logback.version>1.1.7</logback.version> |
| 45 | + <javacpp.version>1.5.7</javacpp.version> |
| 46 | + <tensorflow.version>1.15.5</tensorflow.version> |
| 47 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 48 | + <junit.version>5.8.0-M1</junit.version> |
| 49 | + </properties> |
| 50 | + |
| 51 | + <repositories> |
| 52 | + <repository> |
| 53 | + <id>sonatype-nexus-snapshots</id> |
| 54 | + <name>Sonatype Nexus Snapshots</name> |
| 55 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
| 56 | + <releases> |
| 57 | + <enabled>false</enabled> |
| 58 | + </releases> |
| 59 | + <snapshots> |
| 60 | + <enabled>true</enabled> |
| 61 | + <updatePolicy>daily</updatePolicy> <!-- Optional, update daily --> |
| 62 | + </snapshots> |
| 63 | + </repository> |
| 64 | + </repositories> |
| 65 | + |
| 66 | + |
| 67 | + <dependencies> |
| 68 | + <dependency> |
| 69 | + <groupId>org.deeplearning4j</groupId> |
| 70 | + <artifactId>resources</artifactId> |
| 71 | + <version>${dl4j-master.version}</version> |
| 72 | + </dependency> |
| 73 | + |
| 74 | + <dependency> |
| 75 | + <groupId>org.nd4j</groupId> |
| 76 | + <artifactId>${nd4j.backend}</artifactId> |
| 77 | + <version>${dl4j-master.version}</version> |
| 78 | + </dependency> |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + <dependency> |
| 83 | + <groupId>org.nd4j</groupId> |
| 84 | + <artifactId>samediff-import-onnx</artifactId> |
| 85 | + <version>${dl4j-master.version}</version> |
| 86 | + </dependency> |
| 87 | + |
| 88 | + <!-- Test dependency. Ignore for your own application. --> |
| 89 | + <dependency> |
| 90 | + <groupId>org.junit.jupiter</groupId> |
| 91 | + <artifactId>junit-jupiter-engine</artifactId> |
| 92 | + <version>${junit.version}</version> |
| 93 | + <scope>test</scope> |
| 94 | + </dependency> |
| 95 | + |
| 96 | + <dependency> |
| 97 | + <groupId>org.junit.jupiter</groupId> |
| 98 | + <artifactId>junit-jupiter-api</artifactId> |
| 99 | + <version>${junit.version}</version> |
| 100 | + <scope>test</scope> |
| 101 | + </dependency> |
| 102 | + |
| 103 | + <!-- Note this pulls in the samediff-import-onnx module as a transitive dependency as well. |
| 104 | + This module is mainly pulled in for managing modules and is not needed for import all the time. |
| 105 | + Omnihub is suggested if you want to use our model zoo or the utilities used to manage pretrained models. |
| 106 | + --> |
| 107 | + <dependency> |
| 108 | + <groupId>org.deeplearning4j</groupId> |
| 109 | + <artifactId>omnihub</artifactId> |
| 110 | + <version>${dl4j-master.version}</version> |
| 111 | + </dependency> |
| 112 | + |
| 113 | + <!-- -Used for manipulating images. Contains wrapper for javacv to nd4j arrays --> |
| 114 | + <dependency> |
| 115 | + <groupId>org.datavec</groupId> |
| 116 | + <artifactId>datavec-data-image</artifactId> |
| 117 | + <version>${dl4j-master.version}</version> |
| 118 | + </dependency> |
| 119 | + |
| 120 | + <dependency> |
| 121 | + <groupId>org.nd4j</groupId> |
| 122 | + <artifactId>python4j-numpy</artifactId> |
| 123 | + <version>${dl4j-master.version}</version> |
| 124 | + </dependency> |
| 125 | + |
| 126 | + </dependencies> |
| 127 | + |
| 128 | + <!-- Maven Enforcer: Ensures user has an up to date version of Maven before building --> |
| 129 | + <build> |
| 130 | + <plugins> |
| 131 | + |
| 132 | + <plugin> |
| 133 | + <artifactId>maven-surefire-plugin</artifactId> |
| 134 | + <version>3.0.0-M5</version> |
| 135 | + <inherited>true</inherited> |
| 136 | + <dependencies> |
| 137 | + <dependency> |
| 138 | + <groupId>org.apache.maven.surefire</groupId> |
| 139 | + <artifactId>surefire-junit-platform</artifactId> |
| 140 | + <version>3.0.0-M5</version> |
| 141 | + </dependency> |
| 142 | + </dependencies> |
| 143 | + </plugin> |
| 144 | + |
| 145 | + <plugin> |
| 146 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 147 | + <version>1.0.1</version> |
| 148 | + <executions> |
| 149 | + <execution> |
| 150 | + <id>enforce-default</id> |
| 151 | + <goals> |
| 152 | + <goal>enforce</goal> |
| 153 | + </goals> |
| 154 | + <configuration> |
| 155 | + <rules> |
| 156 | + <requireMavenVersion> |
| 157 | + <version>[${maven.minimum.version},)</version> |
| 158 | + <message>********** Minimum Maven Version is ${maven.minimum.version}. Please upgrade Maven before continuing (run "mvn --version" to check). **********</message> |
| 159 | + </requireMavenVersion> |
| 160 | + </rules> |
| 161 | + </configuration> |
| 162 | + </execution> |
| 163 | + </executions> |
| 164 | + </plugin> |
| 165 | + <plugin> |
| 166 | + <groupId>org.apache.maven.plugins</groupId> |
| 167 | + <artifactId>maven-compiler-plugin</artifactId> |
| 168 | + <version>${maven-compiler-plugin.version}</version> |
| 169 | + <configuration> |
| 170 | + <source>${java.version}</source> |
| 171 | + <target>${java.version}</target> |
| 172 | + </configuration> |
| 173 | + </plugin> |
| 174 | + <plugin> |
| 175 | + <groupId>com.lewisd</groupId> |
| 176 | + <artifactId>lint-maven-plugin</artifactId> |
| 177 | + <version>0.0.11</version> |
| 178 | + <configuration> |
| 179 | + <failOnViolation>true</failOnViolation> |
| 180 | + <onlyRunRules> |
| 181 | + <rule>DuplicateDep</rule> |
| 182 | + <rule>RedundantPluginVersion</rule> |
| 183 | + <!-- Rules incompatible with Java 9 |
| 184 | + <rule>VersionProp</rule> |
| 185 | + <rule>DotVersionProperty</rule> --> |
| 186 | + </onlyRunRules> |
| 187 | + </configuration> |
| 188 | + <executions> |
| 189 | + <execution> |
| 190 | + <id>pom-lint</id> |
| 191 | + <phase>validate</phase> |
| 192 | + <goals> |
| 193 | + <goal>check</goal> |
| 194 | + </goals> |
| 195 | + </execution> |
| 196 | + </executions> |
| 197 | + </plugin> |
| 198 | + <plugin> |
| 199 | + <groupId>org.codehaus.mojo</groupId> |
| 200 | + <artifactId>exec-maven-plugin</artifactId> |
| 201 | + <version>${exec-maven-plugin.version}</version> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <goals> |
| 205 | + <goal>exec</goal> |
| 206 | + </goals> |
| 207 | + </execution> |
| 208 | + </executions> |
| 209 | + <configuration> |
| 210 | + <executable>java</executable> |
| 211 | + </configuration> |
| 212 | + </plugin> |
| 213 | + <plugin> |
| 214 | + <groupId>org.apache.maven.plugins</groupId> |
| 215 | + <artifactId>maven-shade-plugin</artifactId> |
| 216 | + <version>${maven-shade-plugin.version}</version> |
| 217 | + <configuration> |
| 218 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 219 | + <shadedClassifierName>${shadedClassifier}</shadedClassifierName> |
| 220 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 221 | + <filters> |
| 222 | + <filter> |
| 223 | + <artifact>*:*</artifact> |
| 224 | + <excludes> |
| 225 | + <exclude>org/datanucleus/**</exclude> |
| 226 | + <exclude>META-INF/*.SF</exclude> |
| 227 | + <exclude>META-INF/*.DSA</exclude> |
| 228 | + <exclude>META-INF/*.RSA</exclude> |
| 229 | + </excludes> |
| 230 | + </filter> |
| 231 | + </filters> |
| 232 | + </configuration> |
| 233 | + <executions> |
| 234 | + <execution> |
| 235 | + <phase>package</phase> |
| 236 | + <goals> |
| 237 | + <goal>shade</goal> |
| 238 | + </goals> |
| 239 | + <configuration> |
| 240 | + <transformers> |
| 241 | + <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 242 | + <resource>reference.conf</resource> |
| 243 | + </transformer> |
| 244 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 245 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 246 | + </transformer> |
| 247 | + </transformers> |
| 248 | + </configuration> |
| 249 | + </execution> |
| 250 | + </executions> |
| 251 | + </plugin> |
| 252 | + </plugins> |
| 253 | + <pluginManagement> |
| 254 | + <plugins> |
| 255 | + <plugin> |
| 256 | + <groupId>org.eclipse.m2e</groupId> |
| 257 | + <artifactId>lifecycle-mapping</artifactId> |
| 258 | + <version>1.0.0</version> |
| 259 | + <configuration> |
| 260 | + <lifecycleMappingMetadata> |
| 261 | + <pluginExecutions> |
| 262 | + <pluginExecution> |
| 263 | + <pluginExecutionFilter> |
| 264 | + <groupId>com.lewisd</groupId> |
| 265 | + <artifactId>lint-maven-plugin</artifactId> |
| 266 | + <versionRange>[0.0.11,)</versionRange> |
| 267 | + <goals> |
| 268 | + <goal>check</goal> |
| 269 | + </goals> |
| 270 | + </pluginExecutionFilter> |
| 271 | + <action> |
| 272 | + <ignore/> |
| 273 | + </action> |
| 274 | + </pluginExecution> |
| 275 | + </pluginExecutions> |
| 276 | + </lifecycleMappingMetadata> |
| 277 | + </configuration> |
| 278 | + </plugin> |
| 279 | + </plugins> |
| 280 | + </pluginManagement> |
| 281 | + </build> |
| 282 | +</project> |
0 commit comments