OSDN Git Service

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