OSDN Git Service

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