OSDN Git Service

findbugs to spotbugs.
[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         <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.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         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
110         <spotbugs.effort>Max</spotbugs.effort>
111         <spotbugs.threshold>Low</spotbugs.threshold>
112         <!-- for Jenkins -->
113         <spotbugs.xmlOutput>true</spotbugs.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             <plugin>
397                 <groupId>com.github.spotbugs</groupId>
398                 <artifactId>spotbugs-maven-plugin</artifactId>
399                 <version>${spotbugs-plugin.version}</version>
400             </plugin>
401
402         </plugins>
403
404         <resources>
405
406             <resource>
407                 <directory>src/main/resources</directory>
408                 <filtering>true</filtering>
409                 <includes>
410                     <include>**/version.properties</include>
411                 </includes>
412             </resource>
413
414             <resource>
415                 <directory>src/main/resources</directory>
416                 <includes>
417                     <include>**/*.txt</include>
418
419                     <include>**/*.properties</include>
420
421                     <include>**/*.xml</include>
422                     <include>**/*.xsd</include>
423                     <include>**/*.dtd</include>
424
425                     <include>**/*.html</include>
426                     <include>**/*.htm</include>
427                     <include>**/*.css</include>
428
429                     <include>**/*.png</include>
430                     <include>**/*.gif</include>
431                     <include>**/*.jpeg</include>
432                     <include>**/*.jpg</include>
433                 </includes>
434                 <excludes>
435                     <exclude>**/version.properties</exclude>
436
437                     <exclude>**/.DS_Store</exclude>
438                     <exclude>**/__MACOSX</exclude>
439                     <exclude>**/Thumbs.db</exclude>
440                     <exclude>**/thumbs.db</exclude>
441                     <exclude>**/Desktop.ini</exclude>
442                     <exclude>**/desktop.ini</exclude>
443                     <exclude>**/core</exclude>
444                 </excludes>
445             </resource>
446
447         </resources>
448
449     </build>
450
451     <reporting>
452
453         <plugins>
454
455             <plugin>
456                 <groupId>org.apache.maven.plugins</groupId>
457                 <artifactId>maven-project-info-reports-plugin</artifactId>
458                 <version>3.0.0</version>
459                 <configuration>
460                     <linkOnly>true</linkOnly>
461                     <offline>true</offline>
462                 </configuration>
463                 <reportSets>
464                     <reportSet>
465                         <reports>
466                             <report>index</report>
467                             <report>summary</report>
468                             <report>licenses</report>
469                             <report>dependency-info</report>
470                             <report>dependencies</report>
471                             <report>dependency-convergence</report>
472                             <report>plugins</report>
473                             <report>plugin-management</report>
474                             <report>team</report>
475                             <report>issue-management</report>
476                             <report>scm</report>
477 <!--
478                             <report>dependency-management</report>
479                             <report>distribution-management</report>
480                             <report>ci-management</report>
481                             <report>mailing-lists</report>
482                             <report>modules</report>
483 -->
484                         </reports>
485                     </reportSet>
486                 </reportSets>
487             </plugin>
488
489             <plugin>
490                 <groupId>org.apache.maven.plugins</groupId>
491                 <artifactId>maven-javadoc-plugin</artifactId>
492                 <version>3.1.0</version>
493                 <configuration>
494                     <author>false</author>
495                     <notimestamp>true</notimestamp>
496                     <quiet>true</quiet>
497                     <show>protected</show>
498                     <header>${project.name} ${project.version} API</header>
499                     <version>true</version>
500                     <locale>${javadoc.locale}</locale>
501                     <!-- for JDK11 javadoc -->
502                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
503                 </configuration>
504                 <reportSets>
505                     <reportSet>
506                         <reports>
507                             <report>javadoc</report>
508                         </reports>
509                     </reportSet>
510                 </reportSets>
511             </plugin>
512
513             <plugin>
514                 <groupId>org.apache.maven.plugins</groupId>
515                 <artifactId>maven-jxr-plugin</artifactId>
516                 <version>3.0.0</version>
517             </plugin>
518
519             <plugin>
520                 <groupId>org.apache.maven.plugins</groupId>
521                 <artifactId>maven-surefire-report-plugin</artifactId>
522                 <version>${surefire-plugin.version}</version>
523             </plugin>
524
525             <plugin>
526                 <groupId>org.jacoco</groupId>
527                 <artifactId>jacoco-maven-plugin</artifactId>
528                 <version>${jacoco-plugin.version}</version>
529                 <reportSets>
530                     <reportSet>
531                         <reports>
532                             <report>report</report>
533                         </reports>
534                     </reportSet>
535                 </reportSets>
536             </plugin>
537
538             <plugin>
539                 <groupId>org.apache.maven.plugins</groupId>
540                 <artifactId>maven-checkstyle-plugin</artifactId>
541                 <version>${checkstyle-plugin.version}</version>
542                 <reportSets>
543                     <reportSet>
544                         <reports>
545                             <report>checkstyle</report>
546                         </reports>
547                     </reportSet>
548                 </reportSets>
549             </plugin>
550
551             <plugin>
552                 <groupId>org.apache.maven.plugins</groupId>
553                 <artifactId>maven-pmd-plugin</artifactId>
554                 <version>${pmd-plugin.version}</version>
555                 <configuration>
556                     <rulesets>
557                         <ruleset>${project.basedir}/pmdrules.xml</ruleset>
558                     </rulesets>
559                 </configuration>
560                 <reportSets>
561                     <reportSet>
562                         <reports>
563                             <report>pmd</report>
564                             <report>cpd</report>
565                         </reports>
566                     </reportSet>
567                 </reportSets>
568             </plugin>
569
570             <plugin>
571                 <groupId>com.github.spotbugs</groupId>
572                 <artifactId>spotbugs-maven-plugin</artifactId>
573                 <version>${spotbugs-plugin.version}</version>
574             </plugin>
575
576         </plugins>
577
578     </reporting>
579
580     <profiles/>
581
582 </project>
583
584 <!-- EOF -->