OSDN Git Service

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