OSDN Git Service

4750a9c373a5b663ff17a88967841d6b07cb9ada
[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.5-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.osdn.jindolf.ar.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.9.0</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.2.0</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.1.1</version>
244                     <dependencies>
245                         <dependency>
246                             <groupId>com.puppycrawl.tools</groupId>
247                             <artifactId>checkstyle</artifactId>
248                             <version>8.30</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.13.0</version>
257                 </plugin>
258
259                 <plugin>
260                     <groupId>com.github.spotbugs</groupId>
261                     <artifactId>spotbugs-maven-plugin</artifactId>
262                     <version>4.0.0</version>
263                     <dependencies>
264                         <dependency>
265                             <groupId>com.github.spotbugs</groupId>
266                             <artifactId>spotbugs</artifactId>
267                             <version>4.0.1</version>
268                         </dependency>
269                     </dependencies>
270                 </plugin>
271
272             </plugins>
273
274         </pluginManagement>
275
276         <plugins>
277
278
279             <!-- clean lifecycle -->
280
281             <plugin>
282                 <groupId>org.apache.maven.plugins</groupId>
283                 <artifactId>maven-clean-plugin</artifactId>
284                 <configuration>
285                     <filesets>
286                         <fileset>
287                             <directory>${project.basedir}</directory>
288                             <includes>
289                                 <include>**/*~</include>
290                                 <include>**/*.swp</include>
291                                 <include>**/*.DS_Store</include>
292                                 <include>**/._*</include>
293                                 <include>**/__MACOSX</include>
294                                 <include>**/Thumbs.db</include>
295                                 <include>**/desktop.ini</include>
296                                 <include>**/core</include>
297                                 <include>**/hs_err_pid*</include>
298                             </includes>
299                         </fileset>
300                     </filesets>
301                 </configuration>
302             </plugin>
303
304
305             <!-- default lifecycle -->
306
307             <plugin>
308                 <groupId>org.apache.maven.plugins</groupId>
309                 <artifactId>maven-enforcer-plugin</artifactId>
310                 <executions>
311                     <execution>
312                         <id>enforce-versions</id>
313                         <goals>
314                             <goal>enforce</goal>
315                         </goals>
316                         <configuration>
317                             <rules>
318                                 <requireMavenVersion>
319                                     <version>[3.3.9,)</version>
320                                 </requireMavenVersion>
321                                 <requireJavaVersion>
322                                     <version>[1.8,)</version>
323                                 </requireJavaVersion>
324                             </rules>
325                         </configuration>
326                     </execution>
327                 </executions>
328             </plugin>
329
330             <plugin>
331                 <groupId>org.apache.maven.plugins</groupId>
332                 <artifactId>maven-compiler-plugin</artifactId>
333                 <configuration>
334                     <source>1.8</source>  <!-- for NetBeans IDE -->
335                     <target>1.8</target>
336                     <compilerArguments>
337                         <Xlint/>
338                     </compilerArguments>
339                     <showWarnings>true</showWarnings>
340                     <showDeprecation>true</showDeprecation>
341                 </configuration>
342             </plugin>
343
344             <plugin>
345                 <groupId>org.apache.maven.plugins</groupId>
346                 <artifactId>maven-surefire-plugin</artifactId>
347                 <configuration>
348                     <enableAssertions>true</enableAssertions>
349                 </configuration>
350             </plugin>
351
352             <plugin>
353                 <groupId>org.jacoco</groupId>
354                 <artifactId>jacoco-maven-plugin</artifactId>
355                 <executions>
356                     <execution>
357                         <id>default-prepare-agent</id>
358                         <goals>
359                             <goal>prepare-agent</goal>
360                         </goals>
361                     </execution>
362                 </executions>
363             </plugin>
364
365             <plugin>
366                 <groupId>org.apache.maven.plugins</groupId>
367                 <artifactId>maven-jar-plugin</artifactId>
368                 <configuration>
369                     <archive>
370                         <manifest>
371                             <mainClass>${project.mainentry}</mainClass>
372                             <addDefaultImplementationEntries>
373                                 false
374                             </addDefaultImplementationEntries>
375                         </manifest>
376                         <manifestEntries>
377                             <Built-By>${project.organization.name}</Built-By>
378                         </manifestEntries>
379                     </archive>
380                 </configuration>
381             </plugin>
382
383             <plugin>
384                 <groupId>org.apache.maven.plugins</groupId>
385                 <artifactId>maven-shade-plugin</artifactId>
386                 <executions>
387                     <execution>
388                         <phase>package</phase>
389                         <goals>
390                             <goal>shade</goal>
391                         </goals>
392                         <configuration>
393                             <createDependencyReducedPom>false</createDependencyReducedPom>
394                         </configuration>
395                     </execution>
396                 </executions>
397             </plugin>
398
399             <!-- site lifecycle -->
400
401             <plugin>
402                 <groupId>org.apache.maven.plugins</groupId>
403                 <artifactId>maven-site-plugin</artifactId>
404                 <configuration>
405                     <locales>${site.locales}</locales>
406                 </configuration>
407             </plugin>
408
409
410             <!-- goals without lifecycle -->
411
412             <plugin>
413                 <groupId>org.apache.maven.plugins</groupId>
414                 <artifactId>maven-javadoc-plugin</artifactId>
415                 <configuration>
416                     <locale>${javadoc.locale}</locale>
417                     <!-- for JDK11 javadoc -->
418                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
419                     <source>${maven.compiler.source}</source>
420                     <notimestamp>true</notimestamp>
421                     <header>${project.name} ${project.version} API</header>
422                     <nohelp>true</nohelp>
423                     <author>false</author>
424                     <quiet>true</quiet>
425                     <doclint>all</doclint>
426                     <show>protected</show>
427                 </configuration>
428             </plugin>
429
430             <plugin>
431                 <groupId>org.apache.maven.plugins</groupId>
432                 <artifactId>maven-assembly-plugin</artifactId>
433                 <configuration>
434                     <descriptors>
435                         <descriptor>src/assembly/src.xml</descriptor>
436                     </descriptors>
437                 </configuration>
438             </plugin>
439
440             <plugin>
441                 <groupId>org.apache.maven.plugins</groupId>
442                 <artifactId>maven-pmd-plugin</artifactId>
443                 <configuration>
444                     <rulesets>
445                         <ruleset>config/pmd/pmdrules.xml</ruleset>
446                     </rulesets>
447                 </configuration>
448             </plugin>
449
450         </plugins>
451
452         <resources>
453
454             <resource>
455                 <directory>src/main/resources</directory>
456                 <filtering>true</filtering>
457                 <includes>
458                     <include>**/version.properties</include>
459                 </includes>
460             </resource>
461
462             <resource>
463                 <directory>src/main/resources</directory>
464                 <includes>
465                     <include>**/*.txt</include>
466
467                     <include>**/*.properties</include>
468
469                     <include>**/*.xml</include>
470                     <include>**/*.xsd</include>
471                     <include>**/*.dtd</include>
472
473                     <include>**/*.html</include>
474                     <include>**/*.htm</include>
475                     <include>**/*.css</include>
476
477                     <include>**/*.png</include>
478                     <include>**/*.gif</include>
479                     <include>**/*.jpeg</include>
480                     <include>**/*.jpg</include>
481                 </includes>
482                 <excludes>
483                     <exclude>**/version.properties</exclude>
484
485                     <exclude>**/.DS_Store</exclude>
486                     <exclude>**/__MACOSX</exclude>
487                     <exclude>**/Thumbs.db</exclude>
488                     <exclude>**/thumbs.db</exclude>
489                     <exclude>**/Desktop.ini</exclude>
490                     <exclude>**/desktop.ini</exclude>
491                     <exclude>**/core</exclude>
492                 </excludes>
493             </resource>
494
495         </resources>
496
497     </build>
498
499     <reporting>
500
501         <plugins>
502
503             <plugin>
504                 <groupId>org.apache.maven.plugins</groupId>
505                 <artifactId>maven-project-info-reports-plugin</artifactId>
506                 <configuration>
507                     <linkOnly>true</linkOnly>
508                     <offline>true</offline>
509                 </configuration>
510                 <reportSets>
511                     <reportSet>
512                         <reports>
513                             <report>index</report>
514                             <report>summary</report>
515                             <report>licenses</report>
516                             <report>dependency-info</report>
517                             <report>dependencies</report>
518                             <report>dependency-convergence</report>
519                             <report>plugins</report>
520                             <report>team</report>
521                             <report>issue-management</report>
522                             <report>scm</report>
523 <!--
524                             <report>dependency-management</report>
525                             <report>distribution-management</report>
526                             <report>ci-management</report>
527                             <report>mailing-lists</report>
528                             <report>modules</report>
529                             <report>plugin-management</report>
530 -->
531                         </reports>
532                     </reportSet>
533                 </reportSets>
534             </plugin>
535
536             <plugin>
537                 <groupId>org.apache.maven.plugins</groupId>
538                 <artifactId>maven-javadoc-plugin</artifactId>
539                 <configuration>
540                     <locale>${javadoc.locale}</locale>
541                     <!-- for JDK11 javadoc -->
542                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
543                     <source>${maven.compiler.source}</source>
544                     <notimestamp>true</notimestamp>
545                     <header>${project.name} ${project.version} API</header>
546                     <nohelp>true</nohelp>
547                     <author>false</author>
548                     <quiet>true</quiet>
549                     <doclint>all</doclint>
550                     <show>protected</show>
551                 </configuration>
552                 <reportSets>
553                     <reportSet>
554                         <reports>
555                             <report>javadoc</report>
556                         </reports>
557                     </reportSet>
558                 </reportSets>
559             </plugin>
560
561             <plugin>
562                 <groupId>org.apache.maven.plugins</groupId>
563                 <artifactId>maven-jxr-plugin</artifactId>
564             </plugin>
565
566             <plugin>
567                 <groupId>org.apache.maven.plugins</groupId>
568                 <artifactId>maven-surefire-report-plugin</artifactId>
569             </plugin>
570
571             <plugin>
572                 <groupId>org.jacoco</groupId>
573                 <artifactId>jacoco-maven-plugin</artifactId>
574                 <reportSets>
575                     <reportSet>
576                         <reports>
577                             <report>report</report>
578                         </reports>
579                     </reportSet>
580                 </reportSets>
581             </plugin>
582
583             <plugin>
584                 <groupId>org.apache.maven.plugins</groupId>
585                 <artifactId>maven-checkstyle-plugin</artifactId>
586                 <reportSets>
587                     <reportSet>
588                         <reports>
589                             <report>checkstyle</report>
590                         </reports>
591                     </reportSet>
592                 </reportSets>
593             </plugin>
594
595             <plugin>
596                 <groupId>org.apache.maven.plugins</groupId>
597                 <artifactId>maven-pmd-plugin</artifactId>
598                 <configuration>
599                     <rulesets>
600                         <ruleset>config/pmd/pmdrules.xml</ruleset>
601                     </rulesets>
602                 </configuration>
603                 <reportSets>
604                     <reportSet>
605                         <reports>
606                             <report>pmd</report>
607                             <report>cpd</report>
608                         </reports>
609                     </reportSet>
610                 </reportSets>
611             </plugin>
612
613             <plugin>
614                 <groupId>com.github.spotbugs</groupId>
615                 <artifactId>spotbugs-maven-plugin</artifactId>
616             </plugin>
617
618         </plugins>
619
620     </reporting>
621
622     <profiles>
623
624         <profile>
625             <id>release-profile</id>
626
627             <activation>
628                 <property>
629                     <name>performRelease</name>
630                     <value>true</value>
631                 </property>
632             </activation>
633
634             <build>
635                 <plugins>
636
637                     <plugin>
638                         <inherited>true</inherited>
639                         <groupId>org.apache.maven.plugins</groupId>
640                         <artifactId>maven-source-plugin</artifactId>
641                         <configuration>
642                             <includePom>true</includePom>
643                             <archive>
644                                 <manifestEntries>
645                                     <Built-By>${project.organization.name}</Built-By>
646                                 </manifestEntries>
647                             </archive>
648                         </configuration>
649                         <executions>
650                             <execution>
651                                 <id>attach-sources</id>
652                                 <goals>
653                                     <goal>jar-no-fork</goal>
654                                 </goals>
655                             </execution>
656                         </executions>
657                     </plugin>
658
659                     <plugin>
660                         <inherited>true</inherited>
661                         <groupId>org.apache.maven.plugins</groupId>
662                         <artifactId>maven-javadoc-plugin</artifactId>
663                         <configuration>
664                             <show>protected</show>
665                             <archive>
666                                 <manifestEntries>
667                                     <Built-By>${project.organization.name}</Built-By>
668                                 </manifestEntries>
669                             </archive>
670                         </configuration>
671                         <executions>
672                             <execution>
673                                 <id>attach-javadocs</id>
674                                 <goals>
675                                     <goal>jar</goal>
676                                 </goals>
677                             </execution>
678                         </executions>
679                     </plugin>
680
681                 </plugins>
682             </build>
683         </profile>
684
685     </profiles>
686
687 </project>
688
689 <!-- EOF -->