OSDN Git Service

update pmd plugin.
[mikutoga/Vmd2XML.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>vmd2xml</artifactId>
18
19     <version>2.101.104-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>Vmd2XML</name>
23
24     <description><!--
25 -->Vmd2XML is a VMD-XML converter for MikuMikuDance.<!--
26  --></description>
27
28     <url>https://ja.osdn.net/projects/mikutoga/devel/</url>
29     <inceptionYear>2011</inceptionYear>
30
31     <organization>
32         <name>MikuToga Partners</name>
33         <url>https://ja.osdn.net/projects/mikutoga/devel/</url>
34     </organization>
35
36     <licenses>
37         <license>
38             <name>The MIT License</name>
39             <url>https://opensource.org/licenses/MIT</url>
40             <distribution>manual</distribution>
41         </license>
42     </licenses>
43
44     <developers>
45         <developer>
46             <id>olyutorskii</id>
47             <url>https://sites.google.com/site/olyutorskiipit/</url>
48             <organization>MikuToga Partners</organization>
49             <organizationUrl>https://ja.osdn.net/projects/mikutoga/devel/</organizationUrl>
50             <roles>
51                 <role>Project Founder</role>
52                 <role>Java Developer</role>
53             </roles>
54         </developer>
55     </developers>
56
57     <contributors/>
58     <mailingLists/>
59
60     <!-- prerequisites/ -->
61
62     <modules/>
63
64     <scm>
65         <connection>scm:git:git://git.osdn.net/gitroot/mikutoga/Vmd2XML.git</connection>
66         <developerConnection>scm:git:https://scm.osdn.net/gitroot/mikutoga/Vmd2XML.git</developerConnection>
67         <url>https://ja.osdn.net/projects/mikutoga/scm/git/Vmd2XML/</url>
68     </scm>
69
70     <issueManagement>
71         <system>OSDN.net</system>
72         <url>https://ja.osdn.net/projects/mikutoga/ticket/</url>
73     </issueManagement>
74
75     <ciManagement/>
76     <distributionManagement/>
77
78     <properties>
79         <maven.compiler.source>1.8</maven.compiler.source>
80         <maven.compiler.target>1.8</maven.compiler.target>
81
82         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
83         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
84
85         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
86         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
87         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
88
89         <locale>en</locale>
90         <site.locales>${locale}</site.locales>
91         <javadoc.locale>${locale}</javadoc.locale>
92         <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
93
94         <!-- Walk around: JDK 11 javadoc + Maven -->
95         <detectJavaApiLink>false</detectJavaApiLink>
96
97         <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
98         <jacoco-plugin.version>0.8.4</jacoco-plugin.version>
99
100         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
101         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
102         <checkstyle.enable.rss>false</checkstyle.enable.rss>
103
104         <pmd-plugin.version>3.12.0</pmd-plugin.version>
105
106         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
107         <spotbugs.effort>Max</spotbugs.effort>
108         <spotbugs.threshold>Low</spotbugs.threshold>
109         <!-- for Jenkins -->
110         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
111
112         <project.mainentry>jp.sfjp.mikutoga.vmd2xml.Vmd2Xml</project.mainentry>
113
114     </properties>
115
116     <dependencyManagement/>
117
118     <dependencies>
119
120         <dependency>
121             <groupId>junit</groupId>
122             <artifactId>junit</artifactId>
123             <version>4.12</version>
124             <scope>test</scope>
125         </dependency>
126
127         <dependency>
128             <groupId>jp.sourceforge.mikutoga</groupId>
129             <artifactId>togagem</artifactId>
130             <version>3.120.2</version>
131             <scope>compile</scope>
132         </dependency>
133
134     </dependencies>
135
136     <repositories/>
137     <pluginRepositories/>
138
139     <build>
140
141         <pluginManagement>
142
143             <plugins>
144             </plugins>
145
146         </pluginManagement>
147
148         <plugins>
149
150
151             <!-- clean lifecycle -->
152
153             <plugin>
154                 <groupId>org.apache.maven.plugins</groupId>
155                 <artifactId>maven-clean-plugin</artifactId>
156                 <version>3.1.0</version>
157                 <configuration>
158                     <filesets>
159                         <fileset>
160                             <directory>${project.basedir}</directory>
161                             <includes>
162                                 <include>**/*~</include>
163                                 <include>**/*.swp</include>
164                                 <include>**/*.DS_Store</include>
165                                 <include>**/._*</include>
166                                 <include>**/__MACOSX</include>
167                                 <include>**/Thumbs.db</include>
168                                 <include>**/desktop.ini</include>
169                                 <include>**/core</include>
170                                 <include>**/hs_err_pid*</include>
171                             </includes>
172                         </fileset>
173                     </filesets>
174                 </configuration>
175             </plugin>
176
177
178             <!-- default lifecycle -->
179
180             <plugin>
181                 <groupId>org.apache.maven.plugins</groupId>
182                 <artifactId>maven-enforcer-plugin</artifactId>
183                 <version>3.0.0-M2</version>
184                 <executions>
185                     <execution>
186                         <id>enforce-versions</id>
187                         <goals>
188                             <goal>enforce</goal>
189                         </goals>
190                         <configuration>
191                             <rules>
192                                 <requireMavenVersion>
193                                     <version>[3.3.9,)</version>
194                                 </requireMavenVersion>
195                                 <requireJavaVersion>
196                                     <version>[1.8,)</version>
197                                 </requireJavaVersion>
198                             </rules>
199                         </configuration>
200                     </execution>
201                 </executions>
202             </plugin>
203
204             <plugin>
205                 <groupId>org.apache.maven.plugins</groupId>
206                 <artifactId>maven-resources-plugin</artifactId>
207                 <version>3.1.0</version>
208             </plugin>
209
210             <plugin>
211                 <groupId>org.apache.maven.plugins</groupId>
212                 <artifactId>maven-compiler-plugin</artifactId>
213                 <version>3.8.1</version>
214                 <configuration>
215                     <source>1.8</source>  <!-- for NetBeans IDE -->
216                     <target>1.8</target>
217                     <compilerArguments>
218                         <Xlint/>
219                     </compilerArguments>
220                     <showWarnings>true</showWarnings>
221                     <showDeprecation>true</showDeprecation>
222                 </configuration>
223             </plugin>
224
225             <plugin>
226                 <groupId>org.apache.maven.plugins</groupId>
227                 <artifactId>maven-surefire-plugin</artifactId>
228                 <version>${surefire-plugin.version}</version>
229                 <configuration>
230                     <enableAssertions>true</enableAssertions>
231                 </configuration>
232             </plugin>
233
234             <plugin>
235                 <groupId>org.jacoco</groupId>
236                 <artifactId>jacoco-maven-plugin</artifactId>
237                 <version>${jacoco-plugin.version}</version>
238                 <executions>
239                     <execution>
240                         <id>default-prepare-agent</id>
241                         <goals>
242                             <goal>prepare-agent</goal>
243                         </goals>
244                     </execution>
245                     <execution>
246                         <id>default-report</id>
247                         <phase>prepare-package</phase>
248                         <goals>
249                             <goal>report</goal>
250                         </goals>
251                     </execution>
252                     <execution>
253                         <id>default-check</id>
254                         <goals>
255                             <goal>check</goal>
256                         </goals>
257                         <configuration>
258                             <rules>
259                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
260                                     <element>BUNDLE</element>
261                                     <limits>
262                                         <limit implementation="org.jacoco.report.check.Limit">
263                                             <counter>COMPLEXITY</counter>
264                                             <value>COVEREDRATIO</value>
265                                             <minimum>0.0</minimum>
266                                         </limit>
267                                     </limits>
268                                 </rule>
269                             </rules>
270                         </configuration>
271                     </execution>
272                 </executions>
273             </plugin>
274
275             <plugin>
276                 <groupId>org.apache.maven.plugins</groupId>
277                 <artifactId>maven-jar-plugin</artifactId>
278                 <version>3.1.2</version>
279                 <configuration>
280                     <archive>
281                         <manifest>
282                             <mainClass>${project.mainentry}</mainClass>
283                             <addDefaultImplementationEntries>
284                                 true
285                             </addDefaultImplementationEntries>
286                         </manifest>
287                         <manifestEntries>
288                             <Built-By>${project.organization.name}</Built-By>
289                         </manifestEntries>
290                     </archive>
291                 </configuration>
292             </plugin>
293
294             <plugin>
295                 <groupId>org.apache.maven.plugins</groupId>
296                 <artifactId>maven-shade-plugin</artifactId>
297                 <version>3.2.1</version>
298                 <executions>
299                     <execution>
300                         <phase>package</phase>
301                         <goals>
302                           <goal>shade</goal>
303                         </goals>
304                         <configuration>
305                             <createDependencyReducedPom>false</createDependencyReducedPom>
306                             <artifactSet>
307                                 <includes>
308                                     <include>jp.sourceforge.mikutoga:togagem</include>
309                                 </includes>
310                                 <excludes>
311                                     <exclude>junit:junit</exclude>
312                                 </excludes>
313                             </artifactSet>
314                         </configuration>
315                     </execution>
316                 </executions>
317             </plugin>
318
319             <plugin>
320                 <groupId>org.apache.maven.plugins</groupId>
321                 <artifactId>maven-source-plugin</artifactId>
322                 <version>3.1.0</version>
323                 <configuration>
324                     <includePom>true</includePom>
325                     <archive>
326                         <manifestEntries>
327                             <Built-By>${project.organization.name}</Built-By>
328                         </manifestEntries>
329                     </archive>
330                 </configuration>
331                 <executions>
332                     <execution>
333                         <id>attach-sources</id>
334                         <phase>verify</phase>
335                         <goals>
336                           <goal>jar-no-fork</goal>
337                         </goals>
338                     </execution>
339                 </executions>
340             </plugin>
341
342             <plugin>
343                 <groupId>org.apache.maven.plugins</groupId>
344                 <artifactId>maven-install-plugin</artifactId>
345                 <version>3.0.0-M1</version>
346             </plugin>
347
348             <plugin>
349                 <groupId>org.apache.maven.plugins</groupId>
350                 <artifactId>maven-deploy-plugin</artifactId>
351                 <version>3.0.0-M1</version>
352             </plugin>
353
354
355             <!-- site lifecycle -->
356
357             <plugin>
358                 <groupId>org.apache.maven.plugins</groupId>
359                 <artifactId>maven-site-plugin</artifactId>
360                 <version>3.7.1</version>
361                 <configuration>
362                     <locales>${site.locales}</locales>
363                 </configuration>
364             </plugin>
365
366
367             <!-- goals without lifecycle -->
368
369             <plugin>
370                 <groupId>org.apache.maven.plugins</groupId>
371                 <artifactId>maven-assembly-plugin</artifactId>
372                 <version>3.1.1</version>
373                 <configuration>
374                     <descriptors>
375                         <descriptor>src/assembly/src.xml</descriptor>
376                     </descriptors>
377                 </configuration>
378             </plugin>
379
380             <plugin>
381                 <groupId>org.apache.maven.plugins</groupId>
382                 <artifactId>maven-checkstyle-plugin</artifactId>
383                 <version>2.10</version>
384                 <!-- config from property value -->
385             </plugin>
386
387             <plugin>
388                 <groupId>org.apache.maven.plugins</groupId>
389                 <artifactId>maven-pmd-plugin</artifactId>
390                 <version>${pmd-plugin.version}</version>
391                 <configuration>
392                     <rulesets>
393                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
394                     </rulesets>
395                 </configuration>
396             </plugin>
397
398             <plugin>
399                 <groupId>com.github.spotbugs</groupId>
400                 <artifactId>spotbugs-maven-plugin</artifactId>
401                 <version>${spotbugs-plugin.version}</version>
402             </plugin>
403
404         </plugins>
405
406         <resources>
407
408             <resource>
409                 <directory>src/main/resources</directory>
410                 <filtering>true</filtering>
411                 <includes>
412                     <include>**/version.properties</include>
413                 </includes>
414             </resource>
415
416             <resource>
417                 <directory>src/main/resources</directory>
418                 <includes>
419                     <include>**/*.txt</include>
420
421                     <include>**/*.properties</include>
422
423                     <include>**/*.xml</include>
424                     <include>**/*.xsd</include>
425                     <include>**/*.dtd</include>
426
427                     <include>**/*.html</include>
428                     <include>**/*.htm</include>
429                     <include>**/*.css</include>
430
431                     <include>**/*.png</include>
432                     <include>**/*.gif</include>
433                     <include>**/*.jpeg</include>
434                     <include>**/*.jpg</include>
435                 </includes>
436                 <excludes>
437                     <exclude>**/version.properties</exclude>
438
439                     <exclude>**/.DS_Store</exclude>
440                     <exclude>**/__MACOSX</exclude>
441                     <exclude>**/Thumbs.db</exclude>
442                     <exclude>**/thumbs.db</exclude>
443                     <exclude>**/Desktop.ini</exclude>
444                     <exclude>**/desktop.ini</exclude>
445                     <exclude>**/core</exclude>
446                 </excludes>
447             </resource>
448
449         </resources>
450
451     </build>
452
453     <reporting>
454
455         <plugins>
456
457             <plugin>
458                 <groupId>org.apache.maven.plugins</groupId>
459                 <artifactId>maven-project-info-reports-plugin</artifactId>
460                 <version>3.0.0</version>
461                 <configuration>
462                     <linkOnly>true</linkOnly>
463                     <offline>true</offline>
464                 </configuration>
465                 <reportSets>
466                     <reportSet>
467                         <reports>
468                             <report>index</report>
469                             <report>summary</report>
470                             <report>licenses</report>
471                             <report>dependency-info</report>
472                             <report>dependencies</report>
473                             <report>dependency-convergence</report>
474                             <report>plugins</report>
475                             <report>plugin-management</report>
476                             <report>team</report>
477                             <report>issue-management</report>
478                             <report>scm</report>
479 <!--
480                             <report>dependency-management</report>
481                             <report>distribution-management</report>
482                             <report>ci-management</report>
483                             <report>mailing-lists</report>
484                             <report>modules</report>
485 -->
486                         </reports>
487                     </reportSet>
488                 </reportSets>
489             </plugin>
490
491             <plugin>
492                 <groupId>org.apache.maven.plugins</groupId>
493                 <artifactId>maven-javadoc-plugin</artifactId>
494                 <version>3.1.0</version>
495                 <configuration>
496                     <author>false</author>
497                     <notimestamp>true</notimestamp>
498                     <quiet>true</quiet>
499                     <show>protected</show>
500                     <header>${project.name} ${project.version} API</header>
501                     <version>true</version>
502                     <locale>${javadoc.locale}</locale>
503                     <!-- for JDK11 javadoc -->
504                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
505                 </configuration>
506                 <reportSets>
507                     <reportSet>
508                         <reports>
509                             <report>javadoc</report>
510                         </reports>
511                     </reportSet>
512                 </reportSets>
513             </plugin>
514
515             <plugin>
516                 <groupId>org.apache.maven.plugins</groupId>
517                 <artifactId>maven-jxr-plugin</artifactId>
518                 <version>3.0.0</version>
519             </plugin>
520
521             <plugin>
522                 <groupId>org.apache.maven.plugins</groupId>
523                 <artifactId>maven-surefire-report-plugin</artifactId>
524                 <version>${surefire-plugin.version}</version>
525             </plugin>
526
527             <plugin>
528                 <groupId>org.jacoco</groupId>
529                 <artifactId>jacoco-maven-plugin</artifactId>
530                 <version>${jacoco-plugin.version}</version>
531                 <reportSets>
532                     <reportSet>
533                         <reports>
534                             <report>report</report>
535                         </reports>
536                     </reportSet>
537                 </reportSets>
538             </plugin>
539
540             <plugin>
541                 <groupId>org.apache.maven.plugins</groupId>
542                 <artifactId>maven-checkstyle-plugin</artifactId>
543                 <version>2.10</version>
544                 <configuration>
545                     <skip>false</skip>
546                     <!-- config from property value -->
547                 </configuration>
548                 <reportSets>
549                     <reportSet>
550                         <reports>
551                             <report>checkstyle</report>
552                         </reports>
553                     </reportSet>
554                 </reportSets>
555             </plugin>
556
557             <plugin>
558                 <groupId>org.apache.maven.plugins</groupId>
559                 <artifactId>maven-pmd-plugin</artifactId>
560                 <version>${pmd-plugin.version}</version>
561                 <configuration>
562                     <rulesets>
563                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
564                     </rulesets>
565                 </configuration>
566                 <reportSets>
567                     <reportSet>
568                         <reports>
569                             <report>pmd</report>
570                             <report>cpd</report>
571                         </reports>
572                     </reportSet>
573                 </reportSets>
574             </plugin>
575
576             <plugin>
577                 <groupId>com.github.spotbugs</groupId>
578                 <artifactId>spotbugs-maven-plugin</artifactId>
579                 <version>${spotbugs-plugin.version}</version>
580             </plugin>
581
582         </plugins>
583
584     </reporting>
585
586     <profiles/>
587
588 </project>
589
590 <!-- EOF -->