OSDN Git Service

move config files.
[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         <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         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
105         <spotbugs.effort>Max</spotbugs.effort>
106         <spotbugs.threshold>Low</spotbugs.threshold>
107         <!-- for Jenkins -->
108         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
109
110         <project.mainentry>jp.sfjp.mikutoga.pmd2xml.Pmd2Xml</project.mainentry>
111
112     </properties>
113
114     <dependencyManagement/>
115
116     <dependencies>
117
118         <dependency>
119             <groupId>junit</groupId>
120             <artifactId>junit</artifactId>
121             <version>4.12</version>
122             <scope>test</scope>
123         </dependency>
124
125         <dependency>
126             <groupId>jp.sourceforge.mikutoga</groupId>
127             <artifactId>togagem</artifactId>
128             <version>3.120.2</version>
129             <scope>compile</scope>
130         </dependency>
131
132     </dependencies>
133
134     <repositories/>
135     <pluginRepositories/>
136
137     <build>
138
139         <pluginManagement>
140
141             <plugins>
142             </plugins>
143
144         </pluginManagement>
145
146         <plugins>
147
148
149             <!-- clean lifecycle -->
150
151             <plugin>
152                 <groupId>org.apache.maven.plugins</groupId>
153                 <artifactId>maven-clean-plugin</artifactId>
154                 <version>3.1.0</version>
155                 <configuration>
156                     <filesets>
157                         <fileset>
158                             <directory>${project.basedir}</directory>
159                             <includes>
160                                 <include>**/*~</include>
161                                 <include>**/*.swp</include>
162                                 <include>**/*.DS_Store</include>
163                                 <include>**/._*</include>
164                                 <include>**/__MACOSX</include>
165                                 <include>**/Thumbs.db</include>
166                                 <include>**/desktop.ini</include>
167                                 <include>**/core</include>
168                                 <include>**/hs_err_pid*</include>
169                             </includes>
170                         </fileset>
171                     </filesets>
172                 </configuration>
173             </plugin>
174
175
176             <!-- default lifecycle -->
177
178             <plugin>
179                 <groupId>org.apache.maven.plugins</groupId>
180                 <artifactId>maven-enforcer-plugin</artifactId>
181                 <version>3.0.0-M2</version>
182                 <executions>
183                     <execution>
184                         <id>enforce-versions</id>
185                         <goals>
186                             <goal>enforce</goal>
187                         </goals>
188                         <configuration>
189                             <rules>
190                                 <requireMavenVersion>
191                                     <version>[3.3.9,)</version>
192                                 </requireMavenVersion>
193                                 <requireJavaVersion>
194                                     <version>[1.8,)</version>
195                                 </requireJavaVersion>
196                             </rules>
197                         </configuration>
198                     </execution>
199                 </executions>
200             </plugin>
201
202             <plugin>
203                 <groupId>org.apache.maven.plugins</groupId>
204                 <artifactId>maven-resources-plugin</artifactId>
205                 <version>3.1.0</version>
206             </plugin>
207
208             <plugin>
209                 <groupId>org.apache.maven.plugins</groupId>
210                 <artifactId>maven-compiler-plugin</artifactId>
211                 <version>3.8.1</version>
212                 <configuration>
213                     <source>1.8</source>  <!-- for NetBeans IDE -->
214                     <target>1.8</target>
215                     <compilerArguments>
216                         <Xlint/>
217                     </compilerArguments>
218                     <showWarnings>true</showWarnings>
219                     <showDeprecation>true</showDeprecation>
220                 </configuration>
221             </plugin>
222
223             <plugin>
224                 <groupId>org.apache.maven.plugins</groupId>
225                 <artifactId>maven-surefire-plugin</artifactId>
226                 <version>${surefire-plugin.version}</version>
227                 <configuration>
228                     <enableAssertions>true</enableAssertions>
229                 </configuration>
230             </plugin>
231
232             <plugin>
233                 <groupId>org.jacoco</groupId>
234                 <artifactId>jacoco-maven-plugin</artifactId>
235                 <version>${jacoco-plugin.version}</version>
236                 <executions>
237                     <execution>
238                         <id>default-prepare-agent</id>
239                         <goals>
240                             <goal>prepare-agent</goal>
241                         </goals>
242                     </execution>
243                     <execution>
244                         <id>default-report</id>
245                         <phase>prepare-package</phase>
246                         <goals>
247                             <goal>report</goal>
248                         </goals>
249                     </execution>
250                     <execution>
251                         <id>default-check</id>
252                         <goals>
253                             <goal>check</goal>
254                         </goals>
255                         <configuration>
256                             <rules>
257                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
258                                     <element>BUNDLE</element>
259                                     <limits>
260                                         <limit implementation="org.jacoco.report.check.Limit">
261                                             <counter>COMPLEXITY</counter>
262                                             <value>COVEREDRATIO</value>
263                                             <minimum>0.0</minimum>
264                                         </limit>
265                                     </limits>
266                                 </rule>
267                             </rules>
268                         </configuration>
269                     </execution>
270                 </executions>
271             </plugin>
272
273             <plugin>
274                 <groupId>org.apache.maven.plugins</groupId>
275                 <artifactId>maven-jar-plugin</artifactId>
276                 <version>3.1.2</version>
277                 <configuration>
278                     <archive>
279                         <manifest>
280                             <mainClass>${project.mainentry}</mainClass>
281                             <addDefaultImplementationEntries>
282                                 true
283                             </addDefaultImplementationEntries>
284                         </manifest>
285                         <manifestEntries>
286                             <Built-By>${project.organization.name}</Built-By>
287                         </manifestEntries>
288                     </archive>
289                 </configuration>
290             </plugin>
291
292             <plugin>
293                 <groupId>org.apache.maven.plugins</groupId>
294                 <artifactId>maven-shade-plugin</artifactId>
295                 <version>3.2.1</version>
296                 <executions>
297                     <execution>
298                         <phase>package</phase>
299                         <goals>
300                           <goal>shade</goal>
301                         </goals>
302                         <configuration>
303                             <createDependencyReducedPom>false</createDependencyReducedPom>
304                             <artifactSet>
305                                 <includes>
306                                     <include>jp.sourceforge.mikutoga:togagem</include>
307                                 </includes>
308                                 <excludes>
309                                     <exclude>junit:junit</exclude>
310                                 </excludes>
311                             </artifactSet>
312                         </configuration>
313                     </execution>
314                 </executions>
315             </plugin>
316
317             <plugin>
318                 <groupId>org.apache.maven.plugins</groupId>
319                 <artifactId>maven-source-plugin</artifactId>
320                 <version>3.1.0</version>
321                 <configuration>
322                     <includePom>true</includePom>
323                     <archive>
324                         <manifestEntries>
325                             <Built-By>${project.organization.name}</Built-By>
326                         </manifestEntries>
327                     </archive>
328                 </configuration>
329                 <executions>
330                     <execution>
331                         <id>attach-sources</id>
332                         <phase>verify</phase>
333                         <goals>
334                           <goal>jar-no-fork</goal>
335                         </goals>
336                     </execution>
337                 </executions>
338             </plugin>
339
340             <plugin>
341                 <groupId>org.apache.maven.plugins</groupId>
342                 <artifactId>maven-install-plugin</artifactId>
343                 <version>3.0.0-M1</version>
344             </plugin>
345
346             <plugin>
347                 <groupId>org.apache.maven.plugins</groupId>
348                 <artifactId>maven-deploy-plugin</artifactId>
349                 <version>3.0.0-M1</version>
350             </plugin>
351
352
353             <!-- site lifecycle -->
354
355             <plugin>
356                 <groupId>org.apache.maven.plugins</groupId>
357                 <artifactId>maven-site-plugin</artifactId>
358                 <version>3.7.1</version>
359                 <configuration>
360                     <locales>${site.locales}</locales>
361                 </configuration>
362             </plugin>
363
364
365             <!-- goals without lifecycle -->
366
367             <plugin>
368                 <groupId>org.apache.maven.plugins</groupId>
369                 <artifactId>maven-assembly-plugin</artifactId>
370                 <version>2.4</version>
371                 <configuration>
372                     <archiveBaseDirectory>.</archiveBaseDirectory>
373                     <descriptors>
374                         <descriptor>src/assembly/src.xml</descriptor>
375                     </descriptors>
376                 </configuration>
377             </plugin>
378
379             <plugin>
380                 <groupId>org.apache.maven.plugins</groupId>
381                 <artifactId>maven-checkstyle-plugin</artifactId>
382                 <version>2.11</version>
383                 <!-- config from property value -->
384             </plugin>
385
386             <plugin>
387                 <groupId>org.apache.maven.plugins</groupId>
388                 <artifactId>maven-pmd-plugin</artifactId>
389                 <version>3.0.1</version>
390                 <configuration>
391                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
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.11</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>3.0.1</version>
561                 <configuration>
562                     <skip>false</skip>
563                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
564                     <rulesets>
565                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
566                     </rulesets>
567                 </configuration>
568                 <reportSets>
569                     <reportSet>
570                         <reports>
571                             <report>pmd</report>
572                             <report>cpd</report>
573                         </reports>
574                     </reportSet>
575                 </reportSets>
576             </plugin>
577
578             <plugin>
579                 <groupId>com.github.spotbugs</groupId>
580                 <artifactId>spotbugs-maven-plugin</artifactId>
581                 <version>${spotbugs-plugin.version}</version>
582             </plugin>
583
584         </plugins>
585
586     </reporting>
587
588     <profiles/>
589
590 </project>
591
592 <!-- EOF -->