OSDN Git Service

[maven-release-plugin] prepare release v3.2
[restamp/Restamp-gui.git] / pom.xml
1 <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">
2   <modelVersion>4.0.0</modelVersion>
3   <groupId>osm.surveyor</groupId>
4   <artifactId>ReStamp-gui</artifactId>
5   <version>3.2</version>
6   <packaging>jar</packaging>
7   <scm>
8     <connection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/Restamp-gui.git</connection>
9     <url>http://surveyor.mydns.jp/gitbucket/yuu/Restamp-gui/wiki</url>
10     <developerConnection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/Restamp-gui.git</developerConnection>
11     <tag>v3.2</tag>
12   </scm>
13
14   <properties>
15     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16     <java.version>1.8</java.version>
17     <maven.compiler.source>${java.version}</maven.compiler.source>
18     <maven.compiler.target>${java.version}</maven.compiler.target>
19   </properties>
20     
21   <!-- プロジェクトの名前、ロゴ、URL(右上) -->
22   <name>ReStamp-gui</name>
23   <url>http://surveyor.mydns.jp/gitbucket/yuu/Restamp-gui/wiki</url>
24         
25   <repositories>
26     <repository>
27       <id>internal</id>
28       <name>Hayashi Repository</name>
29       <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
30       <releases>
31         <enabled>true</enabled>
32       </releases>
33       <snapshots>
34         <enabled>false</enabled>
35       </snapshots>
36     </repository>
37   </repositories>
38
39   <dependencies>
40     <dependency>
41       <groupId>osm.surveyor</groupId>
42       <artifactId>ReStamp</artifactId>
43       <version>3.3</version>
44     </dependency>
45     <dependency>
46       <groupId>org.apache.commons</groupId>
47       <artifactId>commons-imaging</artifactId>
48       <version>1.0-alpha1</version>
49       <type>jar</type>
50     </dependency>
51
52     <!-- for JUnit test -->
53     <dependency>
54       <groupId>org.hamcrest</groupId>
55       <artifactId>hamcrest-core</artifactId>
56       <version>2.2</version>
57       <scope>test</scope>
58       <type>jar</type>
59     </dependency>
60     <dependency>
61       <groupId>junit</groupId>
62       <artifactId>junit</artifactId>
63       <version>4.12</version>
64       <scope>test</scope>
65       <type>jar</type>
66     </dependency>
67     <dependency>
68       <groupId>commons-codec</groupId>
69       <artifactId>commons-codec</artifactId>
70       <version>1.14</version>
71       <scope>test</scope>
72     </dependency>
73   </dependencies>
74
75   <build>
76     <defaultGoal>install</defaultGoal>
77     
78     <plugins>
79       <!-- 実行可能jarファイル用のプラグイン -->
80       <plugin>
81           <artifactId>maven-assembly-plugin</artifactId>
82           <version>3.2.0</version>
83           <configuration>
84               <descriptorRefs>
85                   <!-- 依存するリソースをすべてjarに同梱する -->
86                   <descriptorRef>jar-with-dependencies</descriptorRef>
87               </descriptorRefs>
88               <archive>
89                   <manifest>
90                       <mainClass>osm.surveyor.matchtime.gui.ReStamp</mainClass>
91                   </manifest>
92               </archive>
93           </configuration>
94           <executions>
95               <execution>
96                   <id>make-assembly</id> <!-- this is used for inheritance merges -->
97                   <phase>package</phase> <!-- bind to the packaging phase -->
98                   <goals>
99                       <goal>single</goal>
100                   </goals>
101               </execution>
102           </executions>
103       </plugin>
104
105       <plugin>
106         <groupId>org.apache.maven.plugins</groupId>
107         <artifactId>maven-site-plugin</artifactId>
108         <version>3.7.1</version>
109       </plugin>
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       <!-- mvn release:prepare -->
134       <plugin>
135         <groupId>org.apache.maven.plugins</groupId>
136         <artifactId>maven-release-plugin</artifactId>
137         <version>2.5.3</version>
138         <configuration>
139           <releaseProfiles>install</releaseProfiles>
140           <tagNameFormat>v@{project.version}</tagNameFormat>
141         </configuration>
142       </plugin>
143
144     </plugins>
145   </build>
146   
147   <reporting>
148         <plugins>
149       <!--  UnitTest report to site -->
150       <plugin>
151         <groupId>org.apache.maven.plugins</groupId>
152         <artifactId>maven-surefire-report-plugin</artifactId>
153       </plugin>
154       <plugin>
155         <groupId>org.apache.maven.plugins</groupId>
156         <artifactId>maven-javadoc-plugin</artifactId>
157         <configuration>
158           <source>1.8</source>
159           <show>protected</show>
160           <encoding>UTF-8</encoding>
161           <docencoding>UTF-8</docencoding>
162           <charset>UTF-8</charset>
163         </configuration>
164       </plugin>
165       <plugin>
166         <groupId>org.codehaus.mojo</groupId>
167         <artifactId>cobertura-maven-plugin</artifactId>
168         <configuration>
169           <failOnViolation>true</failOnViolation>
170         </configuration>
171       </plugin>
172         </plugins>
173   </reporting>
174 </project>