forked from djp3/p2p4java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
290 lines (266 loc) · 10.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.uci.ics.luci.p2p4java</groupId>
<artifactId>p2p4java</artifactId>
<version>0.1-SNAPSHOT</version>
<name>p2p4java</name>
<organization>
<name>p2p4java</name>
<url>http://luci.ics.uci.edu/</url>
</organization>
<description>
An independent port of the JXSE/JXTA v2.7 peer-to-peer communication library. It has been forked so that it can be modified to work on the Android platform in addition to general java platforms. Developed by the LUCI lab at the University of California, Irvine. http://luci.ics.uci.edu
http://luci.ics.uci.edu
</description>
<scm>
<connection>scm:git:[email protected]:djp3/p2p4java.git</connection>
<developerConnection>scm:git:[email protected]:djp3/p2p4java.git</developerConnection>
<url>[email protected]:djp3/p2p4java.git</url>
</scm>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>mvn2</id>
<url>http://repo2.maven.org/maven2/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- Making our jar an OSGi bundle too by adding info in the MANIFEST -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.groupId}</Bundle-SymbolicName>
<Bundle-DocURL>${project.url}</Bundle-DocURL>
<Eclipse-BuddyPolicy>registered</Eclipse-BuddyPolicy>
<!-- Needs a bit more thought before enabling
<Bundle-Activator>
edu.uci.ics.luci.jxse.OSGi.Services.JxseOSGiNetworkManagerService
</Bundle-Activator>
-->
<Export-Package>
edu.uci.ics.luci.jxse.*;version=${project.version},
edu.uci.ics.luci.p2p4java.*;version=${project.version},
</Export-Package>
<Private-Package>
${project.groupId}.example.*,
${project.groupId}.util.internal.*,
</Private-Package>
<Import-Package>
*;resolution:=optional
</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Configuring JUnits / Surefire -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<forkMode>pertest</forkMode>
<!-- Don't remove skip, it is sometimes necessary to
disactivate tests for the Sonatype OSS release. -->
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<configuration>
<passphrase />
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.main</artifactId>
<version>2.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId> <!-- Use 'netty-all' for 4.0 or above -->
<version>3.7.0.Final</version>
<scope>compile</scope>
</dependency>
<!--
The following dependencies are not always needed in normal
p2p4java use,
so they are flagged as "optional". Include it manually in your
project's pom.xml if you want to use the parts of p2p4java that depend on
them.
-->
<dependency>
<groupId>jetty</groupId>
<artifactId>org.mortbay.jetty</artifactId>
<version>4.2.25</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.5.3.0_1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.1.118</version>
<optional>true</optional>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>2.5.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-legacy</artifactId>
<version>2.5.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.3</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
</configuration>
</plugin>
</plugins>
</reporting>
<profiles>
<!-- <profile>
<id>replace-if-jre-6</id>
<activation>
<jdk>[1.6,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>tweak-sources-for-java-6</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<replace file="src/main/java/net/jxta/impl/util/threads/ProxiedScheduledExecutorService.java">
<replacetoken><![CDATA[/*replace*/Collection<Callable<T>>]]></replacetoken>
<replacevalue><![CDATA[Collection<? extends Callable<T>>]]></replacevalue>
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>-->
<profile>
<id>replace-if-jre-5</id>
<activation>
<jdk>(,1.6)</jdk>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>tweak-sources-for-java-5</id>
<phase>process-sources</phase>
<configuration>
<tasks>
<replace file="src/main/java/net/jxta/impl/util/threads/ProxiedScheduledExecutorService.java">
<replacetoken><![CDATA[/*replace*/Collection<Callable<T>>]]></replacetoken>
<replacevalue><![CDATA[Collection<Callable<T>>]]></replacevalue>
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>