OSDN Git Service

Merge commit '88829358dc86447e823fdbf58d796beb05e2388c' into develop
[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.103-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
82         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
83         <maven.compiler.showWarnings>true</maven.compiler.showWarnings>
84
85         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
86         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
87         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
88
89         <project.mainconf>${project.basedir}/src/main/config</project.mainconf>
90
91         <locale>en</locale>
92         <site.locales>${locale}</site.locales>
93         <javadoc.locale>${locale}</javadoc.locale>
94         <spotbugs.jvmArgs>-Duser.language=${locale}</spotbugs.jvmArgs>
95
96         <!-- Walk around: JDK 11 javadoc + Maven -->
97         <detectJavaApiLink>false</detectJavaApiLink>
98
99         <surefire-plugin.version>3.0.0-M3</surefire-plugin.version>
100         <jacoco-plugin.version>0.8.3</jacoco-plugin.version>
101
102         <checkstyle-plugin.version>3.0.0</checkstyle-plugin.version>
103         <checkstyleruntime.version>8.18</checkstyleruntime.version>
104         <checkstyle.config.location>${project.basedir}/config/checkstyle/checkstyle.xml</checkstyle.config.location>
105         <checkstyle.suppressions.location>${project.basedir}/config/checkstyle/checkstyle-suppressions.xml</checkstyle.suppressions.location>
106         <checkstyle.enable.rss>false</checkstyle.enable.rss>
107
108         <pmd-plugin.version>3.12.0</pmd-plugin.version>
109         <pmd.analysisCache>true</pmd.analysisCache>
110
111         <spotbugs-plugin.version>3.1.11</spotbugs-plugin.version>
112         <spotbugs.effort>Max</spotbugs.effort>
113         <spotbugs.threshold>Low</spotbugs.threshold>
114         <!-- for Jenkins -->
115         <spotbugs.xmlOutput>true</spotbugs.xmlOutput>
116
117     </properties>
118
119     <dependencyManagement/>
120
121     <dependencies>
122
123         <dependency>
124             <groupId>junit</groupId>
125             <artifactId>junit</artifactId>
126             <version>4.12</version>
127             <scope>test</scope>
128         </dependency>
129
130     </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-checkstyle-plugin</artifactId>
144                     <version>${checkstyle-plugin.version}</version>
145                     <dependencies>
146                         <dependency>
147                             <groupId>com.puppycrawl.tools</groupId>
148                             <artifactId>checkstyle</artifactId>
149                             <version>${checkstyleruntime.version}</version>
150                         </dependency>
151                     </dependencies>
152                 </plugin>
153
154             </plugins>
155
156         </pluginManagement>
157
158         <plugins>
159
160
161             <!-- clean lifecycle -->
162
163             <plugin>
164                 <groupId>org.apache.maven.plugins</groupId>
165                 <artifactId>maven-clean-plugin</artifactId>
166                 <version>3.1.0</version>
167                 <configuration>
168                     <filesets>
169                         <fileset>
170                             <directory>${project.basedir}</directory>
171                             <includes>
172                                 <include>**/*~</include>
173                                 <include>**/*.swp</include>
174                                 <include>**/*.DS_Store</include>
175                                 <include>**/._*</include>
176                                 <include>**/__MACOSX</include>
177                                 <include>**/Thumbs.db</include>
178                                 <include>**/desktop.ini</include>
179                                 <include>**/core</include>
180                                 <include>**/hs_err_pid*</include>
181                             </includes>
182                         </fileset>
183                     </filesets>
184                 </configuration>
185             </plugin>
186
187
188             <!-- default lifecycle -->
189
190             <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-enforcer-plugin</artifactId>
193                 <version>3.0.0-M2</version>
194                 <executions>
195                     <execution>
196                         <id>enforce-versions</id>
197                         <goals>
198                             <goal>enforce</goal>
199                         </goals>
200                         <configuration>
201                             <rules>
202                                 <requireMavenVersion>
203                                     <version>[3.3.9,)</version>
204                                 </requireMavenVersion>
205                                 <requireJavaVersion>
206                                     <version>[1.8,)</version>
207                                 </requireJavaVersion>
208                             </rules>
209                         </configuration>
210                     </execution>
211                 </executions>
212             </plugin>
213
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-resources-plugin</artifactId>
217                 <version>3.1.0</version>
218             </plugin>
219
220             <plugin>
221                 <groupId>org.apache.maven.plugins</groupId>
222                 <artifactId>maven-compiler-plugin</artifactId>
223                 <version>3.8.0</version>
224                 <configuration>
225                     <source>1.8</source>  <!-- for NetBeans IDE -->
226                     <target>1.8</target>
227                     <compilerArguments>
228                         <Xlint/>
229                     </compilerArguments>
230                     <showWarnings>true</showWarnings>
231                     <showDeprecation>true</showDeprecation>
232                 </configuration>
233             </plugin>
234
235             <plugin>
236                 <groupId>org.apache.maven.plugins</groupId>
237                 <artifactId>maven-surefire-plugin</artifactId>
238                 <version>${surefire-plugin.version}</version>
239                 <configuration>
240                     <enableAssertions>true</enableAssertions>
241                 </configuration>
242             </plugin>
243
244             <plugin>
245                 <groupId>org.jacoco</groupId>
246                 <artifactId>jacoco-maven-plugin</artifactId>
247                 <version>${jacoco-plugin.version}</version>
248                 <executions>
249                     <execution>
250                         <id>default-prepare-agent</id>
251                         <goals>
252                             <goal>prepare-agent</goal>
253                         </goals>
254                     </execution>
255                     <execution>
256                         <id>default-report</id>
257                         <phase>prepare-package</phase>
258                         <goals>
259                             <goal>report</goal>
260                         </goals>
261                     </execution>
262                     <execution>
263                         <id>default-check</id>
264                         <goals>
265                             <goal>check</goal>
266                         </goals>
267                         <configuration>
268                             <rules>
269                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
270                                     <element>BUNDLE</element>
271                                     <limits>
272                                         <limit implementation="org.jacoco.report.check.Limit">
273                                             <counter>COMPLEXITY</counter>
274                                             <value>COVEREDRATIO</value>
275                                             <minimum>0.0</minimum>
276                                         </limit>
277                                     </limits>
278                                 </rule>
279                             </rules>
280                         </configuration>
281                     </execution>
282                 </executions>
283             </plugin>
284
285             <plugin>
286                 <groupId>org.apache.maven.plugins</groupId>
287                 <artifactId>maven-jar-plugin</artifactId>
288                 <version>3.1.1</version>
289                 <configuration>
290                     <archive>
291                         <manifest>
292                             <addDefaultImplementationEntries>
293                                 true
294                             </addDefaultImplementationEntries>
295                         </manifest>
296                         <manifestEntries>
297                             <Built-By>${project.organization.name}</Built-By>
298                         </manifestEntries>
299                     </archive>
300                 </configuration>
301             </plugin>
302
303             <plugin>
304                 <groupId>org.apache.maven.plugins</groupId>
305                 <artifactId>maven-source-plugin</artifactId>
306                 <version>3.0.1</version>
307                 <configuration>
308                     <includePom>true</includePom>
309                     <archive>
310                         <manifestEntries>
311                             <Built-By>${project.organization.name}</Built-By>
312                         </manifestEntries>
313                     </archive>
314                 </configuration>
315                 <executions>
316                     <execution>
317                         <id>attach-sources</id>
318                         <phase>verify</phase>
319                         <goals>
320                           <goal>jar-no-fork</goal>
321                         </goals>
322                     </execution>
323                 </executions>
324             </plugin>
325
326             <plugin>
327                 <groupId>org.apache.maven.plugins</groupId>
328                 <artifactId>maven-install-plugin</artifactId>
329                 <version>3.0.0-M1</version>
330             </plugin>
331
332             <plugin>
333                 <groupId>org.apache.maven.plugins</groupId>
334                 <artifactId>maven-deploy-plugin</artifactId>
335                 <version>3.0.0-M1</version>
336             </plugin>
337
338
339             <!-- site lifecycle -->
340
341             <plugin>
342                 <groupId>org.apache.maven.plugins</groupId>
343                 <artifactId>maven-site-plugin</artifactId>
344                 <version>3.7.1</version>
345                 <configuration>
346                     <locales>${site.locales}</locales>
347                 </configuration>
348             </plugin>
349
350
351             <!-- goals without lifecycle -->
352
353             <plugin>
354                 <groupId>org.apache.maven.plugins</groupId>
355                 <artifactId>maven-assembly-plugin</artifactId>
356                 <version>3.1.1</version>
357                 <configuration>
358                     <descriptors>
359                         <descriptor>src/assembly/src.xml</descriptor>
360                     </descriptors>
361                 </configuration>
362             </plugin>
363
364             <plugin>
365                 <groupId>org.apache.maven.plugins</groupId>
366                 <artifactId>maven-checkstyle-plugin</artifactId>
367                 <version>${checkstyle-plugin.version}</version>
368             </plugin>
369
370             <plugin>
371                 <groupId>org.apache.maven.plugins</groupId>
372                 <artifactId>maven-pmd-plugin</artifactId>
373                 <version>${pmd-plugin.version}</version>
374                 <configuration>
375                     <rulesets>
376                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
377                     </rulesets>
378                 </configuration>
379             </plugin>
380
381             <plugin>
382                 <groupId>com.github.spotbugs</groupId>
383                 <artifactId>spotbugs-maven-plugin</artifactId>
384                 <version>${spotbugs-plugin.version}</version>
385             </plugin>
386
387         </plugins>
388
389         <resources>
390
391             <resource>
392                 <directory>src/main/resources</directory>
393                 <filtering>true</filtering>
394                 <includes>
395                     <include>**/version.properties</include>
396                 </includes>
397             </resource>
398
399             <resource>
400                 <directory>src/main/resources</directory>
401                 <includes>
402                     <include>**/*.txt</include>
403
404                     <include>**/*.properties</include>
405
406                     <include>**/*.xml</include>
407                     <include>**/*.xsd</include>
408                     <include>**/*.dtd</include>
409
410                     <include>**/*.html</include>
411                     <include>**/*.htm</include>
412                     <include>**/*.css</include>
413
414                     <include>**/*.png</include>
415                     <include>**/*.gif</include>
416                     <include>**/*.jpeg</include>
417                     <include>**/*.jpg</include>
418                 </includes>
419                 <excludes>
420                     <exclude>**/version.properties</exclude>
421
422                     <exclude>**/.DS_Store</exclude>
423                     <exclude>**/__MACOSX</exclude>
424                     <exclude>**/Thumbs.db</exclude>
425                     <exclude>**/thumbs.db</exclude>
426                     <exclude>**/Desktop.ini</exclude>
427                     <exclude>**/desktop.ini</exclude>
428                     <exclude>**/core</exclude>
429                 </excludes>
430             </resource>
431
432         </resources>
433
434     </build>
435
436     <reporting>
437
438         <plugins>
439
440             <plugin>
441                 <groupId>org.apache.maven.plugins</groupId>
442                 <artifactId>maven-project-info-reports-plugin</artifactId>
443                 <version>3.0.0</version>
444                 <configuration>
445                     <linkOnly>true</linkOnly>
446                     <offline>true</offline>
447                 </configuration>
448                 <reportSets>
449                     <reportSet>
450                         <reports>
451                             <report>index</report>
452                             <report>summary</report>
453                             <report>licenses</report>
454                             <report>dependency-info</report>
455                             <report>dependencies</report>
456                             <report>dependency-convergence</report>
457                             <report>plugins</report>
458                             <report>plugin-management</report>
459                             <report>team</report>
460                             <report>issue-management</report>
461                             <report>scm</report>
462 <!--
463                             <report>dependency-management</report>
464                             <report>distribution-management</report>
465                             <report>ci-management</report>
466                             <report>mailing-lists</report>
467                             <report>modules</report>
468 -->
469                         </reports>
470                     </reportSet>
471                 </reportSets>
472             </plugin>
473
474             <plugin>
475                 <groupId>org.apache.maven.plugins</groupId>
476                 <artifactId>maven-javadoc-plugin</artifactId>
477                 <version>3.1.0</version>
478                 <configuration>
479                     <author>false</author>
480                     <notimestamp>true</notimestamp>
481                     <quiet>true</quiet>
482                     <show>protected</show>
483                     <header>${project.name} ${project.version} API</header>
484                     <version>true</version>
485                     <locale>${javadoc.locale}</locale>
486                     <!-- for JDK11 javadoc -->
487                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
488                 </configuration>
489                 <reportSets>
490                     <reportSet>
491                         <reports>
492                             <report>javadoc</report>
493                         </reports>
494                     </reportSet>
495                 </reportSets>
496             </plugin>
497
498             <plugin>
499                 <groupId>org.apache.maven.plugins</groupId>
500                 <artifactId>maven-jxr-plugin</artifactId>
501                 <version>3.0.0</version>
502             </plugin>
503
504             <plugin>
505                 <groupId>org.apache.maven.plugins</groupId>
506                 <artifactId>maven-surefire-report-plugin</artifactId>
507                 <version>${surefire-plugin.version}</version>
508             </plugin>
509
510             <plugin>
511                 <groupId>org.jacoco</groupId>
512                 <artifactId>jacoco-maven-plugin</artifactId>
513                 <version>${jacoco-plugin.version}</version>
514                 <reportSets>
515                     <reportSet>
516                         <reports>
517                             <report>report</report>
518                         </reports>
519                     </reportSet>
520                 </reportSets>
521             </plugin>
522
523             <plugin>
524                 <groupId>org.apache.maven.plugins</groupId>
525                 <artifactId>maven-checkstyle-plugin</artifactId>
526                 <version>${checkstyle-plugin.version}</version>
527                 <reportSets>
528                     <reportSet>
529                         <reports>
530                             <report>checkstyle</report>
531                         </reports>
532                     </reportSet>
533                 </reportSets>
534             </plugin>
535
536             <plugin>
537                 <groupId>org.apache.maven.plugins</groupId>
538                 <artifactId>maven-pmd-plugin</artifactId>
539                 <version>${pmd-plugin.version}</version>
540                 <configuration>
541                     <rulesets>
542                         <ruleset>${project.basedir}/config/pmd/pmdrules.xml</ruleset>
543                     </rulesets>
544                 </configuration>
545                 <reportSets>
546                     <reportSet>
547                         <reports>
548                             <report>pmd</report>
549                             <report>cpd</report>
550                         </reports>
551                     </reportSet>
552                 </reportSets>
553             </plugin>
554
555             <plugin>
556                 <groupId>com.github.spotbugs</groupId>
557                 <artifactId>spotbugs-maven-plugin</artifactId>
558                 <version>${spotbugs-plugin.version}</version>
559             </plugin>
560
561         </plugins>
562
563     </reporting>
564
565     <profiles/>
566
567 </project>
568
569 <!-- EOF -->