OSDN Git Service

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