OSDN Git Service

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