OSDN Git Service

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