OSDN Git Service

04b69ebd59fcdf54bc16e2e3099f81ad8ca0f0e2
[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>2.6</version>
332                 <configuration>
333                     <archiveBaseDirectory>.</archiveBaseDirectory>
334                     <descriptors>
335                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
336                     </descriptors>
337                 </configuration>
338             </plugin>
339
340             <plugin>
341                 <groupId>org.apache.maven.plugins</groupId>
342                 <artifactId>maven-checkstyle-plugin</artifactId>
343                 <version>2.15</version>
344                 <!-- config from property value -->
345             </plugin>
346
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-pmd-plugin</artifactId>
350                 <version>3.6</version>
351                 <configuration>
352                     <targetJdk>${maven.compiler.target}</targetJdk>
353                     <rulesets>
354                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
355                     </rulesets>
356                 </configuration>
357             </plugin>
358
359             <plugin>
360                 <groupId>com.github.spotbugs</groupId>
361                 <artifactId>spotbugs-maven-plugin</artifactId>
362                 <version>${spotbugs-plugin.version}</version>
363             </plugin>
364
365         </plugins>
366
367         <resources>
368
369             <resource>
370                 <directory>src/main/resources</directory>
371                 <filtering>true</filtering>
372                 <includes>
373                     <include>**/version.properties</include>
374                 </includes>
375             </resource>
376
377             <resource>
378                 <directory>src/main/resources</directory>
379                 <includes>
380                     <include>**/*.txt</include>
381
382                     <include>**/*.properties</include>
383
384                     <include>**/*.xml</include>
385                     <include>**/*.xsd</include>
386                     <include>**/*.dtd</include>
387
388                     <include>**/*.html</include>
389                     <include>**/*.htm</include>
390                     <include>**/*.css</include>
391
392                     <include>**/*.png</include>
393                     <include>**/*.gif</include>
394                     <include>**/*.jpeg</include>
395                     <include>**/*.jpg</include>
396                 </includes>
397                 <excludes>
398                     <exclude>**/version.properties</exclude>
399
400                     <exclude>**/.DS_Store</exclude>
401                     <exclude>**/__MACOSX</exclude>
402                     <exclude>**/Thumbs.db</exclude>
403                     <exclude>**/thumbs.db</exclude>
404                     <exclude>**/Desktop.ini</exclude>
405                     <exclude>**/desktop.ini</exclude>
406                     <exclude>**/core</exclude>
407                 </excludes>
408             </resource>
409
410         </resources>
411
412     </build>
413
414     <reporting>
415
416         <plugins>
417
418             <plugin>
419                 <groupId>org.apache.maven.plugins</groupId>
420                 <artifactId>maven-project-info-reports-plugin</artifactId>
421                 <version>3.0.0</version>
422                 <configuration>
423                     <linkOnly>true</linkOnly>
424                     <offline>true</offline>
425                 </configuration>
426                 <reportSets>
427                     <reportSet>
428                         <reports>
429                             <report>index</report>
430                             <report>summary</report>
431                             <report>licenses</report>
432                             <report>dependency-info</report>
433                             <report>dependencies</report>
434                             <report>dependency-convergence</report>
435                             <report>plugins</report>
436                             <report>plugin-management</report>
437                             <report>team</report>
438                             <report>issue-management</report>
439                             <report>scm</report>
440 <!--
441                             <report>dependency-management</report>
442                             <report>distribution-management</report>
443                             <report>ci-management</report>
444                             <report>mailing-lists</report>
445                             <report>modules</report>
446 -->
447                         </reports>
448                     </reportSet>
449                 </reportSets>
450             </plugin>
451
452             <plugin>
453                 <groupId>org.apache.maven.plugins</groupId>
454                 <artifactId>maven-javadoc-plugin</artifactId>
455                 <version>3.1.0</version>
456                 <configuration>
457                     <author>false</author>
458                     <notimestamp>true</notimestamp>
459                     <quiet>true</quiet>
460                     <show>protected</show>
461                     <header>${project.name} ${project.version} API</header>
462                     <version>true</version>
463                     <locale>${javadoc.locale}</locale>
464                     <!-- for JDK11 javadoc -->
465                     <additionalJOption>-J-Duser.language=${javadoc.locale}</additionalJOption>
466                 </configuration>
467                 <reportSets>
468                     <reportSet>
469                         <reports>
470                             <report>javadoc</report>
471                         </reports>
472                     </reportSet>
473                 </reportSets>
474             </plugin>
475
476             <plugin>
477                 <groupId>org.apache.maven.plugins</groupId>
478                 <artifactId>maven-jxr-plugin</artifactId>
479                 <version>3.0.0</version>
480             </plugin>
481
482             <plugin>
483                 <groupId>org.apache.maven.plugins</groupId>
484                 <artifactId>maven-surefire-report-plugin</artifactId>
485                 <version>${surefire-plugin.version}</version>
486             </plugin>
487
488             <plugin>
489                 <groupId>org.jacoco</groupId>
490                 <artifactId>jacoco-maven-plugin</artifactId>
491                 <version>${jacoco-plugin.version}</version>
492                 <reportSets>
493                     <reportSet>
494                         <reports>
495                             <report>report</report>
496                         </reports>
497                     </reportSet>
498                 </reportSets>
499             </plugin>
500
501             <plugin>
502                 <groupId>org.apache.maven.plugins</groupId>
503                 <artifactId>maven-checkstyle-plugin</artifactId>
504                 <version>2.15</version>
505                 <configuration>
506                     <skip>false</skip>
507                     <!-- config from property value -->
508                 </configuration>
509                 <reportSets>
510                     <reportSet>
511                         <reports>
512                             <report>checkstyle</report>
513                         </reports>
514                     </reportSet>
515                 </reportSets>
516             </plugin>
517
518             <plugin>
519                 <groupId>org.apache.maven.plugins</groupId>
520                 <artifactId>maven-pmd-plugin</artifactId>
521                 <version>3.6</version>
522                 <configuration>
523                     <skip>false</skip>
524                     <targetJdk>${maven.compiler.target}</targetJdk>
525                     <rulesets>
526                         <ruleset>${project.mainconf}/pmdrules.xml</ruleset>
527                     </rulesets>
528                 </configuration>
529                 <reportSets>
530                     <reportSet>
531                         <reports>
532                             <report>pmd</report>
533                             <report>cpd</report>
534                         </reports>
535                     </reportSet>
536                 </reportSets>
537             </plugin>
538
539             <plugin>
540                 <groupId>com.github.spotbugs</groupId>
541                 <artifactId>spotbugs-maven-plugin</artifactId>
542                 <version>${spotbugs-plugin.version}</version>
543             </plugin>
544
545         </plugins>
546
547     </reporting>
548
549     <profiles/>
550
551 </project>
552
553 <!-- EOF -->