-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
122 lines (105 loc) · 4.67 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
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<!--
$ANDROID_HOME auf den sdk path setzen
$JAVA_HOME setzen
$M2_HOME auf das ausgepackte maven2 setzen
mvn -o install:install-file -DgroupId=android -DartifactId=android -Dversion=1.5_r3 -Dpackaging=jar -Dfile=$ANDROID_HOME/platforms/android-3/android.jar
mvn -o install:install-file -DgroupId=android -DartifactId=android -Dversion=1.6_r2 -Dpackaging=jar -Dfile=$ANDROID_HOME/platforms/android-4/android.jar
mvn -o install:install-file -DgroupId=android -DartifactId=android -Dversion=2.0.1_r1 -Dpackaging=jar -Dfile=$ANDROID_HOME/platforms/android-6/android.jar
mvn -o install:install-file -DgroupId=android -DartifactId=android -Dversion=2.1_r1 -Dpackaging=jar -Dfile=$ANDROID_HOME/platforms/android-7/android.jar
Jetzt noch das RESTProvider-Artefact aus ./lib installieren:
curl http://github.com/novoda/RESTProvider/raw/master/RESTProvider/pom.xml > rest.pom
mvn -o install:install-file -DgroupId=novoda.rest -DartifactId=RESTProvider -Dversion=0.0.1-SNAPSHOT -Dpackaging=jar -Dfile=./lib/RESTProvider-0.0.1-SNAPSHOT.jar -DpomFile=rest.pom
noch ein tip:
- ab dem zweiten build, wenn alle dependencies da sind macht -o das bauen u.U. viel schneller
- ggf. javaOpts="-Xmx384M" in $ANDROID_HOME/platform-4/tools/dx setzen, wenn out of memory fehler kommen
-->
<modelVersion>4.0.0</modelVersion>
<groupId>org.telekommunisten.dialstation</groupId>
<artifactId>dialstation</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>apk</packaging>
<name>Dialstation App for Android</name>
<dependencies>
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<!--<version>2.0.1_r1</version>-->
<version>1.6_r2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>novoda.rest</groupId>
<artifactId>RESTProvider</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.mockito</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
<exclusion>
<groupId>maven</groupId>
<artifactId>dom4j</artifactId>
</exclusion>
<exclusion>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<finalName>${artifactId}</finalName>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<configuration>
<sdk>
<path>${env.ANDROID_HOME}</path>
<platform>4</platform>
</sdk>
<deleteConflictingFiles>true</deleteConflictingFiles>
</configuration>
<extensions>true</extensions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- ProGuard -->
<!--
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>proguard</goal>
</goals>
</execution>
</executions>
<configuration>
<includeDependency>false</includeDependency>
<injar>${project.build.finalName}.jar</injar>
<outjar>${project.build.finalName}-small.jar</outjar>
<proguardInclude>${basedir}/proguard.conf</proguardInclude>
</configuration>
</plugin>
-->
</plugins>
</build>
</project>