OSDN Git Service

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