1<?xml version="1.0" encoding="ISO-8859-1"?> 2<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"> 3 <modelVersion>4.0.0</modelVersion> 4 <parent> 5 <groupId>org.objenesis</groupId> 6 <artifactId>objenesis-parent</artifactId> 7 <version>2.0-SNAPSHOT</version> 8 </parent> 9 <artifactId>objenesis-tck-android</artifactId> 10 <name>Objenesis Android TCK</name> 11 <description>Objenesis' TCK built for Android devices</description> 12 <packaging>apk</packaging> 13 14 <dependencies> 15 <dependency> 16 <groupId>org.objenesis</groupId> 17 <artifactId>objenesis-tck</artifactId> 18 <version>${project.version}</version> 19 </dependency> 20 <dependency> 21 <groupId>com.google.android</groupId> 22 <artifactId>android</artifactId> 23 <version>1.5_r3</version> 24 <scope>provided</scope> 25 </dependency> 26 </dependencies> 27 <build> 28 <sourceDirectory>src</sourceDirectory> 29 30 <pluginManagement> 31 <plugins> 32 <plugin> 33 <groupId>com.jayway.maven.plugins.android.generation2</groupId> 34 <artifactId>android-maven-plugin</artifactId> 35 <version>3.5.0</version> 36 <extensions>true</extensions> 37 </plugin> 38 </plugins> 39 </pluginManagement> 40 <plugins> 41 <plugin> 42 <artifactId>maven-compiler-plugin</artifactId> 43 <configuration> 44 <source>1.5</source> 45 <target>1.5</target> 46 </configuration> 47 </plugin> 48 49 <plugin> 50 <groupId>com.jayway.maven.plugins.android.generation2</groupId> 51 <artifactId>android-maven-plugin</artifactId> 52 <configuration> 53 <sdk> 54 <platform>17</platform> 55 </sdk> 56 </configuration> 57 <extensions>true</extensions> 58 </plugin> 59 60 <plugin> 61 <groupId>org.codehaus.mojo</groupId> 62 <artifactId>exec-maven-plugin</artifactId> 63 <version>1.2.1</version> 64 <inherited>false</inherited> 65 <executions> 66 <execution> 67 <id>install</id> 68 <phase>integration-test</phase> 69 <goals> 70 <goal>exec</goal> 71 </goals> 72 <configuration> 73 <executable>adb</executable> 74 <arguments> 75 <argument>install</argument> 76 <argument>-r</argument> 77 <argument>${project.build.directory}\${project.build.finalName}.apk</argument> 78 </arguments> 79 </configuration> 80 </execution> 81 <execution> 82 <id>execute</id> 83 <phase>integration-test</phase> 84 <goals> 85 <goal>exec</goal> 86 </goals> 87 <configuration> 88 <executable>adb</executable> 89 <arguments> 90 <argument>shell</argument> 91 <argument>am</argument> 92 <argument>instrument</argument> 93 <argument>-w</argument> 94 <argument>org.objenesis.tck.android/.TckInstrumentation</argument> 95 </arguments> 96 </configuration> 97 </execution> 98 </executions> 99 </plugin> 100 </plugins> 101 </build> 102 103</project> 104