OSDN Git Service

change coverage from cobertura to Jacoco
[jindolf/JinParser.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <!--
4     Maven3 POM definition file
5 -->
6
7 <project
8   xmlns="http://maven.apache.org/POM/4.0.0"
9   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
11   http://maven.apache.org/xsd/maven-4.0.0.xsd"
12 >
13     <modelVersion>4.0.0</modelVersion>
14     <!--parent/-->
15
16     <groupId>jp.sourceforge.jindolf</groupId>
17     <artifactId>jinparser</artifactId>
18
19     <version>1.409.3-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>JinParser</name>
23
24     <description><!--
25 -->JinParserライブラリは、CGIゲーム「人狼BBS」のクライアント制作者向けに<!--
26 -->作られたJavaライブラリです。<!--
27  --></description>
28
29     <url>https://ja.osdn.net/projects/jindolf/devel/</url>
30     <inceptionYear>2009</inceptionYear>
31
32     <organization>
33         <name>Jindolf Partners</name>
34         <url>https://ja.osdn.net/projects/jindolf/devel/</url>
35     </organization>
36
37     <licenses>
38         <license>
39             <name>The MIT License</name>
40             <url>https://opensource.org/licenses/MIT</url>
41             <distribution>manual</distribution>
42         </license>
43     </licenses>
44
45     <developers>
46         <developer>
47             <id>olyutorskii</id>
48             <url>https://sites.google.com/site/olyutorskiipit/</url>
49             <organization>Jindolf Partners</organization>
50             <organizationUrl>https://ja.osdn.net/projects/jindolf/devel/</organizationUrl>
51             <roles>
52                 <role>Project Founder</role>
53                 <role>Java Developer</role>
54             </roles>
55         </developer>
56     </developers>
57
58     <contributors/>
59     <mailingLists/>
60
61     <prerequisites>
62         <maven>3.0.1</maven>
63     </prerequisites>
64
65     <modules/>
66
67     <scm>
68         <connection>scm:hg:http://hg.osdn.jp/view/jindolf/JinParser</connection>
69         <developerConnection>scm:hg:ssh://hg.osdn.jp//hgroot/jindolf/JinParser</developerConnection>
70         <url>https://osdn.jp/projects/jindolf/scm/hg/JinParser/</url>
71     </scm>
72
73     <issueManagement>
74         <system>OSDN.NET</system>
75         <url>https://ja.osdn.net/projects/jindolf/ticket/</url>
76     </issueManagement>
77
78     <ciManagement/>
79     <distributionManagement/>
80
81     <properties>
82         <maven.compiler.source>1.7</maven.compiler.source>
83         <maven.compiler.target>1.7</maven.compiler.target>
84
85         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
86         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
87
88         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
89         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
90         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
91
92         <jacoco-plugin.version>0.7.9</jacoco-plugin.version>
93
94         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
95
96         <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
97         <checkstyle.enable.rss>false</checkstyle.enable.rss>
98
99     </properties>
100
101     <dependencyManagement/>
102
103     <dependencies>
104
105         <dependency>
106             <groupId>junit</groupId>
107             <artifactId>junit</artifactId>
108             <version>4.12</version>
109             <scope>test</scope>
110         </dependency>
111
112         <dependency>
113             <groupId>jp.sourceforge.jindolf</groupId>
114             <artifactId>jincore</artifactId>
115             <version>1.206.10</version>
116             <scope>compile</scope>
117         </dependency>
118
119     </dependencies>
120
121     <repositories/>
122     <pluginRepositories/>
123
124     <build>
125         <pluginManagement/>
126
127         <plugins>
128
129             <plugin>
130                 <groupId>org.apache.maven.plugins</groupId>
131                 <artifactId>maven-clean-plugin</artifactId>
132                 <version>3.0.0</version>
133                 <configuration>
134                     <filesets>
135                         <fileset>
136                             <directory>${project.basedir}</directory>
137                             <includes>
138                                 <include>**/*~</include>
139                                 <include>**/*.swp</include>
140                                 <include>**/*.DS_Store</include>
141                                 <include>**/._*</include>
142                                 <include>**/__MACOSX</include>
143                                 <include>**/Thumbs.db</include>
144                                 <include>**/desktop.ini</include>
145                                 <include>**/core</include>
146                                 <include>**/hs_err_pid*</include>
147                             </includes>
148                         </fileset>
149                     </filesets>
150                 </configuration>
151             </plugin>
152
153
154             <!-- default lifecycle -->
155
156             <plugin>
157                 <groupId>org.apache.maven.plugins</groupId>
158                 <artifactId>maven-enforcer-plugin</artifactId>
159                 <version>1.4.1</version>
160                 <configuration>
161                     <rules>
162                         <requireMavenVersion>
163                             <version>[3.0.1,)</version>
164                         </requireMavenVersion>
165                         <requireJavaVersion>
166                             <version>[1.7,)</version>
167                         </requireJavaVersion>
168                     </rules>
169                 </configuration>
170             </plugin>
171
172             <plugin>
173                 <groupId>org.apache.maven.plugins</groupId>
174                 <artifactId>maven-resources-plugin</artifactId>
175                 <version>3.0.2</version>
176             </plugin>
177
178             <plugin>
179                 <groupId>org.apache.maven.plugins</groupId>
180                 <artifactId>maven-compiler-plugin</artifactId>
181                 <version>3.6.1</version>
182                 <configuration>
183                     <source>1.7</source>  <!-- for NetBeans IDE -->
184                     <target>1.7</target>
185                     <compilerArguments>
186                         <Xlint/>
187                     </compilerArguments>
188                     <showWarnings>true</showWarnings>
189                     <showDeprecation>true</showDeprecation>
190                 </configuration>
191             </plugin>
192
193             <plugin>
194                 <groupId>org.apache.maven.plugins</groupId>
195                 <artifactId>maven-surefire-plugin</artifactId>
196                 <version>2.19.1</version>
197                 <configuration>
198                     <enableAssertions>true</enableAssertions>
199                 </configuration>
200             </plugin>
201
202             <plugin>
203                 <groupId>org.jacoco</groupId>
204                 <artifactId>jacoco-maven-plugin</artifactId>
205                 <version>${jacoco-plugin.version}</version>
206                 <executions>
207                     <execution>
208                         <id>default-prepare-agent</id>
209                         <goals>
210                             <goal>prepare-agent</goal>
211                         </goals>
212                     </execution>
213                     <execution>
214                         <id>default-report</id>
215                         <phase>prepare-package</phase>
216                         <goals>
217                             <goal>report</goal>
218                         </goals>
219                     </execution>
220                     <execution>
221                         <id>default-check</id>
222                         <goals>
223                             <goal>check</goal>
224                         </goals>
225                         <configuration>
226                             <rules>
227                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
228                                     <element>BUNDLE</element>
229                                     <limits>
230                                         <limit implementation="org.jacoco.report.check.Limit">
231                                             <counter>COMPLEXITY</counter>
232                                             <value>COVEREDRATIO</value>
233                                             <minimum>0.0</minimum>
234                                         </limit>
235                                     </limits>
236                                 </rule>
237                             </rules>
238                         </configuration>
239                     </execution>
240                 </executions>
241             </plugin>
242
243             <plugin>
244                 <groupId>org.apache.maven.plugins</groupId>
245                 <artifactId>maven-jar-plugin</artifactId>
246                 <version>3.0.2</version>
247                 <configuration>
248                     <archive>
249                         <manifestEntries>
250                             <Built-By>${project.organization.name}</Built-By>
251                         </manifestEntries>
252                     </archive>
253                 </configuration>
254             </plugin>
255
256             <plugin>
257                 <groupId>org.apache.maven.plugins</groupId>
258                 <artifactId>maven-source-plugin</artifactId>
259                 <version>3.0.1</version>
260                 <configuration>
261                     <includePom>true</includePom>
262                     <archive>
263                         <manifestEntries>
264                             <Built-By>${project.organization.name}</Built-By>
265                         </manifestEntries>
266                     </archive>
267                 </configuration>
268                 <executions>
269                     <execution>
270                         <id>attach-sources</id>
271                         <phase>verify</phase>
272                         <goals>
273                           <goal>jar-no-fork</goal>
274                         </goals>
275                     </execution>
276                 </executions>
277             </plugin>
278
279             <plugin>
280                 <groupId>org.apache.maven.plugins</groupId>
281                 <artifactId>maven-install-plugin</artifactId>
282                 <version>2.5.2</version>
283             </plugin>
284
285             <plugin>
286                 <groupId>org.apache.maven.plugins</groupId>
287                 <artifactId>maven-deploy-plugin</artifactId>
288                 <version>2.8.2</version>
289             </plugin>
290
291
292             <!-- site lifecycle -->
293
294             <plugin>
295                 <groupId>org.apache.maven.plugins</groupId>
296                 <artifactId>maven-site-plugin</artifactId>
297                 <version>3.6</version>
298                 <configuration>
299                     <generateReports>true</generateReports>
300                     <locales>ja</locales>
301                     <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
302                     <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
303                 </configuration>
304             </plugin>
305
306
307             <!-- goals without lifecycle -->
308
309             <plugin>
310                 <groupId>org.apache.maven.plugins</groupId>
311                 <artifactId>maven-assembly-plugin</artifactId>
312                 <version>2.6</version>
313                 <configuration>
314                     <archiveBaseDirectory>.</archiveBaseDirectory>
315                     <descriptors>
316                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
317                     </descriptors>
318                 </configuration>
319             </plugin>
320
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-checkstyle-plugin</artifactId>
324                 <version>2.15</version>
325                 <!-- config from property value -->
326             </plugin>
327
328         </plugins>
329
330         <resources>
331
332             <resource>
333                 <directory>src/main/resources</directory>
334                 <filtering>true</filtering>
335                 <includes>
336                     <include>**/version.properties</include>
337                 </includes>
338             </resource>
339
340             <resource>
341                 <directory>src/main/resources</directory>
342                 <includes>
343                     <include>**/*.txt</include>
344
345                     <include>**/*.properties</include>
346
347                     <include>**/*.xml</include>
348                     <include>**/*.xsd</include>
349                     <include>**/*.dtd</include>
350
351                     <include>**/*.html</include>
352                     <include>**/*.htm</include>
353                     <include>**/*.css</include>
354
355                     <include>**/*.png</include>
356                     <include>**/*.gif</include>
357                     <include>**/*.jpeg</include>
358                     <include>**/*.jpg</include>
359                 </includes>
360                 <excludes>
361                     <exclude>**/version.properties</exclude>
362
363                     <exclude>**/.DS_Store</exclude>
364                     <exclude>**/__MACOSX</exclude>
365                     <exclude>**/Thumbs.db</exclude>
366                     <exclude>**/thumbs.db</exclude>
367                     <exclude>**/Desktop.ini</exclude>
368                     <exclude>**/desktop.ini</exclude>
369                     <exclude>**/core</exclude>
370                 </excludes>
371             </resource>
372
373         </resources>
374
375     </build>
376
377     <reporting>
378
379         <plugins>
380
381             <plugin>
382                 <groupId>org.apache.maven.plugins</groupId>
383                 <artifactId>maven-project-info-reports-plugin</artifactId>
384                 <version>2.9</version>
385                 <configuration>
386                     <linkOnly>true</linkOnly>
387                     <offline>true</offline>
388                 </configuration>
389                 <reportSets>
390                     <reportSet>
391                         <reports>
392                             <report>index</report>
393                             <report>summary</report>
394                             <report>license</report>
395                             <report>dependency-info</report>
396                             <report>dependencies</report>
397                             <report>dependency-convergence</report>
398                             <report>plugins</report>
399                             <report>plugin-management</report>
400                             <report>project-team</report>
401                             <report>issue-tracking</report>
402                             <report>scm</report>
403 <!--
404                             <report>dependency-management</report>
405                             <report>distribution-management</report>
406                             <report>cim</report>
407                             <report>mailing-list</report>
408                             <report>modules</report>
409 -->
410                         </reports>
411                     </reportSet>
412                 </reportSets>
413             </plugin>
414
415             <plugin>
416                 <groupId>org.apache.maven.plugins</groupId>
417                 <artifactId>maven-javadoc-plugin</artifactId>
418                 <version>2.10.4</version>
419                 <configuration>
420                     <author>false</author>
421                     <notimestamp>true</notimestamp>
422                     <quiet>true</quiet>
423                     <show>protected</show>
424                 </configuration>
425                 <reportSets>
426                     <reportSet>
427                         <reports>
428                             <report>javadoc</report>
429                         </reports>
430                     </reportSet>
431                 </reportSets>
432             </plugin>
433
434             <plugin>
435                 <groupId>org.apache.maven.plugins</groupId>
436                 <artifactId>maven-jxr-plugin</artifactId>
437                 <version>2.5</version>
438             </plugin>
439
440             <plugin>
441                 <groupId>org.apache.maven.plugins</groupId>
442                 <artifactId>maven-surefire-report-plugin</artifactId>
443                 <version>2.19.1</version>
444                 <configuration>
445                     <showSuccess>false</showSuccess>
446                 </configuration>
447                 <reportSets>
448                     <reportSet>
449                         <reports>
450                             <report>report-only</report>
451                         </reports>
452                     </reportSet>
453                 </reportSets>
454             </plugin>
455
456             <plugin>
457                 <groupId>org.jacoco</groupId>
458                 <artifactId>jacoco-maven-plugin</artifactId>
459                 <version>${jacoco-plugin.version}</version>
460                 <reportSets>
461                     <reportSet>
462                         <reports>
463                             <report>report</report>
464                         </reports>
465                     </reportSet>
466                 </reportSets>
467             </plugin>
468
469             <plugin>
470                 <groupId>org.apache.maven.plugins</groupId>
471                 <artifactId>maven-checkstyle-plugin</artifactId>
472                 <version>2.15</version>
473                 <configuration>
474                     <skip>false</skip>
475                     <!-- config from property value -->
476                 </configuration>
477                 <reportSets>
478                     <reportSet>
479                         <reports>
480                             <report>checkstyle</report>
481                         </reports>
482                     </reportSet>
483                 </reportSets>
484             </plugin>
485
486             <plugin>
487                 <groupId>org.apache.maven.plugins</groupId>
488                 <artifactId>maven-pmd-plugin</artifactId>
489                 <version>3.6</version>
490                 <configuration>
491                     <skip>false</skip>
492                     <targetJdk>${maven.compiler.target}</targetJdk>
493                     <rulesets>
494                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
495                     </rulesets>
496                 </configuration>
497                 <reportSets>
498                     <reportSet>
499                         <reports>
500                             <report>pmd</report>
501                             <report>cpd</report>
502                         </reports>
503                     </reportSet>
504                 </reportSets>
505             </plugin>
506
507             <plugin>
508                 <groupId>org.codehaus.mojo</groupId>
509                 <artifactId>findbugs-maven-plugin</artifactId>
510                 <version>3.0.4</version>
511                 <configuration>
512                     <skip>false</skip>
513                     <effort>Max</effort>
514                     <threshold>Low</threshold>
515                     <!-- for Jenkins -->
516                     <findbugsXmlOutput>true</findbugsXmlOutput>
517                     <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
518                     <xmlOutput>true</xmlOutput>
519                     <!-- excludeFilterFile/ -->
520                 </configuration>
521             </plugin>
522
523         </plugins>
524
525     </reporting>
526
527     <profiles/>
528
529 </project>
530
531 <!-- EOF -->