blob: 91886afa44bd9d03a98d3fb89f82c7c6e5d024b6 [file] [log] [blame]
Andrey Somov910e2b52011-08-12 06:30:19 +02001<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">
Andrey Somov99853ae2010-08-12 16:09:47 +02002 <modelVersion>4.0.0</modelVersion>
3 <groupId>org.yaml</groupId>
4 <artifactId>snakeyaml</artifactId>
maslovalexfdfde952016-02-19 15:03:34 +02005 <version>1.18-SNAPSHOT</version>
Andrey Somov407731b2011-02-22 23:15:07 +01006 <packaging>bundle</packaging>
Andrey Somov28699b72010-08-17 00:35:12 +02007 <properties>
8 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Andrey Somov0ca913e2015-08-18 15:12:58 +02009 <project.scm.id>bitbucket</project.scm.id>
Andrey Somov5c12dda2016-02-03 21:47:20 +010010 <release.repo.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</release.repo.url>
11 <snapshot.repo.url>https://oss.sonatype.org/content/repositories/snapshots/</snapshot.repo.url>
maslovalexf3cd0be2016-02-23 12:48:49 +020012 <maven.compiler.source>1.6</maven.compiler.source>
13 <maven.compiler.target>1.6</maven.compiler.target>
maslovalex41668432016-02-25 14:10:28 +020014 <maven.javadoc.failOnError>false</maven.javadoc.failOnError>
Andrey Somov28699b72010-08-17 00:35:12 +020015 </properties>
Andrey Somov99853ae2010-08-12 16:09:47 +020016 <name>SnakeYAML</name>
17 <description>YAML 1.1 parser and emitter for Java</description>
18 <inceptionYear>2008</inceptionYear>
Andrey Somovc2fb6872010-09-20 00:29:41 +020019 <url>http://www.snakeyaml.org</url>
Andrey Somov99853ae2010-08-12 16:09:47 +020020 <issueManagement>
Andrey Somov14eb7b52015-05-20 22:56:16 +020021 <system>Bitbucket</system>
22 <url>https://bitbucket.org/asomov/snakeyaml/issues</url>
Andrey Somov99853ae2010-08-12 16:09:47 +020023 </issueManagement>
Andrey Somov34f59d72012-01-28 17:31:08 +010024 <!--ciManagement>
25 <system>jenkins</system>
26 <url>https://snakeyaml.ci.cloudbees.com/job/SnakeYAML/</url>
27 </ciManagement-->
Andrey Somov99853ae2010-08-12 16:09:47 +020028 <mailingLists>
29 <mailingList>
30 <name>SnakeYAML developers and users List</name>
31 <post>snakeyaml-core@googlegroups.com</post>
32 </mailingList>
33 </mailingLists>
34 <scm>
Andrey Somov14eb7b52015-05-20 22:56:16 +020035 <connection>scm:hg:http://bitbucket.org/asomov/snakeyaml</connection>
maslovalex6b862fc2016-02-19 12:17:19 +020036 <developerConnection>scm:hg:ssh://hg@bitbucket.org/asomov/snakeyaml</developerConnection>
Andrey Somov14eb7b52015-05-20 22:56:16 +020037 <url>https://bitbucket.org/asomov/snakeyaml/src</url>
maslovalexfdfde952016-02-19 15:03:34 +020038 <tag>HEAD</tag>
maslovalexdc734532016-02-19 15:03:23 +020039 </scm>
Andrey Somov99853ae2010-08-12 16:09:47 +020040 <licenses>
41 <license>
Oliver B. Fischer859a5182015-05-27 17:08:15 +020042 <name>Apache License, Version 2.0</name>
43 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
44 <distribution>repo</distribution>
Andrey Somov99853ae2010-08-12 16:09:47 +020045 </license>
46 </licenses>
47 <developers>
48 <developer>
Andrey Somov14eb7b52015-05-20 22:56:16 +020049 <id>asomov</id>
Andrey Somov99853ae2010-08-12 16:09:47 +020050 <name>Andrey Somov</name>
Andrey Somov14eb7b52015-05-20 22:56:16 +020051 <email>public.somov@gmail.com</email>
Andrey Somov99853ae2010-08-12 16:09:47 +020052 </developer>
53 <developer>
54 <id>maslovalex</id>
55 <name>Alexander Maslov</name>
56 <email>alexander.maslov@gmail.com</email>
57 </developer>
Andrey Somov9a537ee2013-04-17 18:30:20 +020058 <developer>
59 <id>Jordan</id>
60 <name>Jordan Angold</name>
61 <email>jordanangold@gmail.com</email>
62 </developer>
Andrey Somov99853ae2010-08-12 16:09:47 +020063 </developers>
Andrey Somov49e88832015-02-16 20:55:56 +010064 <prerequisites>
65 <maven>3.0.5</maven>
66 </prerequisites>
Andrey Somov99853ae2010-08-12 16:09:47 +020067 <dependencies>
68 <dependency>
69 <groupId>junit</groupId>
70 <artifactId>junit</artifactId>
Andrey Somovd98b17b2015-08-25 21:38:16 +020071 <version>4.12</version>
Andrey Somov99853ae2010-08-12 16:09:47 +020072 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>org.springframework</groupId>
76 <artifactId>spring</artifactId>
77 <version>2.5.6</version>
78 <scope>test</scope>
79 </dependency>
80 <dependency>
81 <groupId>org.apache.velocity</groupId>
82 <artifactId>velocity</artifactId>
83 <version>1.6.2</version>
84 <scope>test</scope>
85 </dependency>
86 <dependency>
87 <groupId>joda-time</groupId>
88 <artifactId>joda-time</artifactId>
89 <version>1.6</version>
90 <scope>test</scope>
91 </dependency>
92 </dependencies>
Andrey Somov33b9f2d2012-02-08 22:31:12 +010093 <distributionManagement>
94 <repository>
95 <id>sonatype-nexus-staging</id>
96 <name>Nexus Release Repository</name>
Andrey Somov5c12dda2016-02-03 21:47:20 +010097 <url>${release.repo.url}</url>
Andrey Somov33b9f2d2012-02-08 22:31:12 +010098 </repository>
99 <snapshotRepository>
100 <id>sonatype-nexus-snapshots</id>
101 <name>Sonatype Nexus Snapshots</name>
Andrey Somov5c12dda2016-02-03 21:47:20 +0100102 <url>${snapshot.repo.url}</url>
Andrey Somov33b9f2d2012-02-08 22:31:12 +0100103 <uniqueVersion>false</uniqueVersion>
104 </snapshotRepository>
105 </distributionManagement>
Andrey Somov99853ae2010-08-12 16:09:47 +0200106 <build>
maslovalexb0454ef2016-02-15 16:13:24 +0200107 <testResources>
108 <testResource>
109 <directory>${basedir}/src/test/resources</directory>
110 <filtering>true</filtering>
111 </testResource>
112 </testResources>
Andrey Somov3d2fa272015-02-05 23:05:31 +0100113 <pluginManagement>
114 <plugins>
115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
maslovalex41668432016-02-25 14:10:28 +0200117 <artifactId>maven-javadoc-plugin</artifactId>
118 <version>2.10.3</version>
119 </plugin>
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
Andrey Somov3d2fa272015-02-05 23:05:31 +0100122 <artifactId>maven-site-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100123 <version>3.5</version>
Andrey Somov3d2fa272015-02-05 23:05:31 +0100124 </plugin>
125 </plugins>
126 </pluginManagement>
Andrey Somov99853ae2010-08-12 16:09:47 +0200127 <plugins>
128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-compiler-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100131 <version>3.5.1</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200132 <configuration>
maslovalexf3cd0be2016-02-23 12:48:49 +0200133 <source>${maven.compiler.source}</source>
134 <target>${maven.compiler.target}</target>
Andrey Somov99853ae2010-08-12 16:09:47 +0200135 <encoding>${project.build.sourceEncoding}</encoding>
136 </configuration>
137 </plugin>
138 <plugin>
Andrey Somov33e4f882010-09-15 20:41:22 +0200139 <groupId>org.apache.maven.plugins</groupId>
Andrey Somov99853ae2010-08-12 16:09:47 +0200140 <artifactId>maven-surefire-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100141 <version>2.19.1</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200142 <configuration>
Andrey Somov9aece452011-10-24 23:05:29 +0200143 <argLine>-Xmx512m</argLine>
Andrey Somov99853ae2010-08-12 16:09:47 +0200144 <includes>
145 <include>**/*Test.java</include>
146 </includes>
Andrey Somov872686d2010-09-13 22:31:15 +0200147 <excludes>
148 <exclude>**/StressTest.java</exclude>
149 <exclude>**/ParallelTest.java</exclude>
150 </excludes>
Andrey Somov99853ae2010-08-12 16:09:47 +0200151 </configuration>
152 </plugin>
153 <plugin>
Andrey Somov33e4f882010-09-15 20:41:22 +0200154 <groupId>org.apache.maven.plugins</groupId>
Andrey Somov99853ae2010-08-12 16:09:47 +0200155 <artifactId>maven-eclipse-plugin</artifactId>
Andrey Somovd98b17b2015-08-25 21:38:16 +0200156 <version>2.10</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200157 <configuration>
158 <buildOutputDirectory>bin</buildOutputDirectory>
159 </configuration>
160 </plugin>
161 <plugin>
162 <groupId>org.codehaus.mojo</groupId>
163 <artifactId>cobertura-maven-plugin</artifactId>
Andrey Somovd98b17b2015-08-25 21:38:16 +0200164 <version>2.7</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200165 <configuration>
166 <check>
167 <totalBranchRate>80</totalBranchRate>
168 <totalLineRate>95</totalLineRate>
169 </check>
170 <formats>
171 <format>html</format>
172 <format>xml</format>
173 </formats>
174 <instrumentation>
175 <excludes>
Andrey Somov77c3aed2011-02-27 11:37:21 +0100176 <exclude>org/yaml/snakeyaml/external/**</exclude>
Andrey Somov99853ae2010-08-12 16:09:47 +0200177 </excludes>
178 </instrumentation>
179 </configuration>
180 <executions>
181 <execution>
182 <goals>
183 <goal>clean</goal>
184 <goal>check</goal>
185 </goals>
186 </execution>
187 </executions>
188 </plugin>
189 <plugin>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-changes-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100192 <version>2.11</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200193 <executions>
194 <execution>
195 <id>validate-changes</id>
196 <phase>pre-site</phase>
197 <goals>
198 <goal>changes-validate</goal>
199 </goals>
200 <configuration>
201 <failOnError>true</failOnError>
202 </configuration>
203 </execution>
204 </executions>
205 </plugin>
206 <plugin>
Andrey Somov28699b72010-08-17 00:35:12 +0200207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-source-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100209 <version>3.0.0</version>
Andrey Somov28699b72010-08-17 00:35:12 +0200210 <executions>
211 <execution>
212 <goals>
213 <goal>jar</goal>
214 </goals>
215 </execution>
216 </executions>
217 </plugin>
218 <plugin>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-javadoc-plugin</artifactId>
221 <configuration>
222 <links>
223 <link>http://java.sun.com/javase/6/docs/api/</link>
224 </links>
225 </configuration>
226 <executions>
227 <execution>
228 <id>attach-javadocs</id>
229 <goals>
230 <goal>jar</goal>
231 </goals>
232 </execution>
233 </executions>
234 </plugin>
235 <plugin>
Andrey Somov99853ae2010-08-12 16:09:47 +0200236 <groupId>com.mycila.maven-license-plugin</groupId>
237 <artifactId>maven-license-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100238 <version>1.10.b1</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200239 <configuration>
240 <header>src/etc/header.txt</header>
241 <quiet>false</quiet>
242 <failIfMissing>true</failIfMissing>
243 <aggregate>false</aggregate>
244 <includes>
245 <include>src/**/*.java</include>
246 </includes>
247 <excludes>
Andrey Somov77c3aed2011-02-27 11:37:21 +0100248 <exclude>src/main/java/org/yaml/snakeyaml/external/**</exclude>
Andrey Somov99853ae2010-08-12 16:09:47 +0200249 </excludes>
250 <useDefaultExcludes>true</useDefaultExcludes>
251 <useDefaultMapping>true</useDefaultMapping>
Andrey Somov33e4f882010-09-15 20:41:22 +0200252 <strictCheck>true</strictCheck>
Andrey Somov406eb4b2010-09-20 00:18:09 +0200253 <encoding>UTF-8</encoding>
Andrey Somov99853ae2010-08-12 16:09:47 +0200254 </configuration>
255 <executions>
256 <execution>
257 <phase>site</phase>
258 <goals>
259 <goal>format</goal>
260 </goals>
261 </execution>
262 </executions>
263 </plugin>
Andrey Somov36777852011-04-02 19:08:33 +0200264 <plugin>
265 <groupId>org.apache.felix</groupId>
266 <artifactId>maven-bundle-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100267 <version>3.0.1</version>
Andrey Somov36777852011-04-02 19:08:33 +0200268 <extensions>true</extensions>
269 <configuration>
270 <instructions>
Lukasz Dywicki69969892013-06-27 14:30:14 +0200271 <_nouses>true</_nouses>
272 <Export-Package>
273 !org.yaml.snakeyaml.external*,
274 org.yaml.snakeyaml.*;version=${project.version}
275 </Export-Package>
Andrey Somov36777852011-04-02 19:08:33 +0200276 <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
277 </instructions>
278 </configuration>
279 </plugin>
Andrey Somov3d2fa272015-02-05 23:05:31 +0100280 <plugin>
281 <artifactId>maven-site-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100282 <version>3.4</version>
Andrey Somov3d2fa272015-02-05 23:05:31 +0100283 <executions>
284 <execution>
285 <id>attach-descriptor</id>
286 <goals>
287 <goal>attach-descriptor</goal>
288 </goals>
289 </execution>
290 </executions>
291 </plugin>
Andrey Somov99853ae2010-08-12 16:09:47 +0200292 </plugins>
293 </build>
294 <reporting>
295 <plugins>
296 <plugin>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-changes-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100299 <version>2.11</version>
Andrey Somov4043a702011-07-10 21:38:57 +0200300 <configuration>
Andrey Somov947dfae2015-08-18 14:57:54 +0200301 <issueLinkTemplate>https://bitbucket.org/asomov/snakeyaml/issues/%ISSUE%</issueLinkTemplate>
Andrey Somov4043a702011-07-10 21:38:57 +0200302 </configuration>
Andrey Somov99853ae2010-08-12 16:09:47 +0200303 <reportSets>
304 <reportSet>
305 <reports>
306 <report>changes-report</report>
307 </reports>
308 </reportSet>
309 </reportSets>
310 </plugin>
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-surefire-report-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100314 <version>2.19.1</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200315 <configuration>
316 <showSuccess>true</showSuccess>
317 </configuration>
318 </plugin>
319 <plugin>
320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>cobertura-maven-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100322 <version>2.6</version>
Andrey Somov99853ae2010-08-12 16:09:47 +0200323 <configuration>
324 <formats>
325 <format>html</format>
326 <format>xml</format>
327 </formats>
328 </configuration>
329 </plugin>
330 <plugin>
Andrey Somov33e4f882010-09-15 20:41:22 +0200331 <groupId>org.apache.maven.plugins</groupId>
Andrey Somov99853ae2010-08-12 16:09:47 +0200332 <artifactId>maven-javadoc-plugin</artifactId>
333 <reportSets>
334 <reportSet>
335 <id>html</id>
336 <configuration>
337 <doctitle>API for ${project.name} ${project.version}</doctitle>
338 <windowtitle>API for ${project.name} ${project.version}</windowtitle>
339 <testDoctitle>Test API for ${project.name} ${project.version}</testDoctitle>
340 <testWindowtitle>Test API for ${project.name} ${project.version}</testWindowtitle>
341 </configuration>
342 <reports>
343 <report>javadoc</report>
344 </reports>
345 </reportSet>
346 </reportSets>
347 </plugin>
348 </plugins>
349 </reporting>
Andrey Somov28699b72010-08-17 00:35:12 +0200350 <profiles>
351 <profile>
maslovalexf3cd0be2016-02-23 12:48:49 +0200352 <id>toolchain</id>
353 <activation>
354 <file>
355 <exists>${user.home}/.m2/toolchains.xml</exists>
356 </file>
357 </activation>
358 <build>
359 <plugins>
360 <plugin>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-toolchains-plugin</artifactId>
363 <version>1.1</version>
364 <executions>
365 <execution>
366 <phase>validate</phase>
367 <goals>
368 <goal>toolchain</goal>
369 </goals>
370 </execution>
371 </executions>
372 <configuration>
373 <toolchains>
374 <jdk>
375 <version>${maven.compiler.target}</version>
376 </jdk>
377 </toolchains>
378 </configuration>
379 </plugin>
380 </plugins>
381 </build>
382 </profile>
383 <profile>
maslovalexab5af142016-01-07 14:06:36 +0200384 <id>with-java8-tests</id>
maslovalexf3cd0be2016-02-23 12:48:49 +0200385 <properties>
386 <maven.compiler.source>1.8</maven.compiler.source>
387 <maven.compiler.target>1.8</maven.compiler.target>
388 </properties>
maslovalexab5af142016-01-07 14:06:36 +0200389 <build>
390 <plugins>
391 <plugin>
maslovalexab5af142016-01-07 14:06:36 +0200392 <groupId>org.codehaus.mojo</groupId>
393 <artifactId>build-helper-maven-plugin</artifactId>
394 <version>1.10</version>
395 <executions>
396 <execution>
397 <id>add-java8-test-source</id>
398 <phase>generate-test-sources</phase>
399 <goals>
400 <goal>add-test-source</goal>
401 </goals>
402 <configuration>
403 <sources>
404 <source>${basedir}/src/test/java8/</source>
405 </sources>
406 </configuration>
407 </execution>
408 </executions>
409 </plugin>
410 </plugins>
411 </build>
412 </profile>
413 <profile>
Andrey Somov28699b72010-08-17 00:35:12 +0200414 <id>release</id>
415 <activation>
416 <property>
417 <name>performRelease</name>
418 <value>true</value>
419 </property>
420 </activation>
421 <build>
422 <plugins>
423 <plugin>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-gpg-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100426 <version>1.6</version>
Andrey Somov28699b72010-08-17 00:35:12 +0200427 <executions>
428 <execution>
429 <id>sign-artifacts</id>
430 <phase>verify</phase>
431 <goals>
432 <goal>sign</goal>
433 </goals>
434 </execution>
435 </executions>
436 </plugin>
437 </plugins>
438 </build>
Andrey Somov28699b72010-08-17 00:35:12 +0200439 </profile>
Andrey Somov6d5e9212010-09-16 00:26:34 +0200440 <profile>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100441 <id>findbugs</id>
Andrey Somove83092c2011-07-10 22:30:33 +0200442 <build>
443 <plugins>
444 <plugin>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100445 <groupId>org.codehaus.mojo</groupId>
446 <artifactId>findbugs-maven-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100447 <version>3.0.3</version>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100448 </plugin>
449 <plugin>
Andrey Somove83092c2011-07-10 22:30:33 +0200450 <groupId>org.apache.maven.plugins</groupId>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100451 <artifactId>maven-pmd-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100452 <version>3.6</version>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100453 </plugin>
454 </plugins>
455 </build>
456 <reporting>
457 <plugins>
458 <plugin>
Andrey Somovd62b0612015-02-16 22:16:55 +0100459 <groupId>org.apache.maven.plugins</groupId>
460 <artifactId>maven-jxr-plugin</artifactId>
461 <version>2.5</version>
462 </plugin>
463 <plugin>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100464 <groupId>org.codehaus.mojo</groupId>
465 <artifactId>findbugs-maven-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100466 <version>3.0.3</version>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100467 </plugin>
468 <plugin>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-pmd-plugin</artifactId>
Andrey Somov8699dde2016-02-19 17:34:22 +0100471 <version>3.6</version>
Andrey Somov3fcd9d72012-02-08 21:59:17 +0100472 <configuration>
473 <linkXref>true</linkXref>
474 <sourceEncoding>utf-8</sourceEncoding>
475 <minimumTokens>100</minimumTokens>
476 <targetJdk>1.5</targetJdk>
477 <excludes>
478 <exclude>**/external/*.java</exclude>
479 </excludes>
480 </configuration>
481 </plugin>
482 </plugins>
483 </reporting>
484 </profile>
485 <profile>
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100486 <id>android</id>
487 <properties>
488 <android.src>${project.build.directory}/android/src/</android.src>
489 <android.classes>${project.build.directory}/android/classes/</android.classes>
490 <android.test.classes>${project.build.directory}/android/test-classes/</android.test.classes>
491 </properties>
492 <build>
493 <plugins>
494 <plugin>
495 <artifactId>maven-resources-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100496 <version>2.7</version>
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100497 <executions>
498 <execution>
499 <id>copy-src-for-android</id>
500 <phase>generate-sources</phase>
501 <goals>
502 <goal>copy-resources</goal>
503 </goals>
504 <configuration>
505 <outputDirectory>${android.src}</outputDirectory>
506 <resources>
507 <resource>
508 <directory>${basedir}/src/main/java</directory>
509 <filtering>false</filtering>
510 <excludes>
511 <exclude>org/yaml/snakeyaml/introspector/MethodProperty.java</exclude>
512 </excludes>
513 </resource>
514 </resources>
515 </configuration>
516 </execution>
517 <execution>
518 <id>copy-test-resources-for-android</id>
519 <phase>process-test-resources</phase>
520 <goals>
521 <goal>copy-resources</goal>
522 </goals>
523 <configuration>
524 <outputDirectory>${android.test.classes}</outputDirectory>
525 <resources>
526 <resource>
527 <directory>${basedir}/src/test/resources</directory>
528 </resource>
529 </resources>
530 </configuration>
531 </execution>
532 </executions>
533 </plugin>
maslovalex76766472012-02-22 14:13:52 +0200534
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100535 <plugin>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-patch-plugin</artifactId>
Andrey Somovd98b17b2015-08-25 21:38:16 +0200538 <version>1.2</version>
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100539 <configuration>
540 <patchDirectory>${basedir}/src/patches/android/</patchDirectory>
541 <targetDirectory>${android.src}</targetDirectory>
542 <skipApplication>false</skipApplication>
543 <strip>4</strip>
544 </configuration>
545 <executions>
546 <execution>
547 <id>android-patches</id>
548 <phase>process-sources</phase>
549 <goals>
550 <goal>apply</goal>
551 </goals>
552 <configuration>
553 <patchTrackingFile>${project.build.directory}/android/patches-applied.txt
554 </patchTrackingFile>
555 <naturalOrderProcessing>true</naturalOrderProcessing>
556 </configuration>
557 </execution>
558 </executions>
559 </plugin>
560 <plugin>
561 <groupId>org.apache.maven.plugins</groupId>
562 <artifactId>maven-antrun-plugin</artifactId>
Andrey Somov49e88832015-02-16 20:55:56 +0100563 <version>1.8</version>
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100564 <executions>
565 <execution>
566 <id>build-for-android</id>
567 <phase>compile</phase>
568 <goals>
569 <goal>run</goal>
570 </goals>
571 <configuration>
572 <target>
Andrey Somovdf04ff12015-02-19 13:21:09 +0000573 <mkdir dir="${android.classes}" />
574 <mkdir dir="${android.test.classes}" />
maslovalex76766472012-02-22 14:13:52 +0200575
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100576 <!-- compile patched sources -->
Andrey Somovdf04ff12015-02-19 13:21:09 +0000577 <javac srcdir="${android.src}" destdir="${android.classes}" classpath="${android.classes}" encoding="${project.build.sourceEncoding}" target="1.5" source="1.5" debug="true" includeantruntime="false" fork="true" />
maslovalex76766472012-02-22 14:13:52 +0200578
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100579 <!-- compile test classes. Exclude some - not for BeanAccess.FIELD -->
Andrey Somovdf04ff12015-02-19 13:21:09 +0000580 <javac srcdir="${basedir}/src/test/java:${basedir}/src/test/resources" destdir="${android.test.classes}" classpath="${android.classes}:${android.test.classes}:${junit:junit:jar}:${org.springframework:spring:jar}:${org.apache.velocity:velocity:jar}:${joda-time:joda-time:jar}" encoding="${project.build.sourceEncoding}" target="1.5" source="1.5" debug="true" includeantruntime="false" fork="true">
581 <exclude name="org/yaml/snakeyaml/introspector/MethodPropertyTest.java" />
582 <exclude name="org/yaml/snakeyaml/representer/FilterPropertyToDumpTest.java" />
583 <exclude name="org/yaml/snakeyaml/issues/issue60/CustomOrderTest.java" />
584 <exclude name="org/yaml/snakeyaml/issues/issue29/FlexibleScalarStylesInJavaBeanTest.java" />
maslovalex76766472012-02-22 14:13:52 +0200585
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100586 </javac>
587 </target>
maslovalex76766472012-02-22 14:13:52 +0200588
Andrey Somov9a9a2d62015-02-05 22:50:44 +0100589 </configuration>
590 </execution>
591 </executions>
592 </plugin>
593 <plugin>
594 <artifactId>maven-surefire-plugin</artifactId>
595 <executions>
596 <execution>
597 <id>test-android</id>
598 <phase>test</phase>
599 <goals>
600 <goal>test</goal>
601 </goals>
602 <configuration>
603 <classesDirectory>${android.classes}</classesDirectory>
604 <reportsDirectory>${project.build.directory}/android/surefire-reports
605 </reportsDirectory>
606 <testClassesDirectory>${android.test.classes}</testClassesDirectory>
607 <!--
608 We ignore test failures for android build at the moment.
609 Most of the FAILs are because of testing with "property" not "field" access.
610 But we still fail whole build if there are test errors.
611 -->
612 <testFailureIgnore>true</testFailureIgnore>
613 </configuration>
614 </execution>
615 </executions>
616 </plugin>
617 <plugin>
618 <artifactId>maven-jar-plugin</artifactId>
619 <executions>
620 <execution>
621 <id>package-android-jar</id>
622 <phase>package</phase>
623 <goals>
624 <goal>jar</goal>
625 </goals>
626 <configuration>
627 <classesDirectory>${android.classes}</classesDirectory>
628 <classifier>android</classifier>
629 </configuration>
630 </execution>
631 </executions>
632 </plugin>
633 </plugins>
634 </build>
635 </profile>
Andrey Somov28699b72010-08-17 00:35:12 +0200636 </profiles>
Andrey Somov852ef652010-08-12 16:45:42 +0200637</project>