Debian Codegraph @

debian/pom.xml

raw symbols SCIP
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2 <modelVersion>4.0.0</modelVersion>
3 <groupId>com.googlecode.ez-vcard</groupId>
4 <artifactId>ez-vcard</artifactId>
5 <packaging>bundle</packaging> <!-- "bundle" used for OSGi support -->
6 <version>0.10.5</version>
7 <name>ez-vcard</name>
8 <url>http://github.com/mangstadt/ez-vcard</url>
9 <inceptionYear>2012</inceptionYear>
10 <organization>
11 <name>Michael Angstadt</name>
12 </organization>
13 <description>A library that reads and writes vCards, supporting all versions of the vCard standard (2.1, 3.0, and 4.0) as well as xCard (XML-encoded vCards), hCard (HTML-encoded vCards), and jCard (JSON-encoded vCards).</description>
14
15 <!-- <parent>
16 <groupId>org.sonatype.oss</groupId>
17 <artifactId>oss-parent</artifactId>
18 <version>7</version>
19 </parent>
20 -->
21 <licenses>
22 <license>
23 <name>FreeBSD License</name>
24 <url>http://opensource.org/licenses/bsd-license.php</url>
25 </license>
26 </licenses>
27
28 <developers>
29 <developer>
30 <name>Michael Angstadt</name>
31 <email>[email protected]</email>
32 <roles>
33 <role>Lead Developer</role>
34 </roles>
35 </developer>
36 </developers>
37
38 <issueManagement>
39 <system>Github Issue Tracker</system>
40 <url>https://github.com/mangstadt/ez-vcard/issues</url>
41 </issueManagement>
42
43 <scm>
44 <connection>scm:git:https://github.com/mangstadt/ez-vcard.git</connection>
45 <developerConnection>scm:git:https://github.com/mangstadt/ez-vcard.git</developerConnection>
46 <url>https://github.com/mangstadt/ez-vcard/commits/master</url>
47 </scm>
48
49 <properties>
50 <java.version>1.5</java.version>
51 </properties>
52
53 <dependencies>
54 <!--
55 Selected portions of this library's source code have been incorporated into the ez-vcard code base to improve Android compatibility.
56 See: https://groups.google.com/forum/?fromgroups=#!topic/ez-vcard-discuss/w2TK7yetwr8
57 <dependency>
58 <groupId>commons-codec</groupId>
59 <artifactId>commons-codec</artifactId>
60 <version>1.10</version>
61 </dependency>
62 -->
63 <dependency>
64 <groupId>com.github.mangstadt</groupId>
65 <artifactId>vinnie</artifactId>
66 <version>2.0.2</version>
67 </dependency>
68 <dependency>
69 <groupId>org.jsoup</groupId>
70 <artifactId>jsoup</artifactId>
71 <version>1.11.3</version>
72 </dependency>
73 <dependency>
74 <groupId>org.freemarker</groupId>
75 <artifactId>freemarker</artifactId>
76 <version>2.3.28</version>
77 </dependency>
78 <dependency>
79 <groupId>com.fasterxml.jackson.core</groupId>
80 <artifactId>jackson-core</artifactId>
81 <version>2.9.8</version>
82 </dependency>
83 <dependency>
84 <groupId>com.fasterxml.jackson.core</groupId>
85 <artifactId>jackson-databind</artifactId>
86 <version>2.9.8</version>
87
88 <!--
89 The only classes that refer to objects from jackson-databind are JCardModule, JCardSerializer, and JCardDeserializer, all of which
90 consume external objects from jackson-databind for their functionality, so any project using them will already have its own dependency
91 on jackson-databind.
92 -->
93 <optional>true</optional>
94 </dependency>
95 <dependency>
96 <groupId>junit</groupId>
97 <artifactId>junit</artifactId>
98 <version>4.12</version>
99 <scope>test</scope>
100 </dependency>
101 <dependency>
102 <groupId>xmlunit</groupId>
103 <artifactId>xmlunit</artifactId>
104 <version>1.6</version>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
108 <groupId>org.mockito</groupId>
109 <artifactId>mockito-all</artifactId>
110 <version>1.10.19</version>
111 <scope>test</scope>
112 </dependency>
113 <dependency> <!-- For testing XML 1.1 -->
114 <groupId>xalan</groupId>
115 <artifactId>xalan</artifactId>
116 <version>2.7.2</version>
117 <scope>test</scope>
118 </dependency>
119 <dependency>
120 <groupId>nl.jqno.equalsverifier</groupId>
121 <artifactId>equalsverifier</artifactId>
122 <version>1.7.6</version>
123 <scope>test</scope>
124 </dependency>
125 </dependencies>
126
127 <build>
128 <resources>
129 <!--
130 Copy all resources into the JAR, but only filter "ez-vcard.properties"
131 -->
132 <resource>
133 <directory>src/main/resources</directory>
134 </resource>
135 <resource>
136 <directory>src/main/resources</directory>
137 <filtering>true</filtering>
138 <includes>
139 <include>ezvcard/ez-vcard.properties</include>
140 </includes>
141 </resource>
142
143 <!--
144 For reasons unknown, the "eclipse:eclipse" goal fails with the above <resource> definitions.
145 Uncomment the <resource> block below and comment out the <resource> blocks above when running this goal.
146 <resource>
147 <directory>src/main/resources</directory>
148 <filtering>true</filtering>
149 </resource>
150 -->
151 </resources>
152 <plugins>
153 <plugin>
154 <groupId>org.apache.felix</groupId>
155 <artifactId>maven-bundle-plugin</artifactId>
156 <version>3.5.1</version>
157 <extensions>true</extensions>
158 <configuration>
159 <instructions>
160 <!--
161 The plugin must be instructed to retrieve the filtered files from the "target/classes" directory.
162 Otherwise, it will copy the unfiltered versions in "src/main/resources" to the JAR.
163 -->
164 <Include-Resource>{maven-resources}, {ezvcard/ez-vcard.properties=target/classes/ezvcard/ez-vcard.properties}</Include-Resource>
165
166 <!-- Define optional dependencies -->
167 <Import-Package>
168 com.fasterxml.jackson.*;resolution:=optional,
169 org.jsoup.*;resolution:=optional,
170 freemarker.*;resolution:=optional,
171 *
172 </Import-Package>
173 </instructions>
174 </configuration>
175 </plugin>
176 <plugin>
177 <artifactId>maven-resources-plugin</artifactId>
178 <version>2.4.3</version>
179 <configuration>
180 <encoding>UTF-8</encoding>
181 </configuration>
182 </plugin>
183
184 <plugin>
185 <artifactId>maven-compiler-plugin</artifactId>
186 <version>2.3.2</version>
187 <configuration>
188 <encoding>UTF-8</encoding>
189 <source>${java.version}</source>
190 <target>${java.version}</target>
191 </configuration>
192 </plugin>
193
194 <!-- Copy the project's dependencies into a folder -->
195 <plugin>
196 <artifactId>maven-dependency-plugin</artifactId>
197 <executions>
198 <execution>
199 <phase>package</phase>
200 <goals>
201 <goal>copy-dependencies</goal>
202 </goals>
203 <configuration>
204 <!-- do not copy unit test dependencies -->
205 <includeScope>compile</includeScope>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
210
211 <!-- Create a source code JAR -->
212 <plugin>
213 <groupId>org.apache.maven.plugins</groupId>
214 <artifactId>maven-source-plugin</artifactId>
215 <version>3.0.1</version>
216 <executions>
217 <execution>
218 <goals>
219 <goal>jar</goal>
220 </goals>
221 </execution>
222 </executions>
223 </plugin>
224
225 <!-- Create a Javadoc JAR -->
226 <plugin>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-javadoc-plugin</artifactId>
229 <version>3.0.1</version>
230 <configuration>
231 <encoding>UTF-8</encoding>
232 <linksource>true</linksource>
233 <links>
234 <link>https://mangstadt.github.io/vinnie/javadocs/latest/</link>
235 <link>http://freemarker.incubator.apache.org/docs/api</link>
236 <link>http://jsoup.org/apidocs/</link>
237 <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
238 </links>
239 <quiet>true</quiet>
240
241 <!-- The build fails if it detects Javascript in the footer. -->
242 <additionalOptions>
243 <additionalOption>--allow-script-in-comments</additionalOption>
244 </additionalOptions>
245
246 <!-- exclude commons-codec source -->
247 <excludePackageNames>ezvcard.util.org.*</excludePackageNames>
248
249 <!-- Add Javascript syntax highlighter -->
250 <top><![CDATA[
251 <script src="doc-files/shCore.js" type="text/javascript"></script>
252 <script src="doc-files/shBrushJava.js" type="text/javascript"></script>
253 ]]></top>
254 <footer><![CDATA[
255 <script type="text/javascript">
256 SyntaxHighlighter.defaults["auto-links"] = false;
257 SyntaxHighlighter.defaults["gutter"] = false;
258 SyntaxHighlighter.defaults["tab-size"] = 2;
259 SyntaxHighlighter.defaults["toolbar"] = false;
260 SyntaxHighlighter.all();
261 </script>
262 ]]></footer>
263 <docfilessubdirs>true</docfilessubdirs>
264 <stylesheetfile>src/main/javadoc/syntaxhighlighter.css</stylesheetfile>
265 </configuration>
266 <executions>
267 <execution>
268 <id>attach-javadocs</id>
269 <goals>
270 <goal>jar</goal>
271 </goals>
272 </execution>
273 </executions>
274 </plugin>
275
276 <!--
277 FindBugs plugin
278 To run: mvn findbugs:findbugs
279 To view the results: mvn findbugs:gui
280 -->
281 <plugin>
282 <groupId>org.codehaus.mojo</groupId>
283 <artifactId>findbugs-maven-plugin</artifactId>
284 <version>3.0.4</version>
285 </plugin>
286
287 <!--
288 PMD plugin
289 To run: mvn pmd:pmd
290 Code duplication report: mvn pmd:cpd
291 -->
292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-pmd-plugin</artifactId>
295 <version>3.6</version>
296 <configuration>
297 <targetJdk>${java.version}</targetJdk>
298 </configuration>
299 </plugin>
300
301 <!--
302 Mutation Testing
303 To run: mvn pitest:mutationCoverage
304 -->
305 <plugin>
306 <groupId>org.pitest</groupId>
307 <artifactId>pitest-maven</artifactId>
308 <version>1.1.10</version>
309 <configuration>
310 <targetClasses>
311 <param>ezvcard.*</param>
312 </targetClasses>
313 <excludedClasses>
314 <!-- exclude commons-codec -->
315 <param>ezvcard.util.org.*</param>
316 </excludedClasses>
317 <targetTests>
318 <param>ezvcard.*</param>
319 </targetTests>
320 </configuration>
321 </plugin>
322
323 <!--
324 For codecov.io.
325 -->
326 <!-- <plugin>
327 <groupId>org.jacoco</groupId>
328 <artifactId>jacoco-maven-plugin</artifactId>
329 <version>0.7.5.201505241946</version>
330 <executions>
331 <execution>
332 <goals>
333 <goal>prepare-agent</goal>
334 </goals>
335 </execution>
336 <execution>
337 <id>report</id>
338 <phase>test</phase>
339 <goals>
340 <goal>report</goal>
341 </goals>
342 </execution>
343 </executions>
344 </plugin> -->
345 </plugins>
346 </build>
347
348 <profiles>
349 <!--
350 This profile will sign the JAR file, sources file, and javadocs file using the GPG key on the local machine.
351 See: https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
352 -->
353 <profile>
354 <id>release-sign-artifacts</id>
355 <activation>
356 <property>
357 <name>release</name>
358 <value>true</value>
359 </property>
360 </activation>
361 <build>
362 <plugins>
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-gpg-plugin</artifactId>
366 <version>1.4</version>
367 <executions>
368 <execution>
369 <id>sign-artifacts</id>
370 <phase>package</phase>
371 <goals>
372 <goal>sign</goal>
373 </goals>
374 </execution>
375 </executions>
376 </plugin>
377 </plugins>
378 </build>
379 </profile>
380
381 <!--
382 Disables DocLint, a Java 8 feature that fails the build if it detects errors in the javadocs.
383 See: http://stackoverflow.com/a/22296107/13379
384 -->
385 <profile>
386 <id>doclint-java8-disable</id>
387 <activation>
388 <jdk>[1.8,)</jdk>
389 </activation>
390
391 <build>
392 <plugins>
393 <plugin>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-javadoc-plugin</artifactId>
396 <configuration>
397 <additionalparam>-Xdoclint:none</additionalparam>
398 </configuration>
399 </plugin>
400 </plugins>
401 </build>
402 </profile>
403 </profiles>
404 </project>