OSDN Git Service

c5cf438ad1cc99017b88ad13e9daeb174e179072
[jindolf/JinCore.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>jincore</artifactId>
18
19     <version>1.207.5-SNAPSHOT</version>
20
21     <packaging>jar</packaging>
22     <name>JinCore</name>
23
24     <description><!--
25 -->JinCoreライブラリは、Jindolf プロジェクトのコア共通部分を構成する<!--
26 -->Javaパッケージです。<!--
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/JinCore.git</connection>
67         <developerConnection>scm:git:https://scm.osdn.net/gitroot/jindolf/JinCore.git</developerConnection>
68         <url>https://osdn.net/projects/jindolf/scm/git/JinCore/</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     </properties>
109
110     <dependencyManagement/>
111
112     <dependencies>
113
114         <dependency>
115             <groupId>junit</groupId>
116             <artifactId>junit</artifactId>
117             <version>4.13.2</version>
118             <scope>test</scope>
119         </dependency>
120
121     </dependencies>
122
123     <repositories/>
124     <pluginRepositories/>
125
126     <build>
127
128         <pluginManagement>
129
130             <plugins>
131
132                 <plugin>
133                     <groupId>org.apache.maven.plugins</groupId>
134                     <artifactId>maven-clean-plugin</artifactId>
135                     <version>3.2.0</version>
136                 </plugin>
137
138                 <plugin>
139                     <groupId>org.apache.maven.plugins</groupId>
140                     <artifactId>maven-enforcer-plugin</artifactId>
141                     <version>3.1.0</version>
142                 </plugin>
143
144                 <plugin>
145                     <groupId>org.apache.maven.plugins</groupId>
146                     <artifactId>maven-resources-plugin</artifactId>
147                     <version>3.3.0</version>
148                 </plugin>
149
150                 <plugin>
151                     <groupId>org.apache.maven.plugins</groupId>
152                     <artifactId>maven-compiler-plugin</artifactId>
153                     <version>3.10.1</version>
154                 </plugin>
155
156                 <plugin>
157                     <groupId>org.apache.maven.plugins</groupId>
158                     <artifactId>maven-surefire-plugin</artifactId>
159                     <version>3.0.0-M7</version>
160                 </plugin>
161
162                 <plugin>
163                     <groupId>org.apache.maven.plugins</groupId>
164                     <artifactId>maven-surefire-report-plugin</artifactId>
165                     <version>3.0.0-M7</version>
166                 </plugin>
167
168                 <plugin>
169                     <groupId>org.jacoco</groupId>
170                     <artifactId>jacoco-maven-plugin</artifactId>
171                     <version>0.8.8</version>
172                 </plugin>
173
174                 <plugin>
175                     <groupId>org.apache.maven.plugins</groupId>
176                     <artifactId>maven-jar-plugin</artifactId>
177                     <version>3.3.0</version>
178                 </plugin>
179
180                 <plugin>
181                     <groupId>org.apache.maven.plugins</groupId>
182                     <artifactId>maven-source-plugin</artifactId>
183                     <version>3.2.1</version>
184                 </plugin>
185
186                 <plugin>
187                     <groupId>org.apache.maven.plugins</groupId>
188                     <artifactId>maven-install-plugin</artifactId>
189                     <version>3.0.1</version>
190                 </plugin>
191
192                 <plugin>
193                     <groupId>org.apache.maven.plugins</groupId>
194                     <artifactId>maven-deploy-plugin</artifactId>
195                     <version>3.0.0</version>
196                 </plugin>
197
198                 <plugin>
199                     <groupId>org.apache.maven.plugins</groupId>
200                     <artifactId>maven-site-plugin</artifactId>
201                     <version>3.12.1</version>
202                 </plugin>
203
204                 <plugin>
205                     <groupId>org.apache.maven.plugins</groupId>
206                     <artifactId>maven-assembly-plugin</artifactId>
207                     <version>3.4.2</version>
208                 </plugin>
209
210                 <plugin>
211                     <groupId>org.apache.maven.plugins</groupId>
212                     <artifactId>maven-project-info-reports-plugin</artifactId>
213                     <version>3.4.1</version>
214                 </plugin>
215
216                 <plugin>
217                     <groupId>org.apache.maven.plugins</groupId>
218                     <artifactId>maven-javadoc-plugin</artifactId>
219                     <version>3.4.1</version>
220                 </plugin>
221
222                 <plugin>
223                     <groupId>org.apache.maven.plugins</groupId>
224                     <artifactId>maven-jxr-plugin</artifactId>
225                     <version>3.3.0</version>
226                 </plugin>
227
228                 <plugin>
229                     <groupId>org.apache.maven.plugins</groupId>
230                     <artifactId>maven-checkstyle-plugin</artifactId>
231                     <version>3.1.2</version>
232                     <dependencies>
233                         <dependency>
234                             <groupId>com.puppycrawl.tools</groupId>
235                             <artifactId>checkstyle</artifactId>
236                             <version>9.0</version>
237                         </dependency>
238                     </dependencies>
239                 </plugin>
240
241                 <plugin>
242                     <groupId>org.apache.maven.plugins</groupId>
243                     <artifactId>maven-pmd-plugin</artifactId>
244                     <version>3.15.0</version>
245                     <dependencies>
246                         <dependency>
247                             <groupId>net.sourceforge.pmd</groupId>
248                             <artifactId>pmd-core</artifactId>
249                             <version>6.38.0</version>
250                         </dependency>
251                         <dependency>
252                             <groupId>net.sourceforge.pmd</groupId>
253                             <artifactId>pmd-java</artifactId>
254                             <version>6.38.0</version>
255                         </dependency>
256                     </dependencies>
257                 </plugin>
258
259                 <plugin>
260                     <groupId>com.github.spotbugs</groupId>
261                     <artifactId>spotbugs-maven-plugin</artifactId>
262                     <version>4.7.2.0</version>
263                     <dependencies>
264                         <dependency>
265                             <groupId>com.github.spotbugs</groupId>
266                             <artifactId>spotbugs</artifactId>
267                             <version>4.7.2</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                             <addDefaultImplementationEntries>
372                                 true
373                             </addDefaultImplementationEntries>
374                         </manifest>
375                         <manifestEntries>
376                             <Built-By>${project.organization.name}</Built-By>
377                         </manifestEntries>
378                     </archive>
379                 </configuration>
380             </plugin>
381
382
383             <!-- site lifecycle -->
384
385             <plugin>
386                 <groupId>org.apache.maven.plugins</groupId>
387                 <artifactId>maven-site-plugin</artifactId>
388                 <configuration>
389                     <locales>${site.locales}</locales>
390                 </configuration>
391             </plugin>
392
393
394             <!-- goals without lifecycle -->
395
396             <plugin>
397                 <groupId>org.apache.maven.plugins</groupId>
398                 <artifactId>maven-javadoc-plugin</artifactId>
399                 <configuration>
400                     <locale>${javadoc.locale}</locale>
401                     <!-- for JDK11 javadoc -->
402                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
403                     <source>${maven.compiler.source}</source>
404                     <notimestamp>true</notimestamp>
405                     <header>${project.name} ${project.version} API</header>
406                     <nohelp>true</nohelp>
407                     <author>false</author>
408                     <quiet>true</quiet>
409                     <doclint>all</doclint>
410                     <show>protected</show>
411                 </configuration>
412             </plugin>
413
414             <plugin>
415                 <groupId>org.apache.maven.plugins</groupId>
416                 <artifactId>maven-assembly-plugin</artifactId>
417                 <configuration>
418                     <tarLongFileMode>posix</tarLongFileMode>
419                     <descriptors>
420                         <descriptor>src/assembly/src.xml</descriptor>
421                     </descriptors>
422                 </configuration>
423             </plugin>
424
425             <plugin>
426                 <groupId>org.apache.maven.plugins</groupId>
427                 <artifactId>maven-pmd-plugin</artifactId>
428                 <configuration>
429                     <rulesets>
430                         <ruleset>config/pmd/pmdrules.xml</ruleset>
431                     </rulesets>
432                 </configuration>
433             </plugin>
434
435         </plugins>
436
437         <resources>
438
439             <resource>
440                 <directory>src/main/resources</directory>
441                 <filtering>true</filtering>
442                 <includes>
443                     <include>**/version.properties</include>
444                 </includes>
445             </resource>
446
447             <resource>
448                 <directory>src/main/resources</directory>
449                 <includes>
450                     <include>**/*.txt</include>
451
452                     <include>**/*.properties</include>
453
454                     <include>**/*.xml</include>
455                     <include>**/*.xsd</include>
456                     <include>**/*.dtd</include>
457
458                     <include>**/*.html</include>
459                     <include>**/*.htm</include>
460                     <include>**/*.css</include>
461
462                     <include>**/*.png</include>
463                     <include>**/*.gif</include>
464                     <include>**/*.jpeg</include>
465                     <include>**/*.jpg</include>
466                 </includes>
467                 <excludes>
468                     <exclude>**/version.properties</exclude>
469
470                     <exclude>**/.DS_Store</exclude>
471                     <exclude>**/__MACOSX</exclude>
472                     <exclude>**/Thumbs.db</exclude>
473                     <exclude>**/thumbs.db</exclude>
474                     <exclude>**/Desktop.ini</exclude>
475                     <exclude>**/desktop.ini</exclude>
476                     <exclude>**/core</exclude>
477                 </excludes>
478             </resource>
479
480         </resources>
481
482     </build>
483
484     <reporting>
485
486         <plugins>
487
488             <plugin>
489                 <groupId>org.apache.maven.plugins</groupId>
490                 <artifactId>maven-project-info-reports-plugin</artifactId>
491                 <configuration>
492                     <linkOnly>true</linkOnly>
493                     <offline>true</offline>
494                 </configuration>
495                 <reportSets>
496                     <reportSet>
497                         <reports>
498                             <report>index</report>
499                             <report>summary</report>
500                             <report>licenses</report>
501                             <report>dependency-info</report>
502                             <report>dependencies</report>
503                             <report>dependency-convergence</report>
504                             <report>plugins</report>
505                             <report>team</report>
506                             <report>issue-management</report>
507                             <report>scm</report>
508 <!--
509                             <report>dependency-management</report>
510                             <report>distribution-management</report>
511                             <report>ci-management</report>
512                             <report>mailing-lists</report>
513                             <report>modules</report>
514                             <report>plugin-management</report>
515 -->
516                         </reports>
517                     </reportSet>
518                 </reportSets>
519             </plugin>
520
521             <plugin>
522                 <groupId>org.apache.maven.plugins</groupId>
523                 <artifactId>maven-javadoc-plugin</artifactId>
524                 <configuration>
525                     <locale>${javadoc.locale}</locale>
526                     <!-- for JDK11 javadoc -->
527                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
528                     <source>${maven.compiler.source}</source>
529                     <notimestamp>true</notimestamp>
530                     <header>${project.name} ${project.version} API</header>
531                     <nohelp>true</nohelp>
532                     <author>false</author>
533                     <quiet>true</quiet>
534                     <doclint>all</doclint>
535                     <show>protected</show>
536                 </configuration>
537                 <reportSets>
538                     <reportSet>
539                         <reports>
540                             <report>javadoc</report>
541                         </reports>
542                     </reportSet>
543                 </reportSets>
544             </plugin>
545
546             <plugin>
547                 <groupId>org.apache.maven.plugins</groupId>
548                 <artifactId>maven-jxr-plugin</artifactId>
549             </plugin>
550
551             <plugin>
552                 <groupId>org.apache.maven.plugins</groupId>
553                 <artifactId>maven-surefire-report-plugin</artifactId>
554             </plugin>
555
556             <plugin>
557                 <groupId>org.jacoco</groupId>
558                 <artifactId>jacoco-maven-plugin</artifactId>
559                 <reportSets>
560                     <reportSet>
561                         <reports>
562                             <report>report</report>
563                         </reports>
564                     </reportSet>
565                 </reportSets>
566             </plugin>
567
568             <plugin>
569                 <groupId>org.apache.maven.plugins</groupId>
570                 <artifactId>maven-checkstyle-plugin</artifactId>
571                 <reportSets>
572                     <reportSet>
573                         <reports>
574                             <report>checkstyle</report>
575                         </reports>
576                     </reportSet>
577                 </reportSets>
578             </plugin>
579
580             <plugin>
581                 <groupId>org.apache.maven.plugins</groupId>
582                 <artifactId>maven-pmd-plugin</artifactId>
583                 <configuration>
584                     <rulesets>
585                         <ruleset>config/pmd/pmdrules.xml</ruleset>
586                     </rulesets>
587                 </configuration>
588                 <reportSets>
589                     <reportSet>
590                         <reports>
591                             <report>pmd</report>
592                             <report>cpd</report>
593                         </reports>
594                     </reportSet>
595                 </reportSets>
596             </plugin>
597
598             <plugin>
599                 <groupId>com.github.spotbugs</groupId>
600                 <artifactId>spotbugs-maven-plugin</artifactId>
601             </plugin>
602
603         </plugins>
604
605     </reporting>
606
607     <profiles>
608
609         <profile>
610             <id>release-profile</id>
611
612             <activation>
613                 <property>
614                     <name>performRelease</name>
615                     <value>true</value>
616                 </property>
617             </activation>
618
619             <build>
620                 <plugins>
621
622                     <plugin>
623                         <inherited>true</inherited>
624                         <groupId>org.apache.maven.plugins</groupId>
625                         <artifactId>maven-source-plugin</artifactId>
626                         <configuration>
627                             <includePom>true</includePom>
628                             <archive>
629                                 <manifestEntries>
630                                     <Built-By>${project.organization.name}</Built-By>
631                                 </manifestEntries>
632                             </archive>
633                         </configuration>
634                         <executions>
635                             <execution>
636                                 <id>attach-sources</id>
637                                 <goals>
638                                     <goal>jar-no-fork</goal>
639                                 </goals>
640                             </execution>
641                         </executions>
642                     </plugin>
643
644                     <plugin>
645                         <inherited>true</inherited>
646                         <groupId>org.apache.maven.plugins</groupId>
647                         <artifactId>maven-javadoc-plugin</artifactId>
648                         <configuration>
649                             <show>protected</show>
650                             <archive>
651                                 <manifestEntries>
652                                     <Built-By>${project.organization.name}</Built-By>
653                                 </manifestEntries>
654                             </archive>
655                         </configuration>
656                         <executions>
657                             <execution>
658                                 <id>attach-javadocs</id>
659                                 <goals>
660                                     <goal>jar</goal>
661                                 </goals>
662                             </execution>
663                         </executions>
664                     </plugin>
665
666                 </plugins>
667             </build>
668         </profile>
669
670     </profiles>
671
672 </project>
673
674 <!-- EOF -->