OSDN Git Service

update checkstyle plugin.
[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.105-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://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
63     <modules/>
64
65     <scm>
66         <connection>scm:git:git://git.osdn.net/gitroot/jindolf/JinArchiver.git</connection>
67         <developerConnection>scm:git:https://scm.osdn.net/gitroot/jindolf/JinArchiver.git</developerConnection>
68         <url>https://osdn.net/projects/jindolf/scm/git/JinArchiver</url>
69     </scm>
70
71     <issueManagement>
72         <system>OSDN.net</system>
73         <url>https://ja.osdn.net/projects/jindolf/ticket/</url>
74     </issueManagement>
75
76     <ciManagement/>
77     <distributionManagement/>
78
79     <properties>
80         <maven.compiler.source>1.8</maven.compiler.source>
81         <maven.compiler.target>1.8</maven.compiler.target>
82
83         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
84         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
85
86         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
87         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
88         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
89
90         <locale>en</locale>
91         <site.locales>${locale}</site.locales>
92         <javadoc.locale>${locale}</javadoc.locale>
93         <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
94
95         <!-- Walk around: JDK 11 javadoc + Maven -->
96         <detectJavaApiLink>false</detectJavaApiLink>
97
98         <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
99         <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
100
101         <checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
102         <checkstyleruntime.version>8.20</checkstyleruntime.version>
103         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
104         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
105         <checkstyle.enable.rss>false</checkstyle.enable.rss>
106
107         <pmd-plugin.version>3.12.0</pmd-plugin.version>
108         <pmd.analysisCache>true</pmd.analysisCache>
109
110         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
111         <spotbugs.effort>Max</spotbugs.effort>
112         <spotbugs.threshold>Low</spotbugs.threshold>
113         <!-- for Jenkins -->
114         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
115
116         <project.mainentry>jp.sourceforge.jindolf.archiver.JinArchiver</project.mainentry>
117
118     </properties>
119
120     <dependencyManagement/>
121
122     <dependencies>
123
124         <dependency>
125             <groupId>junit</groupId>
126             <artifactId>junit</artifactId>
127             <version>4.12</version>
128             <scope>test</scope>
129         </dependency>
130
131         <dependency>
132             <groupId>jp.osdn.jindolf</groupId>
133             <artifactId>jinparser</artifactId>
134             <version>2.101.106</version>
135             <scope>compile</scope>
136         </dependency>
137
138     </dependencies>
139
140     <repositories/>
141     <pluginRepositories/>
142
143     <build>
144
145         <pluginManagement>
146
147             <plugins>
148
149                 <plugin>
150                     <groupId>org.apache.maven.plugins</groupId>
151                     <artifactId>maven-checkstyle-plugin</artifactId>
152                     <version>${checkstyle-plugin.version}</version>
153                     <dependencies>
154                         <dependency>
155                             <groupId>com.puppycrawl.tools</groupId>
156                             <artifactId>checkstyle</artifactId>
157                             <version>${checkstyleruntime.version}</version>
158                         </dependency>
159                     </dependencies>
160                 </plugin>
161
162             </plugins>
163
164         </pluginManagement>
165
166         <plugins>
167
168
169             <!-- clean lifecycle -->
170
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-clean-plugin</artifactId>
174                 <version>3.1.0</version>
175                 <configuration>
176                     <filesets>
177                         <fileset>
178                             <directory>${project.basedir}</directory>
179                             <includes>
180                                 <include>**/*~</include>
181                                 <include>**/*.swp</include>
182                                 <include>**/*.DS_Store</include>
183                                 <include>**/._*</include>
184                                 <include>**/__MACOSX</include>
185                                 <include>**/Thumbs.db</include>
186                                 <include>**/desktop.ini</include>
187                                 <include>**/core</include>
188                                 <include>**/hs_err_pid*</include>
189                             </includes>
190                         </fileset>
191                     </filesets>
192                 </configuration>
193             </plugin>
194
195
196             <!-- default lifecycle -->
197
198             <plugin>
199                 <groupId>org.apache.maven.plugins</groupId>
200                 <artifactId>maven-enforcer-plugin</artifactId>
201                 <version>3.0.0-M2</version>
202                 <executions>
203                     <execution>
204                         <id>enforce-versions</id>
205                         <goals>
206                             <goal>enforce</goal>
207                         </goals>
208                         <configuration>
209                             <rules>
210                                 <requireMavenVersion>
211                                     <version>[3.3.9,)</version>
212                                 </requireMavenVersion>
213                                 <requireJavaVersion>
214                                     <version>[1.8,)</version>
215                                 </requireJavaVersion>
216                             </rules>
217                         </configuration>
218                     </execution>
219                 </executions>
220             </plugin>
221
222             <plugin>
223                 <groupId>org.apache.maven.plugins</groupId>
224                 <artifactId>maven-resources-plugin</artifactId>
225                 <version>3.1.0</version>
226             </plugin>
227
228             <plugin>
229                 <groupId>org.apache.maven.plugins</groupId>
230                 <artifactId>maven-compiler-plugin</artifactId>
231                 <version>3.8.0</version>
232                 <configuration>
233                     <source>1.8</source>  <!-- for NetBeans IDE -->
234                     <target>1.8</target>
235                     <compilerArguments>
236                         <Xlint/>
237                     </compilerArguments>
238                     <showWarnings>true</showWarnings>
239                     <showDeprecation>true</showDeprecation>
240                 </configuration>
241             </plugin>
242
243             <plugin>
244                 <groupId>org.apache.maven.plugins</groupId>
245                 <artifactId>maven-surefire-plugin</artifactId>
246                 <version>${surefire-plugin.version}</version>
247                 <configuration>
248                     <enableAssertions>true</enableAssertions>
249                 </configuration>
250             </plugin>
251
252             <plugin>
253                 <groupId>org.jacoco</groupId>
254                 <artifactId>jacoco-maven-plugin</artifactId>
255                 <version>${jacoco-plugin.version}</version>
256                 <executions>
257                     <execution>
258                         <id>default-prepare-agent</id>
259                         <goals>
260                             <goal>prepare-agent</goal>
261                         </goals>
262                     </execution>
263                     <execution>
264                         <id>default-report</id>
265                         <phase>prepare-package</phase>
266                         <goals>
267                             <goal>report</goal>
268                         </goals>
269                     </execution>
270                     <execution>
271                         <id>default-check</id>
272                         <goals>
273                             <goal>check</goal>
274                         </goals>
275                         <configuration>
276                             <rules>
277                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
278                                     <element>BUNDLE</element>
279                                     <limits>
280                                         <limit implementation="org.jacoco.report.check.Limit">
281                                             <counter>COMPLEXITY</counter>
282                                             <value>COVEREDRATIO</value>
283                                             <minimum>0.0</minimum>
284                                         </limit>
285                                     </limits>
286                                 </rule>
287                             </rules>
288                         </configuration>
289                     </execution>
290                 </executions>
291             </plugin>
292
293             <plugin>
294                 <groupId>org.apache.maven.plugins</groupId>
295                 <artifactId>maven-jar-plugin</artifactId>
296                 <version>3.1.1</version>
297                 <configuration>
298                     <archive>
299                         <manifest>
300                             <mainClass>${project.mainentry}</mainClass>
301                             <addDefaultImplementationEntries>
302                                 false
303                             </addDefaultImplementationEntries>
304                         </manifest>
305                         <manifestEntries>
306                             <Built-By>${project.organization.name}</Built-By>
307                         </manifestEntries>
308                     </archive>
309                 </configuration>
310             </plugin>
311
312             <plugin>
313                 <groupId>org.apache.maven.plugins</groupId>
314                 <artifactId>maven-shade-plugin</artifactId>
315                 <version>3.2.1</version>
316                 <executions>
317                     <execution>
318                         <phase>package</phase>
319                         <goals>
320                             <goal>shade</goal>
321                         </goals>
322                         <configuration>
323                             <createDependencyReducedPom>false</createDependencyReducedPom>
324                         </configuration>
325                     </execution>
326                 </executions>
327             </plugin>
328
329             <plugin>
330                 <groupId>org.apache.maven.plugins</groupId>
331                 <artifactId>maven-source-plugin</artifactId>
332                 <version>3.0.1</version>
333                 <configuration>
334                     <includePom>true</includePom>
335                     <archive>
336                         <manifestEntries>
337                             <Built-By>${project.organization.name}</Built-By>
338                         </manifestEntries>
339                     </archive>
340                 </configuration>
341                 <executions>
342                     <execution>
343                         <id>attach-sources</id>
344                         <phase>verify</phase>
345                         <goals>
346                           <goal>jar-no-fork</goal>
347                         </goals>
348                     </execution>
349                 </executions>
350             </plugin>
351
352             <plugin>
353                 <groupId>org.apache.maven.plugins</groupId>
354                 <artifactId>maven-install-plugin</artifactId>
355                 <version>3.0.0-M1</version>
356             </plugin>
357
358             <plugin>
359                 <groupId>org.apache.maven.plugins</groupId>
360                 <artifactId>maven-deploy-plugin</artifactId>
361                 <version>3.0.0-M1</version>
362             </plugin>
363
364
365             <!-- site lifecycle -->
366
367             <plugin>
368                 <groupId>org.apache.maven.plugins</groupId>
369                 <artifactId>maven-site-plugin</artifactId>
370                 <version>3.7.1</version>
371                 <configuration>
372                     <locales>${site.locales}</locales>
373                 </configuration>
374             </plugin>
375
376
377             <!-- goals without lifecycle -->
378
379             <plugin>
380                 <groupId>org.apache.maven.plugins</groupId>
381                 <artifactId>maven-assembly-plugin</artifactId>
382                 <version>3.1.1</version>
383                 <configuration>
384                     <descriptors>
385                         <descriptor>src/assembly/src.xml</descriptor>
386                     </descriptors>
387                 </configuration>
388             </plugin>
389
390             <plugin>
391                 <groupId>org.apache.maven.plugins</groupId>
392                 <artifactId>maven-checkstyle-plugin</artifactId>
393                 <version>${checkstyle-plugin.version}</version>
394             </plugin>
395
396             <plugin>
397                 <groupId>org.apache.maven.plugins</groupId>
398                 <artifactId>maven-pmd-plugin</artifactId>
399                 <version>${pmd-plugin.version}</version>
400                 <configuration>
401                     <rulesets>
402                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
403                     </rulesets>
404                 </configuration>
405             </plugin>
406
407             <plugin>
408                 <groupId>com.github.spotbugs</groupId>
409                 <artifactId>spotbugs-maven-plugin</artifactId>
410                 <version>${spotbugs-plugin.version}</version>
411             </plugin>
412
413         </plugins>
414
415         <resources>
416
417             <resource>
418                 <directory>src/main/resources</directory>
419                 <filtering>true</filtering>
420                 <includes>
421                     <include>**/version.properties</include>
422                 </includes>
423             </resource>
424
425             <resource>
426                 <directory>src/main/resources</directory>
427                 <includes>
428                     <include>**/*.txt</include>
429
430                     <include>**/*.properties</include>
431
432                     <include>**/*.xml</include>
433                     <include>**/*.xsd</include>
434                     <include>**/*.dtd</include>
435
436                     <include>**/*.html</include>
437                     <include>**/*.htm</include>
438                     <include>**/*.css</include>
439
440                     <include>**/*.png</include>
441                     <include>**/*.gif</include>
442                     <include>**/*.jpeg</include>
443                     <include>**/*.jpg</include>
444                 </includes>
445                 <excludes>
446                     <exclude>**/version.properties</exclude>
447
448                     <exclude>**/.DS_Store</exclude>
449                     <exclude>**/__MACOSX</exclude>
450                     <exclude>**/Thumbs.db</exclude>
451                     <exclude>**/thumbs.db</exclude>
452                     <exclude>**/Desktop.ini</exclude>
453                     <exclude>**/desktop.ini</exclude>
454                     <exclude>**/core</exclude>
455                 </excludes>
456             </resource>
457
458         </resources>
459
460     </build>
461
462     <reporting>
463
464         <plugins>
465
466             <plugin>
467                 <groupId>org.apache.maven.plugins</groupId>
468                 <artifactId>maven-project-info-reports-plugin</artifactId>
469                 <version>3.0.0</version>
470                 <configuration>
471                     <linkOnly>true</linkOnly>
472                     <offline>true</offline>
473                 </configuration>
474                 <reportSets>
475                     <reportSet>
476                         <reports>
477                             <report>index</report>
478                             <report>summary</report>
479                             <report>licenses</report>
480                             <report>dependency-info</report>
481                             <report>dependencies</report>
482                             <report>dependency-convergence</report>
483                             <report>plugins</report>
484                             <report>plugin-management</report>
485                             <report>team</report>
486                             <report>issue-management</report>
487                             <report>scm</report>
488 <!--
489                             <report>dependency-management</report>
490                             <report>distribution-management</report>
491                             <report>ci-management</report>
492                             <report>mailing-lists</report>
493                             <report>modules</report>
494 -->
495                         </reports>
496                     </reportSet>
497                 </reportSets>
498             </plugin>
499
500             <plugin>
501                 <groupId>org.apache.maven.plugins</groupId>
502                 <artifactId>maven-javadoc-plugin</artifactId>
503                 <version>3.1.0</version>
504                 <configuration>
505                     <author>false</author>
506                     <notimestamp>true</notimestamp>
507                     <quiet>true</quiet>
508                     <show>protected</show>
509                     <header>${project.name} ${project.version} API</header>
510                     <version>true</version>
511                     <locale>${javadoc.locale}</locale>
512                     <!-- for JDK11 javadoc -->
513                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
514                 </configuration>
515                 <reportSets>
516                     <reportSet>
517                         <reports>
518                             <report>javadoc</report>
519                         </reports>
520                     </reportSet>
521                 </reportSets>
522             </plugin>
523
524             <plugin>
525                 <groupId>org.apache.maven.plugins</groupId>
526                 <artifactId>maven-jxr-plugin</artifactId>
527                 <version>3.0.0</version>
528             </plugin>
529
530             <plugin>
531                 <groupId>org.apache.maven.plugins</groupId>
532                 <artifactId>maven-surefire-report-plugin</artifactId>
533                 <version>${surefire-plugin.version}</version>
534             </plugin>
535
536             <plugin>
537                 <groupId>org.jacoco</groupId>
538                 <artifactId>jacoco-maven-plugin</artifactId>
539                 <version>${jacoco-plugin.version}</version>
540                 <reportSets>
541                     <reportSet>
542                         <reports>
543                             <report>report</report>
544                         </reports>
545                     </reportSet>
546                 </reportSets>
547             </plugin>
548
549             <plugin>
550                 <groupId>org.apache.maven.plugins</groupId>
551                 <artifactId>maven-checkstyle-plugin</artifactId>
552                 <version>${checkstyle-plugin.version}</version>
553                 <reportSets>
554                     <reportSet>
555                         <reports>
556                             <report>checkstyle</report>
557                         </reports>
558                     </reportSet>
559                 </reportSets>
560             </plugin>
561
562             <plugin>
563                 <groupId>org.apache.maven.plugins</groupId>
564                 <artifactId>maven-pmd-plugin</artifactId>
565                 <version>${pmd-plugin.version}</version>
566                 <configuration>
567                     <rulesets>
568                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
569                     </rulesets>
570                 </configuration>
571                 <reportSets>
572                     <reportSet>
573                         <reports>
574                             <report>pmd</report>
575                             <report>cpd</report>
576                         </reports>
577                     </reportSet>
578                 </reportSets>
579             </plugin>
580
581             <plugin>
582                 <groupId>com.github.spotbugs</groupId>
583                 <artifactId>spotbugs-maven-plugin</artifactId>
584                 <version>${spotbugs-plugin.version}</version>
585             </plugin>
586
587         </plugins>
588
589     </reporting>
590
591     <profiles/>
592
593 </project>
594
595 <!-- EOF -->