1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <project 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 | <parent>
|
---|
5 | <groupId>org.mortbay.ijetty</groupId>
|
---|
6 | <artifactId>ijetty-parent</artifactId>
|
---|
7 | <version>3.1</version>
|
---|
8 | </parent>
|
---|
9 | <modelVersion>4.0.0</modelVersion>
|
---|
10 | <artifactId>i-jetty</artifactId>
|
---|
11 | <version>3.1</version>
|
---|
12 | <packaging>apk</packaging>
|
---|
13 | <name>I-Jetty :: Android Application</name>
|
---|
14 | <description>Jetty on Android</description>
|
---|
15 | <properties>
|
---|
16 | <dep.classes.dir>${project.build.directory}/dependency-classes</dep.classes.dir>
|
---|
17 | <war.classes.dir>${project.build.directory}/included-wars</war.classes.dir>
|
---|
18 | </properties>
|
---|
19 | <dependencies>
|
---|
20 | <dependency>
|
---|
21 | <groupId>com.google.android</groupId>
|
---|
22 | <artifactId>android</artifactId>
|
---|
23 | <version>${android.version}</version>
|
---|
24 | <scope>provided</scope>
|
---|
25 | </dependency>
|
---|
26 | <dependency>
|
---|
27 | <groupId>javax.servlet</groupId>
|
---|
28 | <artifactId>servlet-api</artifactId>
|
---|
29 | <version>2.5</version>
|
---|
30 | </dependency>
|
---|
31 | <!-- dependency>
|
---|
32 | <groupId>org.eclipse.jetty</groupId>
|
---|
33 | <artifactId>jetty-deploy</artifactId>
|
---|
34 | <type>jar</type>
|
---|
35 | <version>${jetty.version}</version>
|
---|
36 | <scope>provided</scope>
|
---|
37 | </dependency -->
|
---|
38 | <dependency>
|
---|
39 | <groupId>org.eclipse.jetty</groupId>
|
---|
40 | <artifactId>jetty-client</artifactId>
|
---|
41 | <type>jar</type>
|
---|
42 | <version>${jetty.version}</version>
|
---|
43 | <exclusions>
|
---|
44 | </exclusions>
|
---|
45 | </dependency>
|
---|
46 | <dependency>
|
---|
47 | <groupId>org.mortbay.ijetty</groupId>
|
---|
48 | <artifactId>i-jetty-server</artifactId>
|
---|
49 | <type>jar</type>
|
---|
50 | <version>${project.version}</version>
|
---|
51 | <exclusions>
|
---|
52 | </exclusions>
|
---|
53 | </dependency>
|
---|
54 | </dependencies>
|
---|
55 | <build>
|
---|
56 | <sourceDirectory>src</sourceDirectory>
|
---|
57 | <plugins>
|
---|
58 | <plugin>
|
---|
59 | <groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
---|
60 | <artifactId>android-maven-plugin</artifactId>
|
---|
61 | <version>3.3.2</version>
|
---|
62 | <extensions>true</extensions>
|
---|
63 | <configuration>
|
---|
64 | <sdk>
|
---|
65 | <platform>4</platform>
|
---|
66 | </sdk>
|
---|
67 | <deleteConflictingFiles>true</deleteConflictingFiles>
|
---|
68 | <extractDuplicates>true</extractDuplicates>
|
---|
69 | <undeployBeforeDeploy>true</undeployBeforeDeploy>
|
---|
70 | </configuration>
|
---|
71 | <executions>
|
---|
72 | <execution>
|
---|
73 | <id>alignApk</id>
|
---|
74 | <phase>package</phase>
|
---|
75 | <goals>
|
---|
76 | <goal>zipalign</goal>
|
---|
77 | </goals>
|
---|
78 | </execution>
|
---|
79 | </executions>
|
---|
80 | </plugin>
|
---|
81 | </plugins>
|
---|
82 | </build>
|
---|
83 | <profiles>
|
---|
84 | <profile>
|
---|
85 | <id>sign</id>
|
---|
86 | <build>
|
---|
87 | <plugins>
|
---|
88 | <plugin>
|
---|
89 | <groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
---|
90 | <artifactId>maven-android-plugin</artifactId>
|
---|
91 | <configuration>
|
---|
92 | <sign>
|
---|
93 | <debug>false</debug>
|
---|
94 | </sign>
|
---|
95 | </configuration>
|
---|
96 | </plugin>
|
---|
97 | </plugins>
|
---|
98 | </build>
|
---|
99 | </profile>
|
---|
100 | </profiles>
|
---|
101 | </project>
|
---|