OSDN Git Service

a9330f5c9b2fd87ab2d2fae6ad8bce9a16e28359
[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>3.1.1</version>
272                 <configuration>
273                     <archive>
274                         <manifest>
275                             <addDefaultImplementationEntries>
276                                 true
277                             </addDefaultImplementationEntries>
278                         </manifest>
279                         <manifestEntries>
280                             <Built-By>${project.organization.name}</Built-By>
281                         </manifestEntries>
282                     </archive>
283                 </configuration>
284             </plugin>
285
286             <plugin>
287                 <groupId>org.apache.maven.plugins</groupId>
288                 <artifactId>maven-source-plugin</artifactId>
289                 <version>3.0.1</version>
290                 <configuration>
291                     <includePom>true</includePom>
292                     <archive>
293                         <manifestEntries>
294                             <Built-By>${project.organization.name}</Built-By>
295                         </manifestEntries>
296                     </archive>
297                 </configuration>
298                 <executions>
299                     <execution>
300                         <id>attach-sources</id>
301                         <phase>verify</phase>
302                         <goals>
303                           <goal>jar-no-fork</goal>
304                         </goals>
305                     </execution>
306                 </executions>
307             </plugin>
308
309             <plugin>
310                 <groupId>org.apache.maven.plugins</groupId>
311                 <artifactId>maven-install-plugin</artifactId>
312                 <version>3.0.0-M1</version>
313             </plugin>
314
315             <plugin>
316                 <groupId>org.apache.maven.plugins</groupId>
317                 <artifactId>maven-deploy-plugin</artifactId>
318                 <version>3.0.0-M1</version>
319             </plugin>
320
321
322             <!-- site lifecycle -->
323
324             <plugin>
325                 <groupId>org.apache.maven.plugins</groupId>
326                 <artifactId>maven-site-plugin</artifactId>
327                 <version>3.7.1</version>
328                 <configuration>
329                     <locales>${site.locales}</locales>
330                 </configuration>
331             </plugin>
332
333
334             <!-- goals without lifecycle -->
335
336             <plugin>
337                 <groupId>org.apache.maven.plugins</groupId>
338                 <artifactId>maven-assembly-plugin</artifactId>
339                 <version>3.1.1</version>
340                 <configuration>
341                     <descriptors>
342                         <descriptor>src/assembly/src.xml</descriptor>
343                     </descriptors>
344                 </configuration>
345             </plugin>
346
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-checkstyle-plugin</artifactId>
350                 <version>2.10</version>
351                 <!-- config from property value -->
352             </plugin>
353
354             <plugin>
355                 <groupId>org.apache.maven.plugins</groupId>
356                 <artifactId>maven-pmd-plugin</artifactId>
357                 <version>3.0.1</version>
358                 <configuration>
359                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
360                     <targetJdk>1.6</targetJdk>
361                     <rulesets>
362                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
363                     </rulesets>
364                 </configuration>
365             </plugin>
366
367             <plugin>
368                 <groupId>com.github.spotbugs</groupId>
369                 <artifactId>spotbugs-maven-plugin</artifactId>
370                 <version>${spotbugs-plugin.version}</version>
371             </plugin>
372
373         </plugins>
374
375         <resources>
376
377             <resource>
378                 <directory>src/main/resources</directory>
379                 <filtering>true</filtering>
380                 <includes>
381                     <include>**/version.properties</include>
382                 </includes>
383             </resource>
384
385             <resource>
386                 <directory>src/main/resources</directory>
387                 <includes>
388                     <include>**/*.txt</include>
389
390                     <include>**/*.properties</include>
391
392                     <include>**/*.xml</include>
393                     <include>**/*.xsd</include>
394                     <include>**/*.dtd</include>
395
396                     <include>**/*.html</include>
397                     <include>**/*.htm</include>
398                     <include>**/*.css</include>
399
400                     <include>**/*.png</include>
401                     <include>**/*.gif</include>
402                     <include>**/*.jpeg</include>
403                     <include>**/*.jpg</include>
404                 </includes>
405                 <excludes>
406                     <exclude>**/version.properties</exclude>
407
408                     <exclude>**/.DS_Store</exclude>
409                     <exclude>**/__MACOSX</exclude>
410                     <exclude>**/Thumbs.db</exclude>
411                     <exclude>**/thumbs.db</exclude>
412                     <exclude>**/Desktop.ini</exclude>
413                     <exclude>**/desktop.ini</exclude>
414                     <exclude>**/core</exclude>
415                 </excludes>
416             </resource>
417
418         </resources>
419
420     </build>
421
422     <reporting>
423
424         <plugins>
425
426             <plugin>
427                 <groupId>org.apache.maven.plugins</groupId>
428                 <artifactId>maven-project-info-reports-plugin</artifactId>
429                 <version>3.0.0</version>
430                 <configuration>
431                     <linkOnly>true</linkOnly>
432                     <offline>true</offline>
433                 </configuration>
434                 <reportSets>
435                     <reportSet>
436                         <reports>
437                             <report>index</report>
438                             <report>summary</report>
439                             <report>licenses</report>
440                             <report>dependency-info</report>
441                             <report>dependencies</report>
442                             <report>dependency-convergence</report>
443                             <report>plugins</report>
444                             <report>plugin-management</report>
445                             <report>team</report>
446                             <report>issue-management</report>
447                             <report>scm</report>
448 <!--
449                             <report>dependency-management</report>
450                             <report>distribution-management</report>
451                             <report>ci-management</report>
452                             <report>mailing-lists</report>
453                             <report>modules</report>
454 -->
455                         </reports>
456                     </reportSet>
457                 </reportSets>
458             </plugin>
459
460             <plugin>
461                 <groupId>org.apache.maven.plugins</groupId>
462                 <artifactId>maven-javadoc-plugin</artifactId>
463                 <version>3.1.0</version>
464                 <configuration>
465                     <author>false</author>
466                     <notimestamp>true</notimestamp>
467                     <quiet>true</quiet>
468                     <show>protected</show>
469                     <header>${project.name} ${project.version} API</header>
470                     <version>true</version>
471                     <locale>${javadoc.locale}</locale>
472                     <!-- for JDK11 javadoc -->
473                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
474                 </configuration>
475                 <reportSets>
476                     <reportSet>
477                         <reports>
478                             <report>javadoc</report>
479                         </reports>
480                     </reportSet>
481                 </reportSets>
482             </plugin>
483
484             <plugin>
485                 <groupId>org.apache.maven.plugins</groupId>
486                 <artifactId>maven-jxr-plugin</artifactId>
487                 <version>3.0.0</version>
488             </plugin>
489
490             <plugin>
491                 <groupId>org.apache.maven.plugins</groupId>
492                 <artifactId>maven-surefire-report-plugin</artifactId>
493                 <version>${surefire-plugin.version}</version>
494             </plugin>
495
496             <plugin>
497                 <groupId>org.jacoco</groupId>
498                 <artifactId>jacoco-maven-plugin</artifactId>
499                 <version>${jacoco-plugin.version}</version>
500                 <reportSets>
501                     <reportSet>
502                         <reports>
503                             <report>report</report>
504                         </reports>
505                     </reportSet>
506                 </reportSets>
507             </plugin>
508
509             <plugin>
510                 <groupId>org.apache.maven.plugins</groupId>
511                 <artifactId>maven-checkstyle-plugin</artifactId>
512                 <version>2.10</version>
513                 <configuration>
514                     <skip>false</skip>
515                     <!-- config from property value -->
516                 </configuration>
517                 <reportSets>
518                     <reportSet>
519                         <reports>
520                             <report>checkstyle</report>
521                         </reports>
522                     </reportSet>
523                 </reportSets>
524             </plugin>
525
526             <plugin>
527                 <groupId>org.apache.maven.plugins</groupId>
528                 <artifactId>maven-pmd-plugin</artifactId>
529                 <version>3.0.1</version>
530                 <configuration>
531                     <skip>false</skip>
532                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
533                     <targetJdk>1.6</targetJdk>
534                     <rulesets>
535                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
536                     </rulesets>
537                 </configuration>
538                 <reportSets>
539                     <reportSet>
540                         <reports>
541                             <report>pmd</report>
542                             <report>cpd</report>
543                         </reports>
544                     </reportSet>
545                 </reportSets>
546             </plugin>
547
548             <plugin>
549                 <groupId>com.github.spotbugs</groupId>
550                 <artifactId>spotbugs-maven-plugin</artifactId>
551                 <version>${spotbugs-plugin.version}</version>
552             </plugin>
553
554         </plugins>
555
556     </reporting>
557
558     <profiles/>
559
560 </project>
561
562 <!-- EOF -->