OSDN Git Service

[maven-release-plugin] prepare for next development iteration
[restamp/restamp.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>osm.surveyor</groupId>
5   <artifactId>ReStamp</artifactId>
6   <version>3.9-SNAPSHOT</version>
7   <packaging>jar</packaging>
8   <scm>
9     <connection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/Restamp.git</connection>
10     <url>http://surveyor.mydns.jp/gitbucket/yuu/Restamp/wiki</url>
11     <developerConnection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/Restamp.git</developerConnection>
12     <tag>HEAD</tag>
13   </scm>
14
15   <!-- プロジェクトの名前、ロゴ、URL(右上) -->
16   <name>ReStamp</name>
17   <url>http://surveyor.mydns.jp/gitbucket/yuu/Restamp/wiki</url>
18
19   <licenses>
20     <license>
21       <name>MIT License</name>
22       <url>http://www.opensource.org/licenses/mit-license.php</url>
23     </license>
24   </licenses>
25   <developers>
26     <developer>
27       <name>Yuu Hayashi</name>
28       <email>hayashi.yuu@gmail.com</email>
29       <organization>surveyor</organization>
30       <organizationUrl>http://surveyor.mydns.jp/</organizationUrl>
31     </developer>
32   </developers>
33   
34   <properties>
35     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36     <java.version>1.8</java.version>
37     <maven.compiler.source>${java.version}</maven.compiler.source>
38     <maven.compiler.target>${java.version}</maven.compiler.target>
39   </properties>
40     
41   <!-- DEPLOY先の指定  mvn deploy -->
42   <distributionManagement>
43     <repository>
44       <id>surveyor.haya4</id>
45       <name>Internal Release Repository</name>
46       <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
47     </repository>
48     <snapshotRepository>
49       <id>surveyor.snapshots</id>
50       <name>Archiva Managed Snapshot Repository</name>
51       <url>http://surveyor.mydns.jp/archiva/repository/snapshots/</url>
52     </snapshotRepository>
53   </distributionManagement>
54
55   <dependencies>
56  
57     <!-- for JUnit test -->
58     <dependency>
59       <groupId>org.hamcrest</groupId>
60       <artifactId>hamcrest-core</artifactId>
61       <version>2.2</version>
62       <scope>test</scope>
63       <type>jar</type>
64     </dependency>
65     <dependency>
66       <groupId>junit</groupId>
67       <artifactId>junit</artifactId>
68       <version>4.12</version>
69       <scope>test</scope>
70       <type>jar</type>
71     </dependency>
72     <dependency>
73       <groupId>org.apache.commons</groupId>
74       <artifactId>commons-compress</artifactId>
75       <version>1.14</version>
76       <scope>test</scope>
77       <type>jar</type>
78     </dependency>
79     <dependency>
80       <groupId>commons-codec</groupId>
81       <artifactId>commons-codec</artifactId>
82       <version>1.14</version>
83       <scope>test</scope>
84     </dependency>
85     <dependency>
86       <groupId>org.jacoco</groupId>
87       <artifactId>org.jacoco.agent</artifactId>
88       <version>0.8.1</version>
89       <scope>test</scope>
90       <classifier>runtime</classifier>
91     </dependency>
92   </dependencies>
93
94   <build>
95     <defaultGoal>install</defaultGoal>
96     
97     <plugins>
98       <!-- mvn site -->
99       <plugin>
100         <groupId>org.apache.maven.plugins</groupId>
101         <artifactId>maven-site-plugin</artifactId>
102         <version>3.7.1</version>
103         <configuration>
104           <locales>ja</locales>
105           <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
106           <outputEncoding>${site.encoding}</outputEncoding>
107         </configuration>
108       </plugin>
109
110       <plugin>
111         <groupId>org.apache.maven.plugins</groupId>
112         <artifactId>maven-project-info-reports-plugin</artifactId>
113         <version>3.0.0</version>
114       </plugin>
115       <plugin>
116         <groupId>org.apache.maven.plugins</groupId>
117         <artifactId>maven-compiler-plugin</artifactId>
118         <version>3.8.1</version>
119         <configuration>
120           <source>${java.version}</source>
121           <target>${java.version}</target>
122         </configuration>
123       </plugin>
124       <plugin>
125         <groupId>org.apache.maven.plugins</groupId>
126         <artifactId>maven-resources-plugin</artifactId>
127         <version>3.1.0</version>
128         <configuration>
129           <encoding>UTF-8</encoding>
130         </configuration>
131       </plugin>
132       
133       <plugin>
134         <groupId>org.apache.maven.plugins</groupId>
135         <artifactId>maven-surefire-plugin</artifactId>
136         <version>3.0.0-M3</version>
137         <configuration>
138           <systemPropertyVariables>
139             <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
140           </systemPropertyVariables>
141           <!-- ↓これがないとスタックトレースが出ない -->
142           <trimStackTrace>false</trimStackTrace>
143         </configuration>
144       </plugin>
145       <plugin>
146         <groupId>org.jacoco</groupId>
147         <artifactId>jacoco-maven-plugin</artifactId>
148         <version>0.8.5</version>
149         <executions>
150           <execution>
151             <goals>
152               <goal>prepare-agent</goal>
153             </goals>
154           </execution>
155           <execution>
156             <id>default-report</id>
157             <phase>test</phase>
158             <goals>
159               <goal>report</goal>
160             </goals>
161           </execution>
162         </executions>
163       </plugin>
164             
165       <!-- mvn release:prepare -->
166       <plugin>
167         <groupId>org.apache.maven.plugins</groupId>
168         <artifactId>maven-release-plugin</artifactId>
169         <version>2.5.3</version>
170         <configuration>
171           <releaseProfiles>install</releaseProfiles>
172           <tagNameFormat>v@{project.version}</tagNameFormat>
173         </configuration>
174       </plugin>
175     </plugins>
176   </build>
177   
178   <reporting>
179         <plugins>
180       <!--  UnitTest report to site -->
181       <plugin>
182         <groupId>org.apache.maven.plugins</groupId>
183         <artifactId>maven-surefire-report-plugin</artifactId>
184       </plugin>
185       
186       <!--  Javadoc report to site -->
187       <plugin>
188         <groupId>org.apache.maven.plugins</groupId>
189         <artifactId>maven-javadoc-plugin</artifactId>
190         <configuration>
191           <source>1.8</source>
192           <show>protected</show>
193           <encoding>UTF-8</encoding>
194           <docencoding>UTF-8</docencoding>
195           <charset>UTF-8</charset>
196         </configuration>
197       </plugin>
198
199       <!--  Coverage report to site -->
200       <plugin>
201         <groupId>org.jacoco</groupId>
202         <artifactId>jacoco-maven-plugin</artifactId>
203         <version>0.8.5</version>
204         <reportSets>
205           <reportSet>
206             <reports>
207               <report>report</report>
208             </reports>
209           </reportSet>
210         </reportSets>
211       </plugin>
212     </plugins>
213     
214   </reporting>
215 </project>