OSDN Git Service

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