Advertisement
aironman

dl4j-examples pom file

Nov 29th, 2019
190
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. ~ Copyright (c) 2015-2019 Skymind, Inc.
  4. ~
  5. ~ This program and the accompanying materials are made available under the
  6. ~ terms of the Apache License, Version 2.0 which is available at
  7. ~ https://www.apache.org/licenses/LICENSE-2.0.
  8. ~
  9. ~ Unless required by applicable law or agreed to in writing, software
  10. ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. ~ License for the specific language governing permissions and limitations
  13. ~ under the License.
  14. ~
  15. ~ SPDX-License-Identifier: Apache-2.0
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
  17.  
  18. <project xmlns="http://maven.apache.org/POM/4.0.0"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  21. <modelVersion>4.0.0</modelVersion>
  22. <artifactId>dl4j-examples</artifactId>
  23.  
  24. <parent>
  25. <groupId>org.deeplearning4j</groupId>
  26. <artifactId>deeplearning4j-examples-parent</artifactId>
  27. <version>1.0.0-SNAPSHOT</version>
  28. </parent>
  29.  
  30. <name>DeepLearning4j Examples</name>
  31.  
  32. <repositories>
  33. <repository>
  34. <id>snapshots-repo</id>
  35. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  36. <releases>
  37. <enabled>false</enabled>
  38. </releases>
  39. <snapshots>
  40. <enabled>true</enabled>
  41. <updatePolicy>daily</updatePolicy> <!-- Optional, update daily -->
  42. </snapshots>
  43. </repository>
  44. </repositories>
  45.  
  46. <distributionManagement>
  47. <snapshotRepository>
  48. <id>sonatype-nexus-snapshots</id>
  49. <name>Sonatype Nexus snapshot repository</name>
  50. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  51. </snapshotRepository>
  52. <repository>
  53. <id>nexus-releases</id>
  54. <name>Nexus Release Repository</name>
  55. <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  56. </repository>
  57. </distributionManagement>
  58.  
  59. <dependencyManagement>
  60. <dependencies>
  61. <dependency>
  62. <groupId>org.nd4j</groupId>
  63. <artifactId>nd4j-native-platform</artifactId>
  64. <version>${nd4j.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.nd4j</groupId>
  68. <artifactId>nd4j-cuda-9.2-platform</artifactId>
  69. <version>${nd4j.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.nd4j</groupId>
  73. <artifactId>nd4j-cuda-10.0-platform</artifactId>
  74. <version>${nd4j.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.nd4j</groupId>
  78. <artifactId>nd4j-cuda-10.1-platform</artifactId>
  79. <version>${nd4j.version}</version>
  80. </dependency>
  81. </dependencies>
  82. </dependencyManagement>
  83.  
  84. <dependencies>
  85. <!-- ND4J backend. You need one in every DL4J project. Normally define artifactId as either nd4j-native-platform or nd4j-cuda-X.X-platform to use CUDA GPUs (check parent pom for supported cuda versions) -->
  86. <dependency>
  87. <groupId>org.nd4j</groupId>
  88. <artifactId>${nd4j.backend}</artifactId>
  89. <version>${nd4j.version}</version>
  90. </dependency>
  91.  
  92. <!-- Core DL4J functionality -->
  93. <dependency>
  94. <groupId>org.deeplearning4j</groupId>
  95. <artifactId>deeplearning4j-nlp</artifactId>
  96. <version>${dl4j.version}</version>
  97. </dependency>
  98.  
  99. <dependency>
  100. <groupId>org.deeplearning4j</groupId>
  101. <artifactId>deeplearning4j-zoo</artifactId>
  102. <version>${dl4j.version}</version>
  103. </dependency>
  104.  
  105. <!-- deeplearning4j-ui is used for visualization: see http://deeplearning4j.org/visualization -->
  106. <dependency>
  107. <groupId>org.deeplearning4j</groupId>
  108. <artifactId>deeplearning4j-ui_${scala.binary.version}</artifactId>
  109. <version>${dl4j.version}</version>
  110. </dependency>
  111.  
  112. <!-- ParallelWrapper & ParallelInference live here -->
  113. <dependency>
  114. <groupId>org.deeplearning4j</groupId>
  115. <artifactId>deeplearning4j-parallel-wrapper</artifactId>
  116. <version>${dl4j.version}</version>
  117. </dependency>
  118.  
  119. <!-- Next 2: used for MapFileConversion Example. Note you need *both* together -->
  120. <dependency>
  121. <groupId>org.datavec</groupId>
  122. <artifactId>datavec-hadoop</artifactId>
  123. <version>${datavec.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-common</artifactId>
  128. <version>${hadoop.version}</version>
  129. <exclusions>
  130. <exclusion>
  131. <groupId>jdk.tools</groupId>
  132. <artifactId>jdk.tools</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>log4j</groupId>
  136. <artifactId>log4j</artifactId>
  137. </exclusion>
  138. <exclusion>
  139. <groupId>org.slf4j</groupId>
  140. <artifactId>slf4j-log4j12</artifactId>
  141. </exclusion>
  142. </exclusions>
  143. </dependency>
  144.  
  145.  
  146. <!-- Arbiter - used for hyperparameter optimization (grid/random search) -->
  147. <dependency>
  148. <groupId>org.deeplearning4j</groupId>
  149. <artifactId>arbiter-deeplearning4j</artifactId>
  150. <version>${arbiter.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.deeplearning4j</groupId>
  154. <artifactId>arbiter-ui_${scala.binary.version}</artifactId>
  155. <version>${arbiter.version}</version>
  156. </dependency>
  157.  
  158. <!-- datavec-data-codec: used only in video example for loading video data -->
  159. <dependency>
  160. <artifactId>datavec-data-codec</artifactId>
  161. <groupId>org.datavec</groupId>
  162. <version>${datavec.version}</version>
  163. </dependency>
  164.  
  165. <!-- Used in the feedforward/classification/MLP* and feedforward/regression/RegressionMathFunctions example -->
  166. <dependency>
  167. <groupId>jfree</groupId>
  168. <artifactId>jfreechart</artifactId>
  169. <version>${jfreechart.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.jfree</groupId>
  173. <artifactId>jcommon</artifactId>
  174. <version>${jcommon.version}</version>
  175. </dependency>
  176.  
  177. <!-- Used for downloading data in some of the examples -->
  178. <dependency>
  179. <groupId>org.apache.httpcomponents</groupId>
  180. <artifactId>httpclient</artifactId>
  181. <version>4.3.5</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.deeplearning4j.examples</groupId>
  185. <artifactId>shared-utilities</artifactId>
  186. <version>${project.version}</version>
  187. </dependency>
  188.  
  189. <dependency>
  190. <groupId>ch.qos.logback</groupId>
  191. <artifactId>logback-classic</artifactId>
  192. <version>${logback.version}</version>
  193. </dependency>
  194.  
  195. </dependencies>
  196.  
  197. <build>
  198. <plugins>
  199. <plugin>
  200. <groupId>org.codehaus.mojo</groupId>
  201. <artifactId>exec-maven-plugin</artifactId>
  202. <version>${exec-maven-plugin.version}</version>
  203. <executions>
  204. <execution>
  205. <goals>
  206. <goal>exec</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. <configuration>
  211. <executable>java</executable>
  212. </configuration>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-shade-plugin</artifactId>
  217. <version>${maven-shade-plugin.version}</version>
  218. <configuration>
  219. <shadedArtifactAttached>true</shadedArtifactAttached>
  220. <shadedClassifierName>${shadedClassifier}</shadedClassifierName>
  221. <createDependencyReducedPom>true</createDependencyReducedPom>
  222. <filters>
  223. <filter>
  224. <artifact>*:*</artifact>
  225. <excludes>
  226. <exclude>org/datanucleus/**</exclude>
  227. <exclude>META-INF/*.SF</exclude>
  228. <exclude>META-INF/*.DSA</exclude>
  229. <exclude>META-INF/*.RSA</exclude>
  230. </excludes>
  231. </filter>
  232. </filters>
  233.  
  234. </configuration>
  235.  
  236. <executions>
  237. <execution>
  238. <phase>package</phase>
  239. <goals>
  240. <goal>shade</goal>
  241. </goals>
  242. <configuration>
  243. <transformers>
  244. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  245. <resource>reference.conf</resource>
  246. </transformer>
  247. <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  248. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  249. </transformer>
  250. </transformers>
  251. </configuration>
  252. </execution>
  253. </executions>
  254. </plugin>
  255.  
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-compiler-plugin</artifactId>
  259. <version>3.5.1</version>
  260. <configuration>
  261. <source>${java.version}</source>
  262. <target>${java.version}</target>
  263. </configuration>
  264. </plugin>
  265. </plugins>
  266. </build>
  267.  
  268. <profiles>
  269. <profile>
  270. <id>OpenJFX</id>
  271. <dependencies>
  272. <dependency>
  273. <groupId>com.oracle</groupId>
  274. <artifactId>javafx</artifactId>
  275. <version>${javafx.version}</version>
  276. </dependency>
  277. </dependencies>
  278. </profile>
  279. </profiles>
  280.  
  281.  
  282.  
  283. </project>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement