OSDN Git Service

40617d3ab648051ba6463d2cb732cd42bdfb2a53
[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.121.3-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.4</jacoco-plugin.version>
100
101         <checkstyle-plugin.version>3.1.0</checkstyle-plugin.version>
102         <checkstyleruntime.version>8.21</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
109         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
110         <spotbugs.effort>Max</spotbugs.effort>
111         <spotbugs.threshold>Low</spotbugs.threshold>
112         <!-- for Jenkins -->
113         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
114
115     </properties>
116
117     <dependencyManagement/>
118
119     <dependencies>
120
121         <dependency>
122             <groupId>junit</groupId>
123             <artifactId>junit</artifactId>
124             <version>4.12</version>
125             <scope>test</scope>
126         </dependency>
127
128     </dependencies>
129
130     <repositories/>
131     <pluginRepositories/>
132
133     <build>
134
135         <pluginManagement>
136
137             <plugins>
138
139                 <plugin>
140                     <groupId>org.apache.maven.plugins</groupId>
141                     <artifactId>maven-checkstyle-plugin</artifactId>
142                     <version>${checkstyle-plugin.version}</version>
143                     <dependencies>
144                         <dependency>
145                             <groupId>com.puppycrawl.tools</groupId>
146                             <artifactId>checkstyle</artifactId>
147                             <version>${checkstyleruntime.version}</version>
148                         </dependency>
149                     </dependencies>
150                 </plugin>
151
152             </plugins>
153
154         </pluginManagement>
155
156         <plugins>
157
158
159             <!-- clean lifecycle -->
160
161             <plugin>
162                 <groupId>org.apache.maven.plugins</groupId>
163                 <artifactId>maven-clean-plugin</artifactId>
164                 <version>3.1.0</version>
165                 <configuration>
166                     <filesets>
167                         <fileset>
168                             <directory>${project.basedir}</directory>
169                             <includes>
170                                 <include>**/*~</include>
171                                 <include>**/*.swp</include>
172                                 <include>**/*.DS_Store</include>
173                                 <include>**/._*</include>
174                                 <include>**/__MACOSX</include>
175                                 <include>**/Thumbs.db</include>
176                                 <include>**/desktop.ini</include>
177                                 <include>**/core</include>
178                                 <include>**/hs_err_pid*</include>
179                             </includes>
180                         </fileset>
181                     </filesets>
182                 </configuration>
183             </plugin>
184
185
186             <!-- default lifecycle -->
187
188             <plugin>
189                 <groupId>org.apache.maven.plugins</groupId>
190                 <artifactId>maven-enforcer-plugin</artifactId>
191                 <version>3.0.0-M2</version>
192                 <executions>
193                     <execution>
194                         <id>enforce-versions</id>
195                         <goals>
196                             <goal>enforce</goal>
197                         </goals>
198                         <configuration>
199                             <rules>
200                                 <requireMavenVersion>
201                                     <version>[3.3.9,)</version>
202                                 </requireMavenVersion>
203                                 <requireJavaVersion>
204                                     <version>[1.8,)</version>
205                                 </requireJavaVersion>
206                             </rules>
207                         </configuration>
208                     </execution>
209                 </executions>
210             </plugin>
211
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-resources-plugin</artifactId>
215                 <version>3.1.0</version>
216             </plugin>
217
218             <plugin>
219                 <groupId>org.apache.maven.plugins</groupId>
220                 <artifactId>maven-compiler-plugin</artifactId>
221                 <version>3.8.1</version>
222                 <configuration>
223                     <source>1.8</source>  <!-- for NetBeans IDE -->
224                     <target>1.8</target>
225                     <compilerArguments>
226                         <Xlint/>
227                     </compilerArguments>
228                     <showWarnings>true</showWarnings>
229                     <showDeprecation>true</showDeprecation>
230                 </configuration>
231             </plugin>
232
233             <plugin>
234                 <groupId>org.apache.maven.plugins</groupId>
235                 <artifactId>maven-surefire-plugin</artifactId>
236                 <version>${surefire-plugin.version}</version>
237                 <configuration>
238                     <enableAssertions>true</enableAssertions>
239                 </configuration>
240             </plugin>
241
242             <plugin>
243                 <groupId>org.jacoco</groupId>
244                 <artifactId>jacoco-maven-plugin</artifactId>
245                 <version>${jacoco-plugin.version}</version>
246                 <executions>
247                     <execution>
248                         <id>default-prepare-agent</id>
249                         <goals>
250                             <goal>prepare-agent</goal>
251                         </goals>
252                     </execution>
253                     <execution>
254                         <id>default-report</id>
255                         <phase>prepare-package</phase>
256                         <goals>
257                             <goal>report</goal>
258                         </goals>
259                     </execution>
260                     <execution>
261                         <id>default-check</id>
262                         <goals>
263                             <goal>check</goal>
264                         </goals>
265                         <configuration>
266                             <rules>
267                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
268                                     <element>BUNDLE</element>
269                                     <limits>
270                                         <limit implementation="org.jacoco.report.check.Limit">
271                                             <counter>COMPLEXITY</counter>
272                                             <value>COVEREDRATIO</value>
273                                             <minimum>0.0</minimum>
274                                         </limit>
275                                     </limits>
276                                 </rule>
277                             </rules>
278                         </configuration>
279                     </execution>
280                 </executions>
281             </plugin>
282
283             <plugin>
284                 <groupId>org.apache.maven.plugins</groupId>
285                 <artifactId>maven-jar-plugin</artifactId>
286                 <version>3.1.2</version>
287                 <configuration>
288                     <archive>
289                         <manifest>
290                             <addDefaultImplementationEntries>
291                                 true
292                             </addDefaultImplementationEntries>
293                         </manifest>
294                         <manifestEntries>
295                             <Built-By>${project.organization.name}</Built-By>
296                         </manifestEntries>
297                     </archive>
298                 </configuration>
299             </plugin>
300
301             <plugin>
302                 <groupId>org.apache.maven.plugins</groupId>
303                 <artifactId>maven-source-plugin</artifactId>
304                 <version>3.1.0</version>
305                 <configuration>
306                     <includePom>true</includePom>
307                     <archive>
308                         <manifestEntries>
309                             <Built-By>${project.organization.name}</Built-By>
310                         </manifestEntries>
311                     </archive>
312                 </configuration>
313                 <executions>
314                     <execution>
315                         <id>attach-sources</id>
316                         <phase>verify</phase>
317                         <goals>
318                           <goal>jar-no-fork</goal>
319                         </goals>
320                     </execution>
321                 </executions>
322             </plugin>
323
324             <plugin>
325                 <groupId>org.apache.maven.plugins</groupId>
326                 <artifactId>maven-install-plugin</artifactId>
327                 <version>3.0.0-M1</version>
328             </plugin>
329
330             <plugin>
331                 <groupId>org.apache.maven.plugins</groupId>
332                 <artifactId>maven-deploy-plugin</artifactId>
333                 <version>3.0.0-M1</version>
334             </plugin>
335
336
337             <!-- site lifecycle -->
338
339             <plugin>
340                 <groupId>org.apache.maven.plugins</groupId>
341                 <artifactId>maven-site-plugin</artifactId>
342                 <version>3.7.1</version>
343                 <configuration>
344                     <locales>${site.locales}</locales>
345                 </configuration>
346             </plugin>
347
348
349             <!-- goals without lifecycle -->
350
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-assembly-plugin</artifactId>
354                 <version>3.1.1</version>
355                 <configuration>
356                     <descriptors>
357                         <descriptor>src/assembly/src.xml</descriptor>
358                     </descriptors>
359                 </configuration>
360             </plugin>
361
362             <plugin>
363                 <groupId>org.apache.maven.plugins</groupId>
364                 <artifactId>maven-checkstyle-plugin</artifactId>
365                 <version>${checkstyle-plugin.version}</version>
366             </plugin>
367
368             <plugin>
369                 <groupId>org.apache.maven.plugins</groupId>
370                 <artifactId>maven-pmd-plugin</artifactId>
371                 <version>${pmd-plugin.version}</version>
372                 <configuration>
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>${pmd-plugin.version}</version>
538                 <configuration>
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 -->