source: java2python/core/pom.xml@ 1021

Last change on this file since 1021 was 1021, checked in by wouter, 4 months ago

#345 using BCEL to get the source file out of a class file. This to get the proper python source file reference.

File size: 8.5 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>core</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 </properties>
18
19
20
21 <distributionManagement>
22 <repository>
23 <id>artifactory.ewi.tudelft.nl</id>
24 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
25 </repository>
26 </distributionManagement>
27
28 <repositories>
29 <repository>
30 <id>artifactory.ewi.tudelft.nl</id>
31 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
32 <snapshots>
33 <enabled>false</enabled>
34 </snapshots>
35 </repository>
36 </repositories>
37
38 <pluginRepositories>
39 <pluginRepository>
40 <id>central</id>
41 <url>https://repo1.maven.org/maven2</url>
42 </pluginRepository>
43 <pluginRepository>
44 <id>jfrog-plugins-release</id>
45 <name>plugins-release</name>
46 <url>https://oss.jfrog.org/artifactory/plugins-release</url>
47 </pluginRepository>
48 </pluginRepositories>
49
50 <dependencies>
51 <dependency>
52 <groupId>com.github.javaparser</groupId>
53 <artifactId>javaparser-symbol-solver-core</artifactId>
54 <version>3.24.8</version>
55 </dependency>
56 <dependency>
57 <groupId>junit</groupId>
58 <artifactId>junit</artifactId>
59 <version>4.12</version>
60 <scope>test</scope>
61 </dependency>
62
63 <!-- FIXME this should be removed when we have separated the utilities
64 translator -->
65 <dependency>
66 <groupId>tudelft.utilities</groupId>
67 <artifactId>utilities</artifactId>
68 <version>1.3.0</version>
69 </dependency>
70
71 <dependency>
72 <groupId>tudelft.utilities</groupId>
73 <artifactId>logging</artifactId>
74 <version>1.0.2</version>
75 </dependency>
76
77 <dependency>
78 <groupId>tudelft.utilities</groupId>
79 <artifactId>pyrunner</artifactId>
80 <version>1.2.0</version>
81 </dependency>
82
83 <dependency>
84 <groupId>org.eclipse.jdt</groupId>
85 <artifactId>org.eclipse.jdt.annotation</artifactId>
86 <version>2.3.0</version>
87 </dependency>
88
89 <dependency>
90 <groupId>com.fasterxml.jackson.core</groupId>
91 <artifactId>jackson-core</artifactId>
92 <version>${jackson-2-version}</version>
93 <scope>test</scope>
94 </dependency>
95
96 <!-- Just the annotations; use this dependency if you want to attach annotations
97 to classes without connecting them to the code. -->
98 <dependency>
99 <groupId>com.fasterxml.jackson.core</groupId>
100 <artifactId>jackson-annotations</artifactId>
101 <version>${jackson-2-version}</version>
102 <scope>test</scope>
103 </dependency>
104
105 <!-- databinding; ObjectMapper, JsonNode and related classes are here -->
106 <dependency>
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
109 <version>${jackson-2-version}</version>
110 <scope>test</scope>
111 </dependency>
112
113 <!-- smile (binary JSON). Other artifacts in this group do other formats. -->
114 <dependency>
115 <groupId>com.fasterxml.jackson.dataformat</groupId>
116 <artifactId>jackson-dataformat-smile</artifactId>
117 <version>${jackson-2-version}</version>
118 <scope>test</scope>
119 </dependency>
120 <!-- JAX-RS provider -->
121 <dependency>
122 <groupId>com.fasterxml.jackson.jaxrs</groupId>
123 <artifactId>jackson-jaxrs-json-provider</artifactId>
124 <version>${jackson-2-version}</version>
125 <scope>test</scope>
126 </dependency>
127 <!-- Support for JAX-B annotations as additional configuration -->
128 <dependency>
129 <groupId>com.fasterxml.jackson.module</groupId>
130 <artifactId>jackson-module-jaxb-annotations</artifactId>
131 <version>${jackson-2-version}</version>
132 <scope>test</scope>
133 </dependency>
134
135 <!-- Used ONLY for getting the source file of a class. #345 -->
136 <dependency>
137 <groupId>org.apache.bcel</groupId>
138 <artifactId>bcel</artifactId>
139 <version>6.10.0</version>
140 </dependency>
141
142 </dependencies>
143
144 <build>
145
146
147 <plugins>
148
149 <!-- This adds additional source packages -->
150 <plugin>
151 <groupId>org.codehaus.mojo</groupId>
152 <artifactId>build-helper-maven-plugin</artifactId>
153 <version>1.9.1</version>
154 <executions>
155 <execution>
156 <id>add-test-source</id>
157 <phase>generate-test-sources</phase>
158 <goals>
159 <goal>add-test-source</goal>
160 </goals>
161 <configuration>
162 <sources>
163 <source>src/test/overload</source>
164 <source>src/test/overloadconstructor</source>
165 <source>src/test/hasnext</source>
166 <source>src/test/iterator</source>
167 <source>src/test/resourcestest</source>
168 <source>src/test/reservedword</source>
169 </sources>
170 </configuration>
171 </execution>
172 </executions>
173 </plugin>
174
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-compiler-plugin</artifactId>
178 <version>3.8.0</version>
179 <configuration>
180 <source>1.8</source>
181 <target>1.8</target>
182 </configuration>
183 </plugin>
184
185 <plugin>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-source-plugin</artifactId>
188 <version>3.1.0</version>
189 <executions>
190 <execution>
191 <id>attach-sources</id>
192 <goals>
193 <goal>jar</goal>
194 </goals>
195 </execution>
196 </executions>
197 </plugin>
198
199 <plugin>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-javadoc-plugin</artifactId>
202 <version>2.10.1</version>
203 <executions>
204 <execution>
205 <id>attach-javadocs</id>
206 <goals>
207 <goal>jar</goal>
208 </goals>
209 <configuration>
210 <additionalparam>${javadoc.opts}</additionalparam>
211 <additionalparam>-Xdoclint:none</additionalparam>
212 </configuration>
213 </execution>
214 </executions>
215 </plugin>
216
217 <plugin>
218 <groupId>org.jfrog.buildinfo</groupId>
219 <artifactId>artifactory-maven-plugin</artifactId>
220 <version>3.2.3</version>
221 <executions>
222 <execution>
223 <id>build-info</id>
224 <goals>
225 <goal>publish</goal>
226 </goals>
227 <configuration>
228 <publisher>
229 <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
230 <repoKey>libs-release</repoKey>
231 <username>wouter</username>
232 <password>${passwd}</password>
233 </publisher>
234 </configuration>
235 </execution>
236 </executions>
237 </plugin>
238
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-enforcer-plugin</artifactId>
242 <version>3.0.0-M2</version>
243 <executions>
244 <execution>
245 <id>enforce</id>
246 <configuration>
247 <rules>
248 <dependencyConvergence />
249 </rules>
250 </configuration>
251 <goals>
252 <goal>enforce</goal>
253 </goals>
254 </execution>
255 </executions>
256 </plugin>
257
258
259
260 <plugin>
261 <groupId>org.apache.maven.plugins</groupId>
262 <artifactId>maven-assembly-plugin</artifactId>
263 <version>2.4.1</version>
264 <configuration>
265 <!-- get all project dependencies -->
266 <descriptorRefs>
267 <descriptorRef>jar-with-dependencies</descriptorRef>
268 </descriptorRefs>
269 <archive>
270 <manifest>
271 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
272 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
273 </manifest>
274 </archive>
275 </configuration>
276 <executions>
277 <execution>
278 <id>make-assembly</id>
279 <!-- bind to the packaging phase -->
280 <phase>package</phase>
281 <goals>
282 <goal>single</goal>
283 </goals>
284 </execution>
285 </executions>
286 </plugin>
287
288
289 </plugins>
290
291 <pluginManagement>
292 <plugins>
293 <plugin>
294 <groupId>org.eclipse.m2e</groupId>
295 <artifactId>lifecycle-mapping</artifactId>
296 <version>1.0.0</version>
297 <configuration>
298 <lifecycleMappingMetadata>
299 <pluginExecutions>
300 <pluginExecution>
301 <pluginExecutionFilter>
302 <groupId>org.jfrog.buildinfo</groupId>
303 <artifactId>artifactory-maven-plugin</artifactId>
304 <versionRange>[1.0.0,)</versionRange>
305 <goals>
306 <goal>publish</goal>
307 </goals>
308 </pluginExecutionFilter>
309 <action>
310 <ignore />
311 </action>
312 </pluginExecution>
313 </pluginExecutions>
314 </lifecycleMappingMetadata>
315 </configuration>
316 </plugin>
317 </plugins>
318 </pluginManagement>
319
320
321 </build>
322
323</project>
Note: See TracBrowser for help on using the repository browser.