OSDN Git Service

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