OSDN Git Service

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