OSDN Git Service

change coverage from cobertura to Jacoco
[jindolf/JinArchiver.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>jinarchiver</artifactId>
18
19     <version>1.503.3-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>JinArchiver</name>
23
24     <description><!--
25 -->JinArchiverは、人狼BBSの過去ログを独自のXML形式でローカルディスクに<!--
26 -->保存するためのツールです。<!--
27  --></description>
28
29     <url>https://osdn.jp/projects/jindolf/devel/</url>
30     <inceptionYear>2009</inceptionYear>
31
32     <organization>
33         <name>Jindolf Partners</name>
34         <url>https://osdn.jp/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/JinArchiver</connection>
69         <developerConnection>scm:hg:ssh://hg.osdn.jp//hgroot/jindolf/JinArchiver</developerConnection>
70         <url>https://osdn.jp/projects/jindolf/scm/hg/JinArchiver/</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         <site.locales>en</site.locales>
93         <javadoc.locale>en</javadoc.locale>
94         <findbugs.jvmArgs>-Duser.language=en</findbugs.jvmArgs>
95         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
96
97         <jacoco-plugin.version>0.7.9</jacoco-plugin.version>
98
99         <checkstyle-plugin.version>2.17</checkstyle-plugin.version>
100         <checkstyleruntime.version>6.19</checkstyleruntime.version>
101         <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.location>
102         <checkstyle.enable.rss>false</checkstyle.enable.rss>
103
104         <pmd-plugin.version>3.7</pmd-plugin.version>
105
106         <findbugs-plugin.version>3.0.4</findbugs-plugin.version>
107         <findbugs.effort>Max</findbugs.effort>
108         <findbugs.threshold>Low</findbugs.threshold>
109         <!-- for Jenkins -->
110         <findbugs.xmlOutput>true</findbugs.xmlOutput>
111
112         <project.mainentry>jp.sourceforge.jindolf.archiver.JinArchiver</project.mainentry>
113
114     </properties>
115
116     <dependencyManagement/>
117
118     <dependencies>
119
120         <dependency>
121             <groupId>junit</groupId>
122             <artifactId>junit</artifactId>
123             <version>4.12</version>
124             <scope>test</scope>
125         </dependency>
126
127         <dependency>
128             <groupId>jp.sourceforge.jindolf</groupId>
129             <artifactId>jinparser</artifactId>
130             <version>1.409.4</version>
131             <scope>compile</scope>
132         </dependency>
133
134     </dependencies>
135
136     <repositories/>
137     <pluginRepositories/>
138
139     <build>
140         <pluginManagement/>
141
142         <plugins>
143
144
145             <!-- clean lifecycle -->
146
147             <plugin>
148                 <groupId>org.apache.maven.plugins</groupId>
149                 <artifactId>maven-clean-plugin</artifactId>
150                 <version>3.0.0</version>
151                 <configuration>
152                     <filesets>
153                         <fileset>
154                             <directory>${project.basedir}</directory>
155                             <includes>
156                                 <include>**/*~</include>
157                                 <include>**/*.swp</include>
158                                 <include>**/*.DS_Store</include>
159                                 <include>**/._*</include>
160                                 <include>**/__MACOSX</include>
161                                 <include>**/Thumbs.db</include>
162                                 <include>**/desktop.ini</include>
163                                 <include>**/core</include>
164                                 <include>**/hs_err_pid*</include>
165                             </includes>
166                         </fileset>
167                     </filesets>
168                 </configuration>
169             </plugin>
170
171
172             <!-- default lifecycle -->
173
174             <plugin>
175                 <groupId>org.apache.maven.plugins</groupId>
176                 <artifactId>maven-enforcer-plugin</artifactId>
177                 <version>1.4.1</version>
178                 <configuration>
179                     <rules>
180                         <requireMavenVersion>
181                             <version>[3.0.1,)</version>
182                         </requireMavenVersion>
183                         <requireJavaVersion>
184                             <version>[1.7,)</version>
185                         </requireJavaVersion>
186                     </rules>
187                 </configuration>
188             </plugin>
189
190             <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-resources-plugin</artifactId>
193                 <version>3.0.2</version>
194             </plugin>
195
196             <plugin>
197                 <groupId>org.apache.maven.plugins</groupId>
198                 <artifactId>maven-compiler-plugin</artifactId>
199                 <version>3.6.1</version>
200                 <configuration>
201                     <source>1.7</source>  <!-- for NetBeans IDE -->
202                     <target>1.7</target>
203                     <compilerArguments>
204                         <Xlint/>
205                     </compilerArguments>
206                     <showWarnings>true</showWarnings>
207                     <showDeprecation>true</showDeprecation>
208                 </configuration>
209             </plugin>
210
211             <plugin>
212                 <groupId>org.apache.maven.plugins</groupId>
213                 <artifactId>maven-surefire-plugin</artifactId>
214                 <version>2.19.1</version>
215                 <configuration>
216                     <enableAssertions>true</enableAssertions>
217                 </configuration>
218             </plugin>
219
220             <plugin>
221                 <groupId>org.jacoco</groupId>
222                 <artifactId>jacoco-maven-plugin</artifactId>
223                 <version>${jacoco-plugin.version}</version>
224                 <executions>
225                     <execution>
226                         <id>default-prepare-agent</id>
227                         <goals>
228                             <goal>prepare-agent</goal>
229                         </goals>
230                     </execution>
231                     <execution>
232                         <id>default-report</id>
233                         <phase>prepare-package</phase>
234                         <goals>
235                             <goal>report</goal>
236                         </goals>
237                     </execution>
238                     <execution>
239                         <id>default-check</id>
240                         <goals>
241                             <goal>check</goal>
242                         </goals>
243                         <configuration>
244                             <rules>
245                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
246                                     <element>BUNDLE</element>
247                                     <limits>
248                                         <limit implementation="org.jacoco.report.check.Limit">
249                                             <counter>COMPLEXITY</counter>
250                                             <value>COVEREDRATIO</value>
251                                             <minimum>0.0</minimum>
252                                         </limit>
253                                     </limits>
254                                 </rule>
255                             </rules>
256                         </configuration>
257                     </execution>
258                 </executions>
259             </plugin>
260
261             <plugin>
262                 <groupId>org.apache.maven.plugins</groupId>
263                 <artifactId>maven-jar-plugin</artifactId>
264                 <version>3.0.2</version>
265                 <configuration>
266                     <archive>
267                         <manifest>
268                             <mainClass>${project.mainentry}</mainClass>
269                         </manifest>
270                         <manifestEntries>
271                             <Built-By>${project.organization.name}</Built-By>
272                         </manifestEntries>
273                     </archive>
274                 </configuration>
275             </plugin>
276
277             <plugin>
278                 <groupId>org.apache.maven.plugins</groupId>
279                 <artifactId>maven-shade-plugin</artifactId>
280                 <version>2.4.3</version>
281                 <executions>
282                     <execution>
283                         <phase>package</phase>
284                         <goals>
285                           <goal>shade</goal>
286                         </goals>
287                         <configuration>
288                             <createDependencyReducedPom>false</createDependencyReducedPom>
289                             <artifactSet>
290                                 <includes>
291                                     <include>jp.sourceforge.jindolf:jincore</include>
292                                     <include>jp.sourceforge.jindolf:jinparser</include>
293                                 </includes>
294                                 <excludes>
295                                     <exclude>junit:junit</exclude>
296                                 </excludes>
297                             </artifactSet>
298                         </configuration>
299                     </execution>
300                 </executions>
301             </plugin>
302
303             <plugin>
304                 <groupId>org.apache.maven.plugins</groupId>
305                 <artifactId>maven-source-plugin</artifactId>
306                 <version>3.0.1</version>
307                 <configuration>
308                     <includePom>true</includePom>
309                     <archive>
310                         <manifestEntries>
311                             <Built-By>${project.organization.name}</Built-By>
312                         </manifestEntries>
313                     </archive>
314                 </configuration>
315                 <executions>
316                     <execution>
317                         <id>attach-sources</id>
318                         <phase>verify</phase>
319                         <goals>
320                           <goal>jar-no-fork</goal>
321                         </goals>
322                     </execution>
323                 </executions>
324             </plugin>
325
326             <plugin>
327                 <groupId>org.apache.maven.plugins</groupId>
328                 <artifactId>maven-install-plugin</artifactId>
329                 <version>2.5.2</version>
330             </plugin>
331
332             <plugin>
333                 <groupId>org.apache.maven.plugins</groupId>
334                 <artifactId>maven-deploy-plugin</artifactId>
335                 <version>2.8.2</version>
336             </plugin>
337
338
339             <!-- site lifecycle -->
340
341             <plugin>
342                 <groupId>org.apache.maven.plugins</groupId>
343                 <artifactId>maven-site-plugin</artifactId>
344                 <version>3.5.1</version>
345                 <configuration>
346                     <generateReports>true</generateReports>
347                     <locales>ja</locales>
348                     <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
349                     <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
350                 </configuration>
351             </plugin>
352
353
354             <!-- goals without lifecycle -->
355
356             <plugin>
357                 <groupId>org.apache.maven.plugins</groupId>
358                 <artifactId>maven-assembly-plugin</artifactId>
359                 <version>2.6</version>
360                 <configuration>
361                     <archiveBaseDirectory>.</archiveBaseDirectory>
362                     <descriptors>
363                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
364                     </descriptors>
365                 </configuration>
366             </plugin>
367
368             <plugin>
369                 <groupId>org.apache.maven.plugins</groupId>
370                 <artifactId>maven-checkstyle-plugin</artifactId>
371                 <version>2.15</version>
372                 <!-- config from property value -->
373             </plugin>
374
375         </plugins>
376
377         <resources>
378
379             <resource>
380                 <directory>src/main/resources</directory>
381                 <filtering>true</filtering>
382                 <includes>
383                     <include>**/version.properties</include>
384                 </includes>
385             </resource>
386
387             <resource>
388                 <directory>src/main/resources</directory>
389                 <includes>
390                     <include>**/*.txt</include>
391
392                     <include>**/*.properties</include>
393
394                     <include>**/*.xml</include>
395                     <include>**/*.xsd</include>
396                     <include>**/*.dtd</include>
397
398                     <include>**/*.html</include>
399                     <include>**/*.htm</include>
400                     <include>**/*.css</include>
401
402                     <include>**/*.png</include>
403                     <include>**/*.gif</include>
404                     <include>**/*.jpeg</include>
405                     <include>**/*.jpg</include>
406                 </includes>
407                 <excludes>
408                     <exclude>**/version.properties</exclude>
409
410                     <exclude>**/.DS_Store</exclude>
411                     <exclude>**/__MACOSX</exclude>
412                     <exclude>**/Thumbs.db</exclude>
413                     <exclude>**/thumbs.db</exclude>
414                     <exclude>**/Desktop.ini</exclude>
415                     <exclude>**/desktop.ini</exclude>
416                     <exclude>**/core</exclude>
417                 </excludes>
418             </resource>
419
420         </resources>
421
422     </build>
423
424     <reporting>
425
426         <plugins>
427
428             <plugin>
429                 <groupId>org.apache.maven.plugins</groupId>
430                 <artifactId>maven-project-info-reports-plugin</artifactId>
431                 <version>2.9</version>
432                 <configuration>
433                     <linkOnly>true</linkOnly>
434                     <offline>true</offline>
435                 </configuration>
436                 <reportSets>
437                     <reportSet>
438                         <reports>
439                             <report>index</report>
440                             <report>summary</report>
441                             <report>license</report>
442                             <report>dependencies</report>
443                             <report>plugins</report>
444                             <report>scm</report>
445                             <report>project-team</report>
446 <!--
447                             <report>dependency-convergence</report>
448                             <report>dependency-info</report>
449                             <report>dependency-management</report>
450                             <report>distribution-management</report>
451                             <report>issue-tracking</report>
452                             <report>mailing-list</report>
453                             <report>modules</report>
454                             <report>plugin-management</report>
455 -->
456                         </reports>
457                     </reportSet>
458                 </reportSets>
459             </plugin>
460
461             <plugin>
462                 <groupId>org.apache.maven.plugins</groupId>
463                 <artifactId>maven-javadoc-plugin</artifactId>
464                 <version>2.10.3</version>
465                 <configuration>
466                     <skip>false</skip>
467                     <notimestamp>true</notimestamp>
468                     <quiet>true</quiet>
469                     <show>protected</show>
470                 </configuration>
471                 <reportSets>
472                     <reportSet>
473                         <reports>
474                             <report>javadoc</report>
475                         </reports>
476                     </reportSet>
477                 </reportSets>
478             </plugin>
479
480             <plugin>
481                 <groupId>org.apache.maven.plugins</groupId>
482                 <artifactId>maven-jxr-plugin</artifactId>
483                 <version>2.5</version>
484                 <configuration>
485                     <skip>false</skip>
486                 </configuration>
487             </plugin>
488
489             <plugin>
490                 <groupId>org.apache.maven.plugins</groupId>
491                 <artifactId>maven-surefire-report-plugin</artifactId>
492                 <version>2.19.1</version>
493                 <configuration>
494                     <showSuccess>false</showSuccess>
495                 </configuration>
496                 <reportSets>
497                     <reportSet>
498                         <reports>
499                             <report>report-only</report>
500                         </reports>
501                     </reportSet>
502                 </reportSets>
503             </plugin>
504
505             <plugin>
506                 <groupId>org.jacoco</groupId>
507                 <artifactId>jacoco-maven-plugin</artifactId>
508                 <version>${jacoco-plugin.version}</version>
509                 <reportSets>
510                     <reportSet>
511                         <reports>
512                             <report>report</report>
513                         </reports>
514                     </reportSet>
515                 </reportSets>
516             </plugin>
517
518             <plugin>
519                 <groupId>org.apache.maven.plugins</groupId>
520                 <artifactId>maven-checkstyle-plugin</artifactId>
521                 <version>2.15</version>
522                 <configuration>
523                     <skip>false</skip>
524                     <!-- config from property value -->
525                 </configuration>
526                 <reportSets>
527                     <reportSet>
528                         <reports>
529                             <report>checkstyle</report>
530                         </reports>
531                     </reportSet>
532                 </reportSets>
533             </plugin>
534
535             <plugin>
536                 <groupId>org.apache.maven.plugins</groupId>
537                 <artifactId>maven-pmd-plugin</artifactId>
538                 <version>3.6</version>
539                 <configuration>
540                     <skip>false</skip>
541                     <targetJdk>${maven.compiler.target}</targetJdk>
542                     <rulesets>
543                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
544                     </rulesets>
545                 </configuration>
546                 <reportSets>
547                     <reportSet>
548                         <reports>
549                             <report>pmd</report>
550                             <report>cpd</report>
551                         </reports>
552                     </reportSet>
553                 </reportSets>
554             </plugin>
555
556             <plugin>
557                 <groupId>org.codehaus.mojo</groupId>
558                 <artifactId>findbugs-maven-plugin</artifactId>
559                 <version>3.0.3</version>
560                 <configuration>
561                     <skip>false</skip>
562                     <effort>Max</effort>
563                     <threshold>Low</threshold>
564                     <!-- for Jenkins -->
565                     <findbugsXmlOutput>true</findbugsXmlOutput>
566                     <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
567                     <xmlOutput>true</xmlOutput>
568                     <!-- excludeFilterFile/ -->
569                 </configuration>
570             </plugin>
571
572         </plugins>
573
574     </reporting>
575
576     <profiles/>
577
578 </project>
579
580 <!-- EOF -->