OSDN Git Service

update maven plugins.
[jindolf/JinArchiver.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.jindolf</groupId>
17     <artifactId>jinarchiver</artifactId>
18
19     <version>1.503.107-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>JinArchiver</name>
23
24     <description><!--
25 -->JinArchiverは、人狼BBSの過去ログを独自のXML形式でローカルディスクに<!--
26 -->保存するためのツールです。<!--
27  --></description>
28
29     <url>https://ja.osdn.net/projects/jindolf/devel/</url>
30     <inceptionYear>2009</inceptionYear>
31
32     <organization>
33         <name>Jindolf Partners</name>
34         <url>https://ja.osdn.net/projects/jindolf/devel/</url>
35     </organization>
36
37     <licenses>
38         <license>
39             <name>The MIT License</name>
40             <url>https://opensource.org/licenses/MIT</url>
41             <distribution>manual</distribution>
42         </license>
43     </licenses>
44
45     <developers>
46         <developer>
47             <id>olyutorskii</id>
48             <url>https://sites.google.com/site/olyutorskiipit/</url>
49             <organization>Jindolf Partners</organization>
50             <organizationUrl>https://ja.osdn.net/projects/jindolf/devel/</organizationUrl>
51             <roles>
52                 <role>Project Founder</role>
53                 <role>Java Developer</role>
54             </roles>
55         </developer>
56     </developers>
57
58     <contributors/>
59     <mailingLists/>
60
61     <!-- prerequisites/ -->
62
63     <modules/>
64
65     <scm>
66         <connection>scm:git:git://git.osdn.net/gitroot/jindolf/JinArchiver.git</connection>
67         <developerConnection>scm:git:https://scm.osdn.net/gitroot/jindolf/JinArchiver.git</developerConnection>
68         <url>https://osdn.net/projects/jindolf/scm/git/JinArchiver</url>
69     </scm>
70
71     <issueManagement>
72         <system>OSDN.net</system>
73         <url>https://ja.osdn.net/projects/jindolf/ticket/</url>
74     </issueManagement>
75
76     <ciManagement/>
77     <distributionManagement/>
78
79     <properties>
80         <maven.compiler.source>1.8</maven.compiler.source>
81         <maven.compiler.target>1.8</maven.compiler.target>
82         <!--maven.compiler.release>8</maven.compiler.release-->
83
84         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
85         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
86
87         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
88         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
89         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
90
91         <!-- DO NOT USE ${locale} with site-plugin -->
92         <site.locales>en</site.locales>
93         <javadoc.locale>en</javadoc.locale>
94         <spotbugs.jvmArgs>-Duser.language=en</spotbugs.jvmArgs>
95
96         <checkstyle.config.location>config/checkstyle/checkstyle.xml</checkstyle.config.location>
97         <checkstyle.suppressions.location>config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
98         <checkstyle.enable.rss>false</checkstyle.enable.rss>
99
100         <spotbugs.effort>Max</spotbugs.effort>
101         <spotbugs.threshold>Low</spotbugs.threshold>
102         <!-- for Jenkins -->
103         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
104
105         <project.mainentry>jp.sourceforge.jindolf.archiver.JinArchiver</project.mainentry>
106
107     </properties>
108
109     <dependencyManagement/>
110
111     <dependencies>
112
113         <dependency>
114             <groupId>junit</groupId>
115             <artifactId>junit</artifactId>
116             <version>4.13</version>
117             <scope>test</scope>
118         </dependency>
119
120         <dependency>
121             <groupId>jp.osdn.jindolf</groupId>
122             <artifactId>jinparser</artifactId>
123             <version>2.102.2</version>
124             <scope>compile</scope>
125         </dependency>
126
127     </dependencies>
128
129     <repositories/>
130     <pluginRepositories/>
131
132     <build>
133
134         <pluginManagement>
135
136             <plugins>
137
138                 <plugin>
139                     <groupId>org.apache.maven.plugins</groupId>
140                     <artifactId>maven-clean-plugin</artifactId>
141                     <version>3.1.0</version>
142                 </plugin>
143
144                 <plugin>
145                     <groupId>org.apache.maven.plugins</groupId>
146                     <artifactId>maven-enforcer-plugin</artifactId>
147                     <version>3.0.0-M3</version>
148                 </plugin>
149
150                 <plugin>
151                     <groupId>org.apache.maven.plugins</groupId>
152                     <artifactId>maven-resources-plugin</artifactId>
153                     <version>3.1.0</version>
154                 </plugin>
155
156                 <plugin>
157                     <groupId>org.apache.maven.plugins</groupId>
158                     <artifactId>maven-compiler-plugin</artifactId>
159                     <version>3.8.1</version>
160                 </plugin>
161
162                 <plugin>
163                     <groupId>org.apache.maven.plugins</groupId>
164                     <artifactId>maven-surefire-plugin</artifactId>
165                     <version>3.0.0-M4</version>
166                 </plugin>
167
168                 <plugin>
169                     <groupId>org.apache.maven.plugins</groupId>
170                     <artifactId>maven-surefire-report-plugin</artifactId>
171                     <version>3.0.0-M4</version>
172                 </plugin>
173
174                 <plugin>
175                     <groupId>org.jacoco</groupId>
176                     <artifactId>jacoco-maven-plugin</artifactId>
177                     <version>0.8.5</version>
178                 </plugin>
179
180                 <plugin>
181                     <groupId>org.apache.maven.plugins</groupId>
182                     <artifactId>maven-jar-plugin</artifactId>
183                     <version>3.2.0</version>
184                 </plugin>
185
186                 <plugin>
187                     <groupId>org.apache.maven.plugins</groupId>
188                     <artifactId>maven-shade-plugin</artifactId>
189                     <version>3.2.1</version>
190                 </plugin>
191
192                 <plugin>
193                     <groupId>org.apache.maven.plugins</groupId>
194                     <artifactId>maven-source-plugin</artifactId>
195                     <version>3.2.1</version>
196                 </plugin>
197
198                 <plugin>
199                     <groupId>org.apache.maven.plugins</groupId>
200                     <artifactId>maven-install-plugin</artifactId>
201                     <version>3.0.0-M1</version>
202                 </plugin>
203
204                 <plugin>
205                     <groupId>org.apache.maven.plugins</groupId>
206                     <artifactId>maven-deploy-plugin</artifactId>
207                     <version>3.0.0-M1</version>
208                 </plugin>
209
210                 <plugin>
211                     <groupId>org.apache.maven.plugins</groupId>
212                     <artifactId>maven-site-plugin</artifactId>
213                     <version>3.8.2</version>
214                 </plugin>
215
216                 <plugin>
217                     <groupId>org.apache.maven.plugins</groupId>
218                     <artifactId>maven-assembly-plugin</artifactId>
219                     <version>3.2.0</version>
220                 </plugin>
221
222                 <plugin>
223                     <groupId>org.apache.maven.plugins</groupId>
224                     <artifactId>maven-project-info-reports-plugin</artifactId>
225                     <version>3.0.0</version>
226                 </plugin>
227
228                 <plugin>
229                     <groupId>org.apache.maven.plugins</groupId>
230                     <artifactId>maven-javadoc-plugin</artifactId>
231                     <version>3.1.1</version>
232                 </plugin>
233
234                 <plugin>
235                     <groupId>org.apache.maven.plugins</groupId>
236                     <artifactId>maven-jxr-plugin</artifactId>
237                     <version>3.0.0</version>
238                 </plugin>
239
240                 <plugin>
241                     <groupId>org.apache.maven.plugins</groupId>
242                     <artifactId>maven-checkstyle-plugin</artifactId>
243                     <version>3.0.0</version>
244                     <dependencies>
245                         <dependency>
246                             <groupId>com.puppycrawl.tools</groupId>
247                             <artifactId>checkstyle</artifactId>
248                             <version>8.20</version>
249                         </dependency>
250                     </dependencies>
251                 </plugin>
252
253                 <plugin>
254                     <groupId>org.apache.maven.plugins</groupId>
255                     <artifactId>maven-pmd-plugin</artifactId>
256                     <version>3.12.0</version>
257                 </plugin>
258
259                 <plugin>
260                     <groupId>com.github.spotbugs</groupId>
261                     <artifactId>spotbugs-maven-plugin</artifactId>
262                     <version>3.1.12.2</version>
263                 </plugin>
264
265             </plugins>
266
267         </pluginManagement>
268
269         <plugins>
270
271
272             <!-- clean lifecycle -->
273
274             <plugin>
275                 <groupId>org.apache.maven.plugins</groupId>
276                 <artifactId>maven-clean-plugin</artifactId>
277                 <configuration>
278                     <filesets>
279                         <fileset>
280                             <directory>${project.basedir}</directory>
281                             <includes>
282                                 <include>**/*~</include>
283                                 <include>**/*.swp</include>
284                                 <include>**/*.DS_Store</include>
285                                 <include>**/._*</include>
286                                 <include>**/__MACOSX</include>
287                                 <include>**/Thumbs.db</include>
288                                 <include>**/desktop.ini</include>
289                                 <include>**/core</include>
290                                 <include>**/hs_err_pid*</include>
291                             </includes>
292                         </fileset>
293                     </filesets>
294                 </configuration>
295             </plugin>
296
297
298             <!-- default lifecycle -->
299
300             <plugin>
301                 <groupId>org.apache.maven.plugins</groupId>
302                 <artifactId>maven-enforcer-plugin</artifactId>
303                 <executions>
304                     <execution>
305                         <id>enforce-versions</id>
306                         <goals>
307                             <goal>enforce</goal>
308                         </goals>
309                         <configuration>
310                             <rules>
311                                 <requireMavenVersion>
312                                     <version>[3.3.9,)</version>
313                                 </requireMavenVersion>
314                                 <requireJavaVersion>
315                                     <version>[1.8,)</version>
316                                 </requireJavaVersion>
317                             </rules>
318                         </configuration>
319                     </execution>
320                 </executions>
321             </plugin>
322
323             <plugin>
324                 <groupId>org.apache.maven.plugins</groupId>
325                 <artifactId>maven-compiler-plugin</artifactId>
326                 <configuration>
327                     <source>1.8</source>  <!-- for NetBeans IDE -->
328                     <target>1.8</target>
329                     <compilerArguments>
330                         <Xlint/>
331                     </compilerArguments>
332                     <showWarnings>true</showWarnings>
333                     <showDeprecation>true</showDeprecation>
334                 </configuration>
335             </plugin>
336
337             <plugin>
338                 <groupId>org.apache.maven.plugins</groupId>
339                 <artifactId>maven-surefire-plugin</artifactId>
340                 <configuration>
341                     <enableAssertions>true</enableAssertions>
342                 </configuration>
343             </plugin>
344
345             <plugin>
346                 <groupId>org.jacoco</groupId>
347                 <artifactId>jacoco-maven-plugin</artifactId>
348                 <executions>
349                     <execution>
350                         <id>default-prepare-agent</id>
351                         <goals>
352                             <goal>prepare-agent</goal>
353                         </goals>
354                     </execution>
355                 </executions>
356             </plugin>
357
358             <plugin>
359                 <groupId>org.apache.maven.plugins</groupId>
360                 <artifactId>maven-jar-plugin</artifactId>
361                 <configuration>
362                     <archive>
363                         <manifest>
364                             <mainClass>${project.mainentry}</mainClass>
365                             <addDefaultImplementationEntries>
366                                 false
367                             </addDefaultImplementationEntries>
368                         </manifest>
369                         <manifestEntries>
370                             <Built-By>${project.organization.name}</Built-By>
371                         </manifestEntries>
372                     </archive>
373                 </configuration>
374             </plugin>
375
376             <plugin>
377                 <groupId>org.apache.maven.plugins</groupId>
378                 <artifactId>maven-shade-plugin</artifactId>
379                 <executions>
380                     <execution>
381                         <phase>package</phase>
382                         <goals>
383                             <goal>shade</goal>
384                         </goals>
385                         <configuration>
386                             <createDependencyReducedPom>false</createDependencyReducedPom>
387                         </configuration>
388                     </execution>
389                 </executions>
390             </plugin>
391
392             <!-- site lifecycle -->
393
394             <plugin>
395                 <groupId>org.apache.maven.plugins</groupId>
396                 <artifactId>maven-site-plugin</artifactId>
397                 <configuration>
398                     <locales>${site.locales}</locales>
399                 </configuration>
400             </plugin>
401
402
403             <!-- goals without lifecycle -->
404
405             <plugin>
406                 <groupId>org.apache.maven.plugins</groupId>
407                 <artifactId>maven-javadoc-plugin</artifactId>
408                 <configuration>
409                     <locale>${javadoc.locale}</locale>
410                     <!-- for JDK11 javadoc -->
411                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
412                     <source>${maven.compiler.source}</source>
413                     <notimestamp>true</notimestamp>
414                     <header>${project.name} ${project.version} API</header>
415                     <nohelp>true</nohelp>
416                     <author>false</author>
417                     <quiet>true</quiet>
418                     <doclint>all</doclint>
419                     <show>protected</show>
420                 </configuration>
421             </plugin>
422
423             <plugin>
424                 <groupId>org.apache.maven.plugins</groupId>
425                 <artifactId>maven-assembly-plugin</artifactId>
426                 <configuration>
427                     <descriptors>
428                         <descriptor>src/assembly/src.xml</descriptor>
429                     </descriptors>
430                 </configuration>
431             </plugin>
432
433             <plugin>
434                 <groupId>org.apache.maven.plugins</groupId>
435                 <artifactId>maven-pmd-plugin</artifactId>
436                 <configuration>
437                     <rulesets>
438                         <ruleset>config/pmd/pmdrules.xml</ruleset>
439                     </rulesets>
440                 </configuration>
441             </plugin>
442
443         </plugins>
444
445         <resources>
446
447             <resource>
448                 <directory>src/main/resources</directory>
449                 <filtering>true</filtering>
450                 <includes>
451                     <include>**/version.properties</include>
452                 </includes>
453             </resource>
454
455             <resource>
456                 <directory>src/main/resources</directory>
457                 <includes>
458                     <include>**/*.txt</include>
459
460                     <include>**/*.properties</include>
461
462                     <include>**/*.xml</include>
463                     <include>**/*.xsd</include>
464                     <include>**/*.dtd</include>
465
466                     <include>**/*.html</include>
467                     <include>**/*.htm</include>
468                     <include>**/*.css</include>
469
470                     <include>**/*.png</include>
471                     <include>**/*.gif</include>
472                     <include>**/*.jpeg</include>
473                     <include>**/*.jpg</include>
474                 </includes>
475                 <excludes>
476                     <exclude>**/version.properties</exclude>
477
478                     <exclude>**/.DS_Store</exclude>
479                     <exclude>**/__MACOSX</exclude>
480                     <exclude>**/Thumbs.db</exclude>
481                     <exclude>**/thumbs.db</exclude>
482                     <exclude>**/Desktop.ini</exclude>
483                     <exclude>**/desktop.ini</exclude>
484                     <exclude>**/core</exclude>
485                 </excludes>
486             </resource>
487
488         </resources>
489
490     </build>
491
492     <reporting>
493
494         <plugins>
495
496             <plugin>
497                 <groupId>org.apache.maven.plugins</groupId>
498                 <artifactId>maven-project-info-reports-plugin</artifactId>
499                 <configuration>
500                     <linkOnly>true</linkOnly>
501                     <offline>true</offline>
502                 </configuration>
503                 <reportSets>
504                     <reportSet>
505                         <reports>
506                             <report>index</report>
507                             <report>summary</report>
508                             <report>licenses</report>
509                             <report>dependency-info</report>
510                             <report>dependencies</report>
511                             <report>dependency-convergence</report>
512                             <report>plugins</report>
513                             <report>team</report>
514                             <report>issue-management</report>
515                             <report>scm</report>
516 <!--
517                             <report>dependency-management</report>
518                             <report>distribution-management</report>
519                             <report>ci-management</report>
520                             <report>mailing-lists</report>
521                             <report>modules</report>
522                             <report>plugin-management</report>
523 -->
524                         </reports>
525                     </reportSet>
526                 </reportSets>
527             </plugin>
528
529             <plugin>
530                 <groupId>org.apache.maven.plugins</groupId>
531                 <artifactId>maven-javadoc-plugin</artifactId>
532                 <configuration>
533                     <locale>${javadoc.locale}</locale>
534                     <!-- for JDK11 javadoc -->
535                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
536                     <source>${maven.compiler.source}</source>
537                     <notimestamp>true</notimestamp>
538                     <header>${project.name} ${project.version} API</header>
539                     <nohelp>true</nohelp>
540                     <author>false</author>
541                     <quiet>true</quiet>
542                     <doclint>all</doclint>
543                     <show>protected</show>
544                 </configuration>
545                 <reportSets>
546                     <reportSet>
547                         <reports>
548                             <report>javadoc</report>
549                         </reports>
550                     </reportSet>
551                 </reportSets>
552             </plugin>
553
554             <plugin>
555                 <groupId>org.apache.maven.plugins</groupId>
556                 <artifactId>maven-jxr-plugin</artifactId>
557             </plugin>
558
559             <plugin>
560                 <groupId>org.apache.maven.plugins</groupId>
561                 <artifactId>maven-surefire-report-plugin</artifactId>
562             </plugin>
563
564             <plugin>
565                 <groupId>org.jacoco</groupId>
566                 <artifactId>jacoco-maven-plugin</artifactId>
567                 <reportSets>
568                     <reportSet>
569                         <reports>
570                             <report>report</report>
571                         </reports>
572                     </reportSet>
573                 </reportSets>
574             </plugin>
575
576             <plugin>
577                 <groupId>org.apache.maven.plugins</groupId>
578                 <artifactId>maven-checkstyle-plugin</artifactId>
579                 <reportSets>
580                     <reportSet>
581                         <reports>
582                             <report>checkstyle</report>
583                         </reports>
584                     </reportSet>
585                 </reportSets>
586             </plugin>
587
588             <plugin>
589                 <groupId>org.apache.maven.plugins</groupId>
590                 <artifactId>maven-pmd-plugin</artifactId>
591                 <configuration>
592                     <rulesets>
593                         <ruleset>config/pmd/pmdrules.xml</ruleset>
594                     </rulesets>
595                 </configuration>
596                 <reportSets>
597                     <reportSet>
598                         <reports>
599                             <report>pmd</report>
600                             <report>cpd</report>
601                         </reports>
602                     </reportSet>
603                 </reportSets>
604             </plugin>
605
606             <plugin>
607                 <groupId>com.github.spotbugs</groupId>
608                 <artifactId>spotbugs-maven-plugin</artifactId>
609             </plugin>
610
611         </plugins>
612
613     </reporting>
614
615     <profiles>
616
617         <profile>
618             <id>release-profile</id>
619
620             <activation>
621                 <property>
622                     <name>performRelease</name>
623                     <value>true</value>
624                 </property>
625             </activation>
626
627             <build>
628                 <plugins>
629
630                     <plugin>
631                         <inherited>true</inherited>
632                         <groupId>org.apache.maven.plugins</groupId>
633                         <artifactId>maven-source-plugin</artifactId>
634                         <configuration>
635                             <includePom>true</includePom>
636                             <archive>
637                                 <manifestEntries>
638                                     <Built-By>${project.organization.name}</Built-By>
639                                 </manifestEntries>
640                             </archive>
641                         </configuration>
642                         <executions>
643                             <execution>
644                                 <id>attach-sources</id>
645                                 <goals>
646                                     <goal>jar-no-fork</goal>
647                                 </goals>
648                             </execution>
649                         </executions>
650                     </plugin>
651
652                     <plugin>
653                         <inherited>true</inherited>
654                         <groupId>org.apache.maven.plugins</groupId>
655                         <artifactId>maven-javadoc-plugin</artifactId>
656                         <configuration>
657                             <show>protected</show>
658                             <archive>
659                                 <manifestEntries>
660                                     <Built-By>${project.organization.name}</Built-By>
661                                 </manifestEntries>
662                             </archive>
663                         </configuration>
664                         <executions>
665                             <execution>
666                                 <id>attach-javadocs</id>
667                                 <goals>
668                                     <goal>jar</goal>
669                                 </goals>
670                             </execution>
671                         </executions>
672                     </plugin>
673
674                 </plugins>
675             </build>
676         </profile>
677
678     </profiles>
679
680 </project>
681
682 <!-- EOF -->