OSDN Git Service

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