OSDN Git Service

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