OSDN Git Service

update javadoc plugins.
[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
101         <checkstyle.config.location>${project.mainconf}/checks.xml</checkstyle.config.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.codehaus.mojo</groupId>
234                 <artifactId>cobertura-maven-plugin</artifactId>
235                 <version>2.7</version>
236                 <configuration>
237                     <encoding>${project.build.sourceEncoding}</encoding>
238                     <formats>
239                         <format>html</format>
240                         <format>xml</format> <!-- for Jenkins -->
241                     </formats>
242                 </configuration>
243             </plugin>
244
245             <plugin>
246                 <groupId>org.apache.maven.plugins</groupId>
247                 <artifactId>maven-jar-plugin</artifactId>
248                 <version>3.1.2</version>
249                 <configuration>
250                     <archive>
251                         <manifest>
252                             <mainClass>${project.mainentry}</mainClass>
253                             <addDefaultImplementationEntries>
254                                 true
255                             </addDefaultImplementationEntries>
256                         </manifest>
257                         <manifestEntries>
258                             <Built-By>${project.organization.name}</Built-By>
259                         </manifestEntries>
260                     </archive>
261                 </configuration>
262             </plugin>
263
264             <plugin>
265                 <groupId>org.apache.maven.plugins</groupId>
266                 <artifactId>maven-shade-plugin</artifactId>
267                 <version>3.2.1</version>
268                 <executions>
269                     <execution>
270                         <phase>package</phase>
271                         <goals>
272                           <goal>shade</goal>
273                         </goals>
274                         <configuration>
275                             <createDependencyReducedPom>false</createDependencyReducedPom>
276                             <artifactSet>
277                                 <includes>
278                                     <include>jp.sourceforge.mikutoga:togagem</include>
279                                 </includes>
280                                 <excludes>
281                                     <exclude>junit:junit</exclude>
282                                 </excludes>
283                             </artifactSet>
284                         </configuration>
285                     </execution>
286                 </executions>
287             </plugin>
288
289             <plugin>
290                 <groupId>org.apache.maven.plugins</groupId>
291                 <artifactId>maven-source-plugin</artifactId>
292                 <version>3.1.0</version>
293                 <configuration>
294                     <includePom>true</includePom>
295                     <archive>
296                         <manifestEntries>
297                             <Built-By>${project.organization.name}</Built-By>
298                         </manifestEntries>
299                     </archive>
300                 </configuration>
301                 <executions>
302                     <execution>
303                         <id>attach-sources</id>
304                         <phase>verify</phase>
305                         <goals>
306                           <goal>jar-no-fork</goal>
307                         </goals>
308                     </execution>
309                 </executions>
310             </plugin>
311
312             <plugin>
313                 <groupId>org.apache.maven.plugins</groupId>
314                 <artifactId>maven-install-plugin</artifactId>
315                 <version>3.0.0-M1</version>
316             </plugin>
317
318             <plugin>
319                 <groupId>org.apache.maven.plugins</groupId>
320                 <artifactId>maven-deploy-plugin</artifactId>
321                 <version>3.0.0-M1</version>
322             </plugin>
323
324
325             <!-- site lifecycle -->
326
327             <plugin>
328                 <groupId>org.apache.maven.plugins</groupId>
329                 <artifactId>maven-site-plugin</artifactId>
330                 <version>3.7.1</version>
331                 <configuration>
332                     <locales>${site.locales}</locales>
333                 </configuration>
334             </plugin>
335
336
337             <!-- goals without lifecycle -->
338
339             <plugin>
340                 <groupId>org.apache.maven.plugins</groupId>
341                 <artifactId>maven-assembly-plugin</artifactId>
342                 <version>2.4</version>
343                 <configuration>
344                     <archiveBaseDirectory>.</archiveBaseDirectory>
345                     <descriptors>
346                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
347                     </descriptors>
348                 </configuration>
349             </plugin>
350
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-checkstyle-plugin</artifactId>
354                 <version>2.11</version>
355                 <!-- config from property value -->
356             </plugin>
357
358             <plugin>
359                 <groupId>org.apache.maven.plugins</groupId>
360                 <artifactId>maven-pmd-plugin</artifactId>
361                 <version>3.0.1</version>
362                 <configuration>
363                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
364                     <rulesets>
365                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
366                     </rulesets>
367                 </configuration>
368             </plugin>
369
370             <plugin>
371                 <groupId>com.github.spotbugs</groupId>
372                 <artifactId>spotbugs-maven-plugin</artifactId>
373                 <version>${spotbugs-plugin.version}</version>
374             </plugin>
375
376         </plugins>
377
378         <resources>
379
380             <resource>
381                 <directory>src/main/resources</directory>
382                 <filtering>true</filtering>
383                 <includes>
384                     <include>**/version.properties</include>
385                 </includes>
386             </resource>
387
388             <resource>
389                 <directory>src/main/resources</directory>
390                 <includes>
391                     <include>**/*.txt</include>
392
393                     <include>**/*.properties</include>
394
395                     <include>**/*.xml</include>
396                     <include>**/*.xsd</include>
397                     <include>**/*.dtd</include>
398
399                     <include>**/*.html</include>
400                     <include>**/*.htm</include>
401                     <include>**/*.css</include>
402
403                     <include>**/*.png</include>
404                     <include>**/*.gif</include>
405                     <include>**/*.jpeg</include>
406                     <include>**/*.jpg</include>
407                 </includes>
408                 <excludes>
409                     <exclude>**/version.properties</exclude>
410
411                     <exclude>**/.DS_Store</exclude>
412                     <exclude>**/__MACOSX</exclude>
413                     <exclude>**/Thumbs.db</exclude>
414                     <exclude>**/thumbs.db</exclude>
415                     <exclude>**/Desktop.ini</exclude>
416                     <exclude>**/desktop.ini</exclude>
417                     <exclude>**/core</exclude>
418                 </excludes>
419             </resource>
420
421         </resources>
422
423     </build>
424
425     <reporting>
426
427         <plugins>
428
429             <plugin>
430                 <groupId>org.apache.maven.plugins</groupId>
431                 <artifactId>maven-project-info-reports-plugin</artifactId>
432                 <version>3.0.0</version>
433                 <configuration>
434                     <linkOnly>true</linkOnly>
435                     <offline>true</offline>
436                 </configuration>
437                 <reportSets>
438                     <reportSet>
439                         <reports>
440                             <report>index</report>
441                             <report>summary</report>
442                             <report>licenses</report>
443                             <report>dependency-info</report>
444                             <report>dependencies</report>
445                             <report>dependency-convergence</report>
446                             <report>plugins</report>
447                             <report>plugin-management</report>
448                             <report>team</report>
449                             <report>issue-management</report>
450                             <report>scm</report>
451 <!--
452                             <report>dependency-management</report>
453                             <report>distribution-management</report>
454                             <report>ci-management</report>
455                             <report>mailing-lists</report>
456                             <report>modules</report>
457 -->
458                         </reports>
459                     </reportSet>
460                 </reportSets>
461             </plugin>
462
463             <plugin>
464                 <groupId>org.apache.maven.plugins</groupId>
465                 <artifactId>maven-javadoc-plugin</artifactId>
466                 <version>3.1.0</version>
467                 <configuration>
468                     <author>false</author>
469                     <notimestamp>true</notimestamp>
470                     <quiet>true</quiet>
471                     <show>protected</show>
472                     <header>${project.name} ${project.version} API</header>
473                     <version>true</version>
474                     <locale>${javadoc.locale}</locale>
475                     <!-- for JDK11 javadoc -->
476                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
477                 </configuration>
478                 <reportSets>
479                     <reportSet>
480                         <reports>
481                             <report>javadoc</report>
482                         </reports>
483                     </reportSet>
484                 </reportSets>
485             </plugin>
486
487             <plugin>
488                 <groupId>org.apache.maven.plugins</groupId>
489                 <artifactId>maven-jxr-plugin</artifactId>
490                 <version>3.0.0</version>
491             </plugin>
492
493             <plugin>
494                 <groupId>org.apache.maven.plugins</groupId>
495                 <artifactId>maven-surefire-report-plugin</artifactId>
496                 <version>${surefire-plugin.version}</version>
497             </plugin>
498
499             <plugin>
500                 <groupId>org.codehaus.mojo</groupId>
501                 <artifactId>cobertura-maven-plugin</artifactId>
502                 <version>2.7</version>
503                 <configuration>
504                     <encoding>${project.build.sourceEncoding}</encoding>
505                     <formats>
506                         <format>html</format>
507                         <format>xml</format> <!-- for Jenkins -->
508                     </formats>
509                 </configuration>
510             </plugin>
511
512             <plugin>
513                 <groupId>org.apache.maven.plugins</groupId>
514                 <artifactId>maven-checkstyle-plugin</artifactId>
515                 <version>2.11</version>
516                 <configuration>
517                     <skip>false</skip>
518                     <!-- config from property value -->
519                 </configuration>
520                 <reportSets>
521                     <reportSet>
522                         <reports>
523                             <report>checkstyle</report>
524                         </reports>
525                     </reportSet>
526                 </reportSets>
527             </plugin>
528
529             <plugin>
530                 <groupId>org.apache.maven.plugins</groupId>
531                 <artifactId>maven-pmd-plugin</artifactId>
532                 <version>3.0.1</version>
533                 <configuration>
534                     <skip>false</skip>
535                     <!--targetJdk>${maven.compiler.target}</targetJdk-->
536                     <rulesets>
537                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
538                     </rulesets>
539                 </configuration>
540                 <reportSets>
541                     <reportSet>
542                         <reports>
543                             <report>pmd</report>
544                             <report>cpd</report>
545                         </reports>
546                     </reportSet>
547                 </reportSets>
548             </plugin>
549
550             <plugin>
551                 <groupId>com.github.spotbugs</groupId>
552                 <artifactId>spotbugs-maven-plugin</artifactId>
553                 <version>${spotbugs-plugin.version}</version>
554             </plugin>
555
556         </plugins>
557
558     </reporting>
559
560     <profiles/>
561
562 </project>
563
564 <!-- EOF -->