source: java2python/geniuswebtranslator/pom.xml@ 898

Last change on this file since 898 was 892, checked in by wouter, 5 months ago

#303 restructured code to have more maven-like structure in geniusweb subfolder. changed tests to use getResource(). Fixed pom so that geniusweb codes are compiled and placed in target for testing.

File size: 6.8 KB
Line 
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>
7 <version>1.0.0</version>
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>
17 <geniusweb.version>2.1.6</geniusweb.version>
18 </properties>
19
20
21
22 <distributionManagement>
23 <repository>
24 <id>artifactory.ewi.tudelft.nl</id>
25 <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
26 </repository>
27 </distributionManagement>
28
29 <repositories>
30 <repository>
31 <id>artifactory.ewi.tudelft.nl</id>
32 <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
33 <snapshots>
34 <enabled>false</enabled>
35 </snapshots>
36 </repository>
37 </repositories>
38
39 <pluginRepositories>
40 <pluginRepository>
41 <id>central</id>
42 <url>https://repo1.maven.org/maven2</url>
43 </pluginRepository>
44 <pluginRepository>
45 <id>jfrog-plugins-release</id>
46 <name>plugins-release</name>
47 <url>https://oss.jfrog.org/artifactory/plugins-release</url>
48 </pluginRepository>
49 </pluginRepositories>
50
51 <dependencies>
52
53 <dependency>
54 <groupId>tudelft.utilities.j2p</groupId>
55 <artifactId>core</artifactId>
56 <version>1.0.0</version>
57 </dependency>
58
59
60 <dependency>
61 <groupId>tudelft.utilities.j2p</groupId>
62 <artifactId>tudutils-t</artifactId>
63 <version>1.0.0</version>
64 </dependency>
65
66 <dependency>
67 <groupId>tudelft.utilities.j2p</groupId>
68 <artifactId>tudunit-t</artifactId>
69 <version>1.0.0</version>
70 </dependency>
71
72 <dependency>
73 <groupId>tudelft.utilities.j2p</groupId>
74 <artifactId>jackson-t</artifactId>
75 <version>1.0.0</version>
76 </dependency>
77 <dependency>
78 <groupId>tudelft.utilities.j2p</groupId>
79 <artifactId>mockito-t</artifactId>
80 <version>1.0.0</version>
81 </dependency>
82 <dependency>
83 <groupId>tudelft.utilities.j2p</groupId>
84 <artifactId>junit-t</artifactId>
85 <version>1.0.0</version>
86 </dependency>
87
88 <!-- @NonNull annotation -->
89 <dependency>
90 <groupId>org.eclipse.jdt</groupId>
91 <artifactId>org.eclipse.jdt.annotation</artifactId>
92 <version>2.3.0</version>
93 </dependency>
94
95
96 <!-- Normally these below would be in TEST scope. But we need to compile
97 the test code in NORMAL mode, not in test mode, because we don't want to
98 RUN these tests. We only want to run the COMPILED code -->
99 <dependency>
100 <groupId>junit</groupId>
101 <artifactId>junit</artifactId>
102 <version>4.12</version>
103 </dependency>
104 <dependency>
105 <groupId>org.mockito</groupId>
106 <artifactId>mockito-core</artifactId>
107 <version>3.11.2</version>
108 </dependency>
109 <dependency>
110 <groupId>tudelft.utilities</groupId>
111 <artifactId>junit</artifactId>
112 <version>1.0.5</version>
113 </dependency>
114
115 <!-- pyrunner is needed for running the compiled code -->
116 <dependency>
117 <groupId>tudelft.utilities</groupId>
118 <artifactId>pyrunner</artifactId>
119 <version>1.1.2</version>
120 <scope>test</scope>
121 </dependency>
122
123
124 </dependencies>
125
126 <build>
127
128 <plugins>
129
130
131
132 <plugin>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-compiler-plugin</artifactId>
135 <version>3.8.0</version>
136 <configuration>
137 <source>1.8</source>
138 <target>1.8</target>
139 </configuration>
140 </plugin>
141
142 <plugin>
143 <groupId>org.codehaus.mojo</groupId>
144 <artifactId>build-helper-maven-plugin</artifactId>
145 <version>3.4.0</version>
146 <executions>
147 <execution>
148 <phase>generate-sources</phase>
149 <goals>
150 <goal>add-source</goal>
151 </goals>
152 <configuration>
153 <sources>
154 <source>geniusweb/src/main/java</source>
155 <source>geniusweb/src/test/java</source>
156 <!-- next one is really a resource, but this copies it as needed -->
157 <source>geniusweb/src/test/resources</source>
158 </sources>
159 </configuration>
160 </execution>
161
162 </executions>
163 </plugin>
164
165 <plugin>
166 <groupId>org.jfrog.buildinfo</groupId>
167 <artifactId>artifactory-maven-plugin</artifactId>
168 <version>3.2.3</version>
169 <executions>
170 <execution>
171 <id>build-info</id>
172 <goals>
173 <goal>publish</goal>
174 </goals>
175 <configuration>
176 <publisher>
177 <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
178 <repoKey>libs-release</repoKey>
179 <username>wouter</username>
180 <password>${passwd}</password>
181 </publisher>
182 </configuration>
183 </execution>
184 </executions>
185 </plugin>
186
187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-enforcer-plugin</artifactId>
190 <version>3.0.0-M2</version>
191 <executions>
192 <execution>
193 <id>enforce</id>
194 <configuration>
195 <rules>
196 <dependencyConvergence />
197 </rules>
198 </configuration>
199 <goals>
200 <goal>enforce</goal>
201 </goals>
202 </execution>
203 </executions>
204 </plugin>
205
206
207
208 <plugin>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-assembly-plugin</artifactId>
211 <version>2.4.1</version>
212 <configuration>
213 <!-- get all project dependencies -->
214 <descriptorRefs>
215 <descriptorRef>jar-with-dependencies</descriptorRef>
216 </descriptorRefs>
217 <archive>
218 <manifest>
219 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
220 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
221 </manifest>
222 </archive>
223 </configuration>
224 <executions>
225 <execution>
226 <id>make-assembly</id>
227 <!-- bind to the packaging phase -->
228 <phase>package</phase>
229 <goals>
230 <goal>single</goal>
231 </goals>
232 </execution>
233 </executions>
234 </plugin>
235
236
237 </plugins>
238
239 <pluginManagement>
240 <plugins>
241 <plugin>
242 <groupId>org.eclipse.m2e</groupId>
243 <artifactId>lifecycle-mapping</artifactId>
244 <version>1.0.0</version>
245 <configuration>
246 <lifecycleMappingMetadata>
247 <pluginExecutions>
248 <pluginExecution>
249 <pluginExecutionFilter>
250 <groupId>org.jfrog.buildinfo</groupId>
251 <artifactId>artifactory-maven-plugin</artifactId>
252 <versionRange>[1.0.0,)</versionRange>
253 <goals>
254 <goal>publish</goal>
255 </goals>
256 </pluginExecutionFilter>
257 <action>
258 <ignore />
259 </action>
260 </pluginExecution>
261 </pluginExecutions>
262 </lifecycleMappingMetadata>
263 </configuration>
264 </plugin>
265 </plugins>
266 </pluginManagement>
267
268
269 </build>
270
271</project>
Note: See TracBrowser for help on using the repository browser.