Ticket #8269: pom.xml

File pom.xml, 7.3 KB (added by simon04, 13 years ago)
Line 
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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>de.openstreetmap</groupId>
6 <artifactId>josm</artifactId>
7 <packaging>jar</packaging>
8 <properties>
9 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
10 </properties>
11 <version>custom</version>
12 <name>JOSM</name>
13 <url>http://josm.openstreetmap.de/</url>
14 <scm>
15 <connection>scm:svn:https://josm.openstreetmap.de/svn/trunk</connection>
16 <url>https://josm.openstreetmap.de/svn/trunk</url>
17 </scm>
18 <build>
19 <directory>/tmp/josmtarget</directory>
20 <!--<finalName>josm-snapshot-${buildNumber}</finalName>-->
21 <sourceDirectory>src</sourceDirectory>
22 <testSourceDirectory>test</testSourceDirectory>
23 <resources>
24 <resource>
25 <directory>data</directory>
26 <targetPath>data</targetPath>
27 </resource>
28 <resource>
29 <directory>images</directory>
30 <targetPath>images</targetPath>
31 </resource>
32 <resource>
33 <directory>styles</directory>
34 <targetPath>styles</targetPath>
35 </resource>
36 <resource>
37 <directory>.</directory>
38 <includes>
39 <include>REVISION</include>
40 </includes>
41 <filtering>true</filtering>
42 <!--<targetPath>${project.build.directory}</targetPath>-->
43 </resource>
44 </resources>
45 <plugins>
46 <plugin>
47 <groupId>org.codehaus.mojo</groupId>
48 <artifactId>buildnumber-maven-plugin</artifactId>
49 <version>1.2</version>
50 <executions>
51 <execution>
52 <phase>validate</phase>
53 <goals>
54 <goal>create</goal>
55 </goals>
56 </execution>
57 </executions>
58 <configuration>
59 <timestampFormat>{0,date,yyyy-MM-dd HH:mm:ss}</timestampFormat>
60 <items>
61 <item>buildNumber</item>
62 </items>
63 <doCheck>false</doCheck>
64 <doUpdate>false</doUpdate>
65 </configuration>
66 </plugin>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-compiler-plugin</artifactId>
70 <version>3.0</version>
71 <configuration>
72 <source>1.6</source>
73 <target>1.6</target>
74 </configuration>
75 </plugin>
76 <plugin>
77 <groupId>org.codehaus.mojo</groupId>
78 <artifactId>exec-maven-plugin</artifactId>
79 <version>1.2.1</version>
80 <executions>
81 <execution>
82 <goals>
83 <goal>exec</goal>
84 </goals>
85 </execution>
86 </executions>
87 <configuration>
88 <workingDirectory>/tmp</workingDirectory>
89 <mainClass>JOSM</mainClass>
90 <arguments>
91 <argument>--set=expert=true</argument>
92 <argument>--set=remotecontrol.enabled=true</argument>
93 <argument>--set=debug.edt-checker.enable=false</argument>
94 </arguments>
95 <systemProperties>
96 <systemProperty>
97 <key>josm.home</key>
98 <value>/tmp/.josm/</value>
99 </systemProperty>
100 </systemProperties>
101 </configuration>
102 </plugin>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-jar-plugin</artifactId>
106 <version>2.4</version>
107 <configuration>
108 <archive>
109 <manifest>
110 <addClasspath>true</addClasspath>
111 <classpathPrefix>/</classpathPrefix>
112 <mainClass>JOSM</mainClass>
113 </manifest>
114 <manifestEntries>
115 <Main-Version>${buildNumber}</Main-Version>
116 <Main-Date>${timestamp}</Main-Date>
117 </manifestEntries>
118 </archive>
119 </configuration>
120 </plugin>
121 <!--<plugin>
122 <artifactId>maven-assembly-plugin</artifactId>
123 <configuration>
124 <descriptorRefs>
125 <descriptorRef>jar-with-dependencies</descriptorRef>
126 </descriptorRefs>
127 </configuration>
128 <executions>
129 <execution>
130 <phase>package</phase>
131 <goals>
132 <goal>single</goal>
133 </goals>
134 </execution>
135 </executions>
136 </plugin>-->
137 <plugin>
138 <artifactId>maven-dependency-plugin</artifactId>
139 <executions>
140 <execution>
141 <phase>install</phase>
142 <goals>
143 <goal>copy-dependencies</goal>
144 </goals>
145 <configuration>
146 <outputDirectory>${project.build.directory}/lib</outputDirectory>
147 </configuration>
148 </execution>
149 </executions>
150 </plugin>
151 </plugins>
152 </build>
153 <dependencies>
154 <!--
155 http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
156 (,1.0] x <= 1.0
157 1.0 "Soft" requirement on 1.0 (just a recommendation - helps select the correct version if it matches all ranges)
158 [1.0] Hard requirement on 1.0
159 [1.2,1.3] 1.2 <= x <= 1.3
160 [1.0,2.0) 1.0 <= x < 2.0
161 [1.5,) x >= 1.5
162 (,1.0],[1.2,) x <= 1.0 or x >= 1.2. Multiple sets are comma-separated
163 (,1.1),(1.1,) This excludes 1.1 if it is known not to work in combination with this library
164 -->
165 <dependency>
166 <groupId>junit</groupId>
167 <artifactId>junit</artifactId>
168 <version>4.7</version>
169 <scope>test</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.easytesting</groupId>
173 <artifactId>fest-reflect</artifactId>
174 <version>1.4</version>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>org.unitils</groupId>
179 <artifactId>unitils</artifactId>
180 <version>2.4</version>
181 <scope>test</scope>
182 </dependency>
183 </dependencies>
184</project>