OSDN Git Service

MAVEN構成
[importpicture/importpicture.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>AdjustTime</groupId>
4     <artifactId>AdjustTime</artifactId>
5     <version>3.1.1-SNAPSHOT</version>
6     
7     <properties>
8         <!-- configurations -->
9         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10         <maven.compiler.source>1.8</maven.compiler.source>
11         <maven.compiler.target>1.8</maven.compiler.target>
12         
13         <!-- dependency versions -->
14         <junit.version>4.12</junit.version>
15         <hamcrest.version>1.3</hamcrest.version>
16     </properties>
17   
18     <dependencies>
19         <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-compress -->
20         <dependency>
21             <groupId>org.apache.commons</groupId>
22             <artifactId>commons-compress</artifactId>
23             <version>1.14</version>
24         </dependency>
25
26         <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-imaging -->
27         <dependency>
28             <groupId>org.apache.commons</groupId>
29             <artifactId>commons-imaging</artifactId>
30             <version>1.0-alpha1</version>
31         </dependency>
32
33         <!-- JUnit 4 -->
34         <dependency>
35             <groupId>junit</groupId>
36             <artifactId>junit</artifactId>
37             <version>${junit.version}</version>
38             <scope>test</scope>
39         </dependency>
40         
41         <dependency>
42             <groupId>org.hamcrest</groupId>
43             <artifactId>hamcrest-library</artifactId>
44             <version>${hamcrest.version}</version>
45             <scope>test</scope>
46         </dependency>
47     </dependencies>
48
49     <build>
50         <plugins>
51             <!-- 実行可能jarファイル用のプラグイン -->
52             <plugin>
53                 <artifactId>maven-assembly-plugin</artifactId>
54                 <version>3.2.0</version>
55                 <configuration>
56                     <descriptorRefs>
57                         <!-- 依存するリソースをすべてjarに同梱する -->
58                         <descriptorRef>jar-with-dependencies</descriptorRef>
59                     </descriptorRefs>
60                     <archive>
61                         <manifest>
62                             <mainClass>osm.jp.gpx.matchtime.gui.AdjustTime</mainClass>
63                         </manifest>
64                     </archive>
65                 </configuration>
66                 <executions>
67                     <execution>
68                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
69                         <phase>package</phase> <!-- bind to the packaging phase -->
70                         <goals>
71                             <goal>single</goal>
72                         </goals>
73                     </execution>
74                 </executions>
75             </plugin>
76         </plugins>
77     </build>    
78 </project>