OSDN Git Service

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