comparison Samples/MammographyDeepLearning/pom.xml @ 28:43923934e934

added sample: deep learning for mammography
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jun 2024 13:58:29 +0200
parents
children 118adbad648f
comparison
equal deleted inserted replaced
27:4a750ca9461e 28:43923934e934
1 <?xml version='1.0' encoding='UTF-8' ?>
2
3 <!--
4
5 SPDX-FileCopyrightText: 2023-2024 Sebastien Jodogne, UCLouvain, Belgium
6 SPDX-License-Identifier: GPL-3.0-or-later
7
8 -->
9
10 <project xmlns="http://maven.apache.org/POM/4.0.0"
11 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13 <modelVersion>4.0.0</modelVersion>
14 <build>
15 <plugins>
16 <plugin>
17 <groupId>org.apache.maven.plugins</groupId>
18 <artifactId>maven-jar-plugin</artifactId>
19 <configuration>
20 <archive>
21 <manifest>
22 <mainClass>Main</mainClass>
23 </manifest>
24 </archive>
25 </configuration>
26 </plugin>
27
28 <!-- Maven Shade plugin - for creating the uberjar / fatjar -->
29 <!-- see http://maven.apache.org/plugins/maven-shade-plugin/index.html for details -->
30 <plugin>
31 <groupId>org.apache.maven.plugins</groupId>
32 <artifactId>maven-shade-plugin</artifactId>
33 <configuration>
34 <transformers>
35 <transformer
36 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
37 </transformers>
38 </configuration>
39 <executions>
40 <execution>
41 <phase>package</phase>
42 <goals>
43 <goal>shade</goal>
44 </goals>
45 </execution>
46 </executions>
47 </plugin>
48
49 <!-- Include the Orthanc Java SDK -->
50 <plugin>
51 <groupId>org.codehaus.mojo</groupId>
52 <artifactId>build-helper-maven-plugin</artifactId>
53 <executions>
54 <execution>
55 <id>add-source</id>
56 <phase>generate-sources</phase>
57 <goals>
58 <goal>add-source</goal>
59 </goals>
60 <configuration>
61 <sources>
62 <source>${project.basedir}/../../JavaSDK/be/uclouvain/orthanc</source>
63 </sources>
64 </configuration>
65 </execution>
66 </executions>
67 </plugin>
68
69 </plugins>
70 </build>
71
72 <groupId>OrthancMammographyDeepLearning</groupId>
73 <artifactId>OrthancMammographyDeepLearning</artifactId>
74 <version>mainline</version>
75
76 <properties>
77 <maven.compiler.source>11</maven.compiler.source>
78 <maven.compiler.target>11</maven.compiler.target>
79 <djl.version>0.26.0</djl.version>
80 <exec.mainClass>Main</exec.mainClass>
81 </properties>
82
83 <repositories>
84 <repository>
85 <id>djl.ai</id>
86 <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
87 </repository>
88 </repositories>
89
90 <dependencyManagement>
91 <dependencies>
92 <dependency>
93 <groupId>ai.djl</groupId>
94 <artifactId>bom</artifactId>
95 <version>${djl.version}</version>
96 <type>pom</type>
97 <scope>import</scope>
98 </dependency>
99 </dependencies>
100 </dependencyManagement>
101
102 <dependencies>
103 <dependency>
104 <groupId>ai.djl</groupId>
105 <artifactId>api</artifactId>
106 </dependency>
107 <dependency>
108 <groupId>ai.djl.pytorch</groupId>
109 <artifactId>pytorch-engine</artifactId>
110 <scope>runtime</scope>
111 </dependency>
112 <dependency>
113 <groupId>ai.djl.pytorch</groupId>
114 <artifactId>pytorch-jni</artifactId>
115 <scope>runtime</scope>
116 </dependency>
117 <dependency>
118 <groupId>ai.djl.pytorch</groupId>
119 <artifactId>pytorch-model-zoo</artifactId>
120 <scope>runtime</scope>
121 </dependency>
122 <dependency>
123 <groupId>org.slf4j</groupId>
124 <artifactId>slf4j-simple</artifactId>
125 <version>1.7.36</version>
126 <scope>runtime</scope>
127 </dependency>
128
129 <!-- Include PyTorch native library for platforms -->
130 <dependency>
131 <groupId>ai.djl.pytorch</groupId>
132 <artifactId>pytorch-native-cpu</artifactId>
133 <classifier>linux-x86_64</classifier>
134 <scope>runtime</scope>
135 </dependency>
136 <!--dependency>
137 <groupId>ai.djl.pytorch</groupId>
138 <artifactId>pytorch-native-cpu</artifactId>
139 <classifier>win-x86_64</classifier>
140 <scope>runtime</scope>
141 </dependency-->
142 <!--dependency>
143 <groupId>ai.djl.pytorch</groupId>
144 <artifactId>pytorch-native-cpu</artifactId>
145 <classifier>osx-x86_64</classifier>
146 <scope>runtime</scope>
147 </dependency-->
148 <!--dependency>
149 <groupId>ai.djl.pytorch</groupId>
150 <artifactId>pytorch-native-cpu</artifactId>
151 <classifier>osx-aarch64</classifier>
152 <scope>runtime</scope>
153 </dependency-->
154
155 <dependency>
156 <groupId>org.json</groupId>
157 <artifactId>json</artifactId>
158 <version>20240303</version>
159 </dependency>
160
161 </dependencies>
162 </project>