source: java2python/geniuswebtranslator/pom.xml@ 1568

Last change on this file since 1568 was 1567, checked in by wouter, 2 days ago

#453 fix pom so that test code and resources only added in the test phase, so that mockito can be installed only in the test phase. Which is important for avoiding mockito version conflicts

File size: 8.4 KB
RevLine 
[517]1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>tudelft.utilities.j2p</groupId>
6 <artifactId>geniuswebtranslator</artifactId>
[1510]7 <version>1.0.8</version>
[517]8
9 <properties>
10 <!-- Tell Maven we want to use Java 8 -->
11 <maven.compiler.source>1.8</maven.compiler.source>
12 <maven.compiler.target>1.8</maven.compiler.target>
13 <!-- Tell Maven to treat all source files as UTF-8 -->
14 <jackson-2-version>2.12.3</jackson-2-version>
15 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16 <passwd>${env.ARTIFACTORY_PASS}</passwd>
[519]17 <geniusweb.version>2.1.6</geniusweb.version>
[1120]18 <j2p-version>${project.version}</j2p-version>
[517]19 </properties>
20
21
22
23 <distributionManagement>
24 <repository>
25 <id>artifactory.ewi.tudelft.nl</id>
[1113]26 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
[517]27 </repository>
28 </distributionManagement>
29
30 <repositories>
31 <repository>
32 <id>artifactory.ewi.tudelft.nl</id>
[1113]33 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
[517]34 <snapshots>
35 <enabled>false</enabled>
36 </snapshots>
37 </repository>
38 </repositories>
39
40 <pluginRepositories>
41 <pluginRepository>
42 <id>central</id>
[519]43 <url>https://repo1.maven.org/maven2</url>
[517]44 </pluginRepository>
45 <pluginRepository>
46 <id>jfrog-plugins-release</id>
47 <name>plugins-release</name>
48 <url>https://oss.jfrog.org/artifactory/plugins-release</url>
49 </pluginRepository>
50 </pluginRepositories>
51
52 <dependencies>
53
54 <dependency>
[519]55 <groupId>tudelft.utilities.j2p</groupId>
56 <artifactId>core</artifactId>
[1120]57 <version>${j2p-version}</version>
[517]58 </dependency>
59
[526]60 <dependency>
61 <groupId>tudelft.utilities.j2p</groupId>
[692]62 <artifactId>tudutils-t</artifactId>
[1120]63 <version>${j2p-version}</version>
[526]64 </dependency>
[517]65
[526]66 <dependency>
67 <groupId>tudelft.utilities.j2p</groupId>
[711]68 <artifactId>tudunit-t</artifactId>
[1120]69 <version>${j2p-version}</version>
[711]70 </dependency>
71
72 <dependency>
73 <groupId>tudelft.utilities.j2p</groupId>
[692]74 <artifactId>jackson-t</artifactId>
[1120]75 <version>${j2p-version}</version>
[692]76 </dependency>
77 <dependency>
78 <groupId>tudelft.utilities.j2p</groupId>
[786]79 <artifactId>mockito-t</artifactId>
[1120]80 <version>${j2p-version}</version>
[786]81 </dependency>
82 <dependency>
83 <groupId>tudelft.utilities.j2p</groupId>
[526]84 <artifactId>junit-t</artifactId>
[1120]85 <version>${j2p-version}</version>
[526]86 </dependency>
[960]87 <dependency>
[1483]88 <groupId>tudelft.utilities.j2p</groupId>
89 <artifactId>websocket-t</artifactId>
90 <version>${j2p-version}</version>
91 </dependency>
92 <dependency>
[960]93 <groupId>tudelft.utilities</groupId>
94 <artifactId>logging</artifactId>
[1419]95 <version>1.1.1</version>
[960]96 </dependency>
[1199]97 <dependency>
98 <groupId>tudelft</groupId>
99 <artifactId>annotations</artifactId>
100 <version>1.0.0</version>
101 </dependency>
[1483]102
103
104 <!-- needed for the profileconnection -->
[1472]105 <dependency>
106 <groupId>javax.websocket</groupId>
107 <artifactId>javax.websocket-api</artifactId>
108 <version>1.1</version>
109 </dependency>
[1153]110
[1483]111 <!-- needed for the ip package Disabled as part of code was disabled -->
112 <!-- <dependency> -->
[1185]113 <!-- <groupId>org.apache.commons</groupId> -->
114 <!-- <artifactId>commons-math</artifactId> -->
115 <!-- <version>2.2</version> -->
116 <!-- </dependency> -->
117
[804]118 <!-- @NonNull annotation -->
119 <dependency>
120 <groupId>org.eclipse.jdt</groupId>
121 <artifactId>org.eclipse.jdt.annotation</artifactId>
122 <version>2.3.0</version>
123 </dependency>
[649]124
[804]125
[1153]126
[595]127 <!-- Normally these below would be in TEST scope. But we need to compile
128 the test code in NORMAL mode, not in test mode, because we don't want to
129 RUN these tests. We only want to run the COMPILED code -->
130 <dependency>
131 <groupId>junit</groupId>
132 <artifactId>junit</artifactId>
133 <version>4.12</version>
134 </dependency>
135 <dependency>
136 <groupId>org.mockito</groupId>
137 <artifactId>mockito-core</artifactId>
[1548]138 <version>5.18.0</version>
[595]139 </dependency>
140 <dependency>
141 <groupId>tudelft.utilities</groupId>
142 <artifactId>junit</artifactId>
[1406]143 <version>1.0.6</version>
[595]144 </dependency>
[526]145
[649]146 <!-- pyrunner is needed for running the compiled code -->
147 <dependency>
148 <groupId>tudelft.utilities</groupId>
149 <artifactId>pyrunner</artifactId>
[1406]150 <version>1.3.0</version>
[649]151 <scope>test</scope>
152 </dependency>
[595]153
[649]154
[517]155 </dependencies>
156
157 <build>
158
159 <plugins>
160
161
162
163 <plugin>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-compiler-plugin</artifactId>
166 <version>3.8.0</version>
167 <configuration>
168 <source>1.8</source>
169 <target>1.8</target>
170 </configuration>
171 </plugin>
172
173 <plugin>
[519]174 <groupId>org.codehaus.mojo</groupId>
175 <artifactId>build-helper-maven-plugin</artifactId>
176 <version>3.4.0</version>
[517]177 <executions>
178 <execution>
[1567]179 <id>add-source</id>
180 <phase>generate-sources</phase>
[517]181 <goals>
[519]182 <goal>add-source</goal>
[517]183 </goals>
184 <configuration>
[519]185 <sources>
[892]186 <source>geniusweb/src/main/java</source>
[1567]187 </sources>
188 </configuration>
189 </execution>
190 <execution>
191 <id>add-test-source</id>
192 <phase>generate-test-sources</phase>
193 <goals>
194 <goal>add-test-source</goal>
195 </goals>
196 <configuration>
197 <sources>
[892]198 <source>geniusweb/src/test/java</source>
[519]199 </sources>
[517]200 </configuration>
201 </execution>
[1567]202 <execution>
203 <id>add-test-resource</id>
204 <phase>generate-test-resources</phase>
205 <goals>
206 <goal>add-test-resource</goal>
207 </goals>
208 <configuration>
209 <resources>
210 <!-- really a resource, but this copies it as needed -->
211 <resource>
212 <directory>
213 geniusweb/src/test/resources</directory>
214 </resource>
215 </resources>
216 </configuration>
217 </execution>
[892]218
[517]219 </executions>
220 </plugin>
221
222 <plugin>
223 <groupId>org.jfrog.buildinfo</groupId>
224 <artifactId>artifactory-maven-plugin</artifactId>
[1113]225 <version>3.6.1</version>
[517]226 <executions>
227 <execution>
228 <id>build-info</id>
229 <goals>
230 <goal>publish</goal>
231 </goals>
232 <configuration>
233 <publisher>
234 <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
235 <repoKey>libs-release</repoKey>
236 <username>wouter</username>
237 <password>${passwd}</password>
238 </publisher>
239 </configuration>
240 </execution>
241 </executions>
242 </plugin>
243
244 <plugin>
245 <groupId>org.apache.maven.plugins</groupId>
[649]246 <artifactId>maven-enforcer-plugin</artifactId>
247 <version>3.0.0-M2</version>
248 <executions>
249 <execution>
250 <id>enforce</id>
251 <configuration>
252 <rules>
253 <dependencyConvergence />
254 </rules>
255 </configuration>
256 <goals>
257 <goal>enforce</goal>
258 </goals>
259 </execution>
260 </executions>
261 </plugin>
262
263
264
265 <plugin>
266 <groupId>org.apache.maven.plugins</groupId>
[517]267 <artifactId>maven-assembly-plugin</artifactId>
268 <version>2.4.1</version>
269 <configuration>
270 <!-- get all project dependencies -->
271 <descriptorRefs>
272 <descriptorRef>jar-with-dependencies</descriptorRef>
273 </descriptorRefs>
274 <archive>
275 <manifest>
276 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
277 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
278 </manifest>
279 </archive>
280 </configuration>
281 <executions>
282 <execution>
283 <id>make-assembly</id>
284 <!-- bind to the packaging phase -->
285 <phase>package</phase>
286 <goals>
287 <goal>single</goal>
288 </goals>
289 </execution>
290 </executions>
291 </plugin>
292
293
294 </plugins>
295
296 <pluginManagement>
297 <plugins>
298 <plugin>
299 <groupId>org.eclipse.m2e</groupId>
300 <artifactId>lifecycle-mapping</artifactId>
301 <version>1.0.0</version>
302 <configuration>
303 <lifecycleMappingMetadata>
304 <pluginExecutions>
305 <pluginExecution>
306 <pluginExecutionFilter>
307 <groupId>org.jfrog.buildinfo</groupId>
308 <artifactId>artifactory-maven-plugin</artifactId>
309 <versionRange>[1.0.0,)</versionRange>
310 <goals>
311 <goal>publish</goal>
312 </goals>
313 </pluginExecutionFilter>
314 <action>
315 <ignore />
316 </action>
317 </pluginExecution>
318 </pluginExecutions>
319 </lifecycleMappingMetadata>
320 </configuration>
321 </plugin>
322 </plugins>
323 </pluginManagement>
324
325
326 </build>
327
328</project>
Note: See TracBrowser for help on using the repository browser.