OSDN Git Service

69f2b6b2b8deede293c153549bd1c44bf8df62db
[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.504.7-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         <!-- MJAVADOC-700 -->
92         <sourcepath>${basedir}/src/main/java</sourcepath>
93
94         <!-- DO NOT USE ${locale} with site-plugin -->
95         <site.locales>en</site.locales>
96         <javadoc.locale>en</javadoc.locale>
97         <spotbugs.jvmArgs>-Duser.language=en</spotbugs.jvmArgs>
98
99         <checkstyle.config.location>config/checkstyle/checkstyle.xml</checkstyle.config.location>
100         <checkstyle.suppressions.location>config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
101         <checkstyle.enable.rss>false</checkstyle.enable.rss>
102
103         <spotbugs.effort>Max</spotbugs.effort>
104         <spotbugs.threshold>Low</spotbugs.threshold>
105         <!-- for Jenkins -->
106         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
107
108         <project.mainentry>jp.osdn.jindolf.ar.JinArchiver</project.mainentry>
109
110     </properties>
111
112     <dependencyManagement/>
113
114     <dependencies>
115
116         <dependency>
117             <groupId>junit</groupId>
118             <artifactId>junit</artifactId>
119             <version>4.13.2</version>
120             <scope>test</scope>
121         </dependency>
122
123         <dependency>
124             <groupId>jp.osdn.jindolf</groupId>
125             <artifactId>jinparser</artifactId>
126             <version>2.102.6</version>
127             <scope>compile</scope>
128         </dependency>
129
130     </dependencies>
131
132     <repositories/>
133     <pluginRepositories/>
134
135     <build>
136
137         <pluginManagement>
138
139             <plugins>
140
141                 <plugin>
142                     <groupId>org.apache.maven.plugins</groupId>
143                     <artifactId>maven-clean-plugin</artifactId>
144                     <version>3.2.0</version>
145                 </plugin>
146
147                 <plugin>
148                     <groupId>org.apache.maven.plugins</groupId>
149                     <artifactId>maven-enforcer-plugin</artifactId>
150                     <version>3.1.0</version>
151                 </plugin>
152
153                 <plugin>
154                     <groupId>org.apache.maven.plugins</groupId>
155                     <artifactId>maven-resources-plugin</artifactId>
156                     <version>3.3.0</version>
157                 </plugin>
158
159                 <plugin>
160                     <groupId>org.apache.maven.plugins</groupId>
161                     <artifactId>maven-compiler-plugin</artifactId>
162                     <version>3.10.1</version>
163                 </plugin>
164
165                 <plugin>
166                     <groupId>org.apache.maven.plugins</groupId>
167                     <artifactId>maven-surefire-plugin</artifactId>
168                     <version>3.0.0-M7</version>
169                 </plugin>
170
171                 <plugin>
172                     <groupId>org.apache.maven.plugins</groupId>
173                     <artifactId>maven-surefire-report-plugin</artifactId>
174                     <version>3.0.0-M7</version>
175                 </plugin>
176
177                 <plugin>
178                     <groupId>org.jacoco</groupId>
179                     <artifactId>jacoco-maven-plugin</artifactId>
180                     <version>0.8.8</version>
181                 </plugin>
182
183                 <plugin>
184                     <groupId>org.apache.maven.plugins</groupId>
185                     <artifactId>maven-jar-plugin</artifactId>
186                     <version>3.3.0</version>
187                 </plugin>
188
189                 <plugin>
190                     <groupId>org.apache.maven.plugins</groupId>
191                     <artifactId>maven-shade-plugin</artifactId>
192                     <version>3.2.4</version>
193                 </plugin>
194
195                 <plugin>
196                     <groupId>org.apache.maven.plugins</groupId>
197                     <artifactId>maven-source-plugin</artifactId>
198                     <version>3.2.1</version>
199                 </plugin>
200
201                 <plugin>
202                     <groupId>org.apache.maven.plugins</groupId>
203                     <artifactId>maven-install-plugin</artifactId>
204                     <version>3.0.1</version>
205                 </plugin>
206
207                 <plugin>
208                     <groupId>org.apache.maven.plugins</groupId>
209                     <artifactId>maven-deploy-plugin</artifactId>
210                     <version>3.0.0</version>
211                 </plugin>
212
213                 <plugin>
214                     <groupId>org.apache.maven.plugins</groupId>
215                     <artifactId>maven-site-plugin</artifactId>
216                     <version>3.12.1</version>
217                 </plugin>
218
219                 <plugin>
220                     <groupId>org.apache.maven.plugins</groupId>
221                     <artifactId>maven-assembly-plugin</artifactId>
222                     <version>3.4.2</version>
223                 </plugin>
224
225                 <plugin>
226                     <groupId>org.apache.maven.plugins</groupId>
227                     <artifactId>maven-project-info-reports-plugin</artifactId>
228                     <version>3.4.1</version>
229                 </plugin>
230
231                 <plugin>
232                     <groupId>org.apache.maven.plugins</groupId>
233                     <artifactId>maven-javadoc-plugin</artifactId>
234                     <version>3.4.1</version>
235                 </plugin>
236
237                 <plugin>
238                     <groupId>org.apache.maven.plugins</groupId>
239                     <artifactId>maven-jxr-plugin</artifactId>
240                     <version>3.3.0</version>
241                 </plugin>
242
243                 <plugin>
244                     <groupId>org.apache.maven.plugins</groupId>
245                     <artifactId>maven-checkstyle-plugin</artifactId>
246                     <version>3.1.1</version>
247                     <dependencies>
248                         <dependency>
249                             <groupId>com.puppycrawl.tools</groupId>
250                             <artifactId>checkstyle</artifactId>
251                             <version>8.36.2</version>
252                         </dependency>
253                     </dependencies>
254                 </plugin>
255
256                 <plugin>
257                     <groupId>org.apache.maven.plugins</groupId>
258                     <artifactId>maven-pmd-plugin</artifactId>
259                     <version>3.13.0</version>
260                 </plugin>
261
262                 <plugin>
263                     <groupId>com.github.spotbugs</groupId>
264                     <artifactId>spotbugs-maven-plugin</artifactId>
265                     <version>4.7.2.1</version>
266                     <dependencies>
267                         <dependency>
268                             <groupId>com.github.spotbugs</groupId>
269                             <artifactId>spotbugs</artifactId>
270                             <version>4.7.2</version>
271                         </dependency>
272                     </dependencies>
273                 </plugin>
274
275             </plugins>
276
277         </pluginManagement>
278
279         <plugins>
280
281
282             <!-- clean lifecycle -->
283
284             <plugin>
285                 <groupId>org.apache.maven.plugins</groupId>
286                 <artifactId>maven-clean-plugin</artifactId>
287                 <configuration>
288                     <filesets>
289                         <fileset>
290                             <directory>${project.basedir}</directory>
291                             <includes>
292                                 <include>**/*~</include>
293                                 <include>**/*.swp</include>
294                                 <include>**/*.DS_Store</include>
295                                 <include>**/._*</include>
296                                 <include>**/__MACOSX</include>
297                                 <include>**/Thumbs.db</include>
298                                 <include>**/desktop.ini</include>
299                                 <include>**/core</include>
300                                 <include>**/hs_err_pid*</include>
301                             </includes>
302                         </fileset>
303                     </filesets>
304                 </configuration>
305             </plugin>
306
307
308             <!-- default lifecycle -->
309
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-enforcer-plugin</artifactId>
313                 <executions>
314                     <execution>
315                         <id>enforce-versions</id>
316                         <goals>
317                             <goal>enforce</goal>
318                         </goals>
319                         <configuration>
320                             <rules>
321                                 <requireMavenVersion>
322                                     <version>[3.3.9,)</version>
323                                 </requireMavenVersion>
324                                 <requireJavaVersion>
325                                     <version>[1.8,)</version>
326                                 </requireJavaVersion>
327                             </rules>
328                         </configuration>
329                     </execution>
330                 </executions>
331             </plugin>
332
333             <plugin>
334                 <groupId>org.apache.maven.plugins</groupId>
335                 <artifactId>maven-compiler-plugin</artifactId>
336                 <configuration>
337                     <source>1.8</source>  <!-- for NetBeans IDE -->
338                     <target>1.8</target>
339                     <compilerArguments>
340                         <Xlint/>
341                     </compilerArguments>
342                     <showWarnings>true</showWarnings>
343                     <showDeprecation>true</showDeprecation>
344                 </configuration>
345             </plugin>
346
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-surefire-plugin</artifactId>
350                 <configuration>
351                     <enableAssertions>true</enableAssertions>
352                 </configuration>
353             </plugin>
354
355             <plugin>
356                 <groupId>org.jacoco</groupId>
357                 <artifactId>jacoco-maven-plugin</artifactId>
358                 <executions>
359                     <execution>
360                         <id>default-prepare-agent</id>
361                         <goals>
362                             <goal>prepare-agent</goal>
363                         </goals>
364                     </execution>
365                 </executions>
366             </plugin>
367
368             <plugin>
369                 <groupId>org.apache.maven.plugins</groupId>
370                 <artifactId>maven-jar-plugin</artifactId>
371                 <configuration>
372                     <archive>
373                         <manifest>
374                             <mainClass>${project.mainentry}</mainClass>
375                             <addDefaultImplementationEntries>
376                                 false
377                             </addDefaultImplementationEntries>
378                         </manifest>
379                         <manifestEntries>
380                             <Built-By>${project.organization.name}</Built-By>
381                         </manifestEntries>
382                     </archive>
383                 </configuration>
384             </plugin>
385
386             <plugin>
387                 <groupId>org.apache.maven.plugins</groupId>
388                 <artifactId>maven-shade-plugin</artifactId>
389                 <executions>
390                     <execution>
391                         <phase>package</phase>
392                         <goals>
393                             <goal>shade</goal>
394                         </goals>
395                         <configuration>
396                             <createDependencyReducedPom>false</createDependencyReducedPom>
397                         </configuration>
398                     </execution>
399                 </executions>
400             </plugin>
401
402             <!-- site lifecycle -->
403
404             <plugin>
405                 <groupId>org.apache.maven.plugins</groupId>
406                 <artifactId>maven-site-plugin</artifactId>
407                 <configuration>
408                     <locales>${site.locales}</locales>
409                 </configuration>
410             </plugin>
411
412
413             <!-- goals without lifecycle -->
414
415             <plugin>
416                 <groupId>org.apache.maven.plugins</groupId>
417                 <artifactId>maven-javadoc-plugin</artifactId>
418                 <configuration>
419                     <locale>${javadoc.locale}</locale>
420                     <!-- for JDK11 javadoc -->
421                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
422                     <source>${maven.compiler.source}</source>
423                     <notimestamp>true</notimestamp>
424                     <header>${project.name} ${project.version} API</header>
425                     <nohelp>true</nohelp>
426                     <author>false</author>
427                     <quiet>true</quiet>
428                     <doclint>all</doclint>
429                     <show>protected</show>
430                 </configuration>
431             </plugin>
432
433             <plugin>
434                 <groupId>org.apache.maven.plugins</groupId>
435                 <artifactId>maven-assembly-plugin</artifactId>
436                 <configuration>
437                     <tarLongFileMode>posix</tarLongFileMode>
438                     <descriptors>
439                         <descriptor>src/assembly/src.xml</descriptor>
440                     </descriptors>
441                 </configuration>
442             </plugin>
443
444             <plugin>
445                 <groupId>org.apache.maven.plugins</groupId>
446                 <artifactId>maven-pmd-plugin</artifactId>
447                 <configuration>
448                     <rulesets>
449                         <ruleset>config/pmd/pmdrules.xml</ruleset>
450                     </rulesets>
451                 </configuration>
452             </plugin>
453
454         </plugins>
455
456         <resources>
457
458             <resource>
459                 <directory>src/main/resources</directory>
460                 <filtering>true</filtering>
461                 <includes>
462                     <include>**/version.properties</include>
463                 </includes>
464             </resource>
465
466             <resource>
467                 <directory>src/main/resources</directory>
468                 <includes>
469                     <include>**/*.txt</include>
470
471                     <include>**/*.properties</include>
472
473                     <include>**/*.xml</include>
474                     <include>**/*.xsd</include>
475                     <include>**/*.dtd</include>
476
477                     <include>**/*.html</include>
478                     <include>**/*.htm</include>
479                     <include>**/*.css</include>
480
481                     <include>**/*.png</include>
482                     <include>**/*.gif</include>
483                     <include>**/*.jpeg</include>
484                     <include>**/*.jpg</include>
485                 </includes>
486                 <excludes>
487                     <exclude>**/version.properties</exclude>
488
489                     <exclude>**/.DS_Store</exclude>
490                     <exclude>**/__MACOSX</exclude>
491                     <exclude>**/Thumbs.db</exclude>
492                     <exclude>**/thumbs.db</exclude>
493                     <exclude>**/Desktop.ini</exclude>
494                     <exclude>**/desktop.ini</exclude>
495                     <exclude>**/core</exclude>
496                 </excludes>
497             </resource>
498
499         </resources>
500
501     </build>
502
503     <reporting>
504
505         <plugins>
506
507             <plugin>
508                 <groupId>org.apache.maven.plugins</groupId>
509                 <artifactId>maven-project-info-reports-plugin</artifactId>
510                 <configuration>
511                     <linkOnly>true</linkOnly>
512                     <offline>true</offline>
513                 </configuration>
514                 <reportSets>
515                     <reportSet>
516                         <reports>
517                             <report>index</report>
518                             <report>summary</report>
519                             <report>licenses</report>
520                             <report>dependency-info</report>
521                             <report>dependencies</report>
522                             <report>dependency-convergence</report>
523                             <report>plugins</report>
524                             <report>team</report>
525                             <report>issue-management</report>
526                             <report>scm</report>
527 <!--
528                             <report>dependency-management</report>
529                             <report>distribution-management</report>
530                             <report>ci-management</report>
531                             <report>mailing-lists</report>
532                             <report>modules</report>
533                             <report>plugin-management</report>
534 -->
535                         </reports>
536                     </reportSet>
537                 </reportSets>
538             </plugin>
539
540             <plugin>
541                 <groupId>org.apache.maven.plugins</groupId>
542                 <artifactId>maven-javadoc-plugin</artifactId>
543                 <configuration>
544                     <locale>${javadoc.locale}</locale>
545                     <!-- for JDK11 javadoc -->
546                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
547                     <source>${maven.compiler.source}</source>
548                     <notimestamp>true</notimestamp>
549                     <header>${project.name} ${project.version} API</header>
550                     <nohelp>true</nohelp>
551                     <author>false</author>
552                     <quiet>true</quiet>
553                     <doclint>all</doclint>
554                     <show>protected</show>
555                 </configuration>
556                 <reportSets>
557                     <reportSet>
558                         <reports>
559                             <report>javadoc</report>
560                         </reports>
561                     </reportSet>
562                 </reportSets>
563             </plugin>
564
565             <plugin>
566                 <groupId>org.apache.maven.plugins</groupId>
567                 <artifactId>maven-jxr-plugin</artifactId>
568             </plugin>
569
570             <plugin>
571                 <groupId>org.apache.maven.plugins</groupId>
572                 <artifactId>maven-surefire-report-plugin</artifactId>
573             </plugin>
574
575             <plugin>
576                 <groupId>org.jacoco</groupId>
577                 <artifactId>jacoco-maven-plugin</artifactId>
578                 <reportSets>
579                     <reportSet>
580                         <reports>
581                             <report>report</report>
582                         </reports>
583                     </reportSet>
584                 </reportSets>
585             </plugin>
586
587             <plugin>
588                 <groupId>org.apache.maven.plugins</groupId>
589                 <artifactId>maven-checkstyle-plugin</artifactId>
590                 <reportSets>
591                     <reportSet>
592                         <reports>
593                             <report>checkstyle</report>
594                         </reports>
595                     </reportSet>
596                 </reportSets>
597             </plugin>
598
599             <plugin>
600                 <groupId>org.apache.maven.plugins</groupId>
601                 <artifactId>maven-pmd-plugin</artifactId>
602                 <configuration>
603                     <rulesets>
604                         <ruleset>config/pmd/pmdrules.xml</ruleset>
605                     </rulesets>
606                 </configuration>
607                 <reportSets>
608                     <reportSet>
609                         <reports>
610                             <report>pmd</report>
611                             <report>cpd</report>
612                         </reports>
613                     </reportSet>
614                 </reportSets>
615             </plugin>
616
617             <plugin>
618                 <groupId>com.github.spotbugs</groupId>
619                 <artifactId>spotbugs-maven-plugin</artifactId>
620             </plugin>
621
622         </plugins>
623
624     </reporting>
625
626     <profiles>
627
628         <profile>
629             <id>release-profile</id>
630
631             <activation>
632                 <property>
633                     <name>performRelease</name>
634                     <value>true</value>
635                 </property>
636             </activation>
637
638             <build>
639                 <plugins>
640
641                     <plugin>
642                         <inherited>true</inherited>
643                         <groupId>org.apache.maven.plugins</groupId>
644                         <artifactId>maven-source-plugin</artifactId>
645                         <configuration>
646                             <includePom>true</includePom>
647                             <archive>
648                                 <manifestEntries>
649                                     <Built-By>${project.organization.name}</Built-By>
650                                 </manifestEntries>
651                             </archive>
652                         </configuration>
653                         <executions>
654                             <execution>
655                                 <id>attach-sources</id>
656                                 <goals>
657                                     <goal>jar-no-fork</goal>
658                                 </goals>
659                             </execution>
660                         </executions>
661                     </plugin>
662
663                     <plugin>
664                         <inherited>true</inherited>
665                         <groupId>org.apache.maven.plugins</groupId>
666                         <artifactId>maven-javadoc-plugin</artifactId>
667                         <configuration>
668                             <show>protected</show>
669                             <archive>
670                                 <manifestEntries>
671                                     <Built-By>${project.organization.name}</Built-By>
672                                 </manifestEntries>
673                             </archive>
674                         </configuration>
675                         <executions>
676                             <execution>
677                                 <id>attach-javadocs</id>
678                                 <goals>
679                                     <goal>jar</goal>
680                                 </goals>
681                             </execution>
682                         </executions>
683                     </plugin>
684
685                 </plugins>
686             </build>
687         </profile>
688
689     </profiles>
690
691 </project>
692
693 <!-- EOF -->