OSDN Git Service

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