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.5</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 <properties> 15 <android.home>${env.ANDROID_HOME}</android.home> 16 </properties> 17 18 <dependencies> 19 <dependency> 20 <groupId>org.objenesis</groupId> 21 <artifactId>objenesis</artifactId> 22 <version>${project.version}</version> 23 <scope>provided</scope> 24 </dependency> 25 <dependency> 26 <groupId>${project.groupId}</groupId> 27 <artifactId>objenesis-tck</artifactId> 28 <version>${project.version}</version> 29 </dependency> 30 <dependency> 31 <groupId>com.google.android</groupId> 32 <artifactId>android</artifactId> 33 <version>4.1.1.4</version> 34 <scope>provided</scope> 35 </dependency> 36 <dependency> 37 <groupId>com.google.android</groupId> 38 <artifactId>android-test</artifactId> 39 <version>4.1.1.4</version> 40 <scope>provided</scope> 41 </dependency> 42 <dependency> 43 <groupId>junit</groupId> 44 <artifactId>junit</artifactId> 45 <exclusions> 46 <exclusion> 47 <groupId>org.hamcrest</groupId> 48 <artifactId>hamcrest-core</artifactId> 49 </exclusion> 50 </exclusions> 51 </dependency> 52 </dependencies> 53 <build> 54 <pluginManagement> 55 <plugins> 56 <plugin> 57 <groupId>com.simpligility.maven.plugins</groupId> 58 <artifactId>android-maven-plugin</artifactId> 59 <version>4.4.3</version> 60 <extensions>true</extensions> 61 <configuration> 62 <testFailSafe>false</testFailSafe> 63 <test> 64 <instrumentationPackage>org.objenesis.tck.android</instrumentationPackage> 65 <instrumentationRunner>android.test.InstrumentationTestRunner</instrumentationRunner> 66 </test> 67 </configuration> 68 </plugin> 69 </plugins> 70 </pluginManagement> 71 72 <plugins> 73 <plugin> 74 <artifactId>maven-compiler-plugin</artifactId> 75 <configuration> 76 <source>1.5</source> 77 <target>1.5</target> 78 </configuration> 79 </plugin> 80 81 <plugin> 82 <groupId>com.keyboardsamurais.maven</groupId> 83 <artifactId>maven-timestamp-plugin</artifactId> 84 </plugin> 85 <plugin> 86 <groupId>com.mycila.maven-license-plugin</groupId> 87 <artifactId>maven-license-plugin</artifactId> 88 </plugin> 89 <plugin> 90 <artifactId>maven-remote-resources-plugin</artifactId> 91 </plugin> 92 93 <plugin> 94 <groupId>com.simpligility.maven.plugins</groupId> 95 <artifactId>android-maven-plugin</artifactId> 96 <configuration> 97 <sdk> 98 <platform>25</platform> 99 </sdk> 100 </configuration> 101 <extensions>true</extensions> 102 </plugin> 103 104 <plugin> 105 <groupId>org.codehaus.mojo</groupId> 106 <artifactId>exec-maven-plugin</artifactId> 107 <inherited>false</inherited> 108 <executions> 109 <execution> 110 <id>execute</id> 111 <phase>integration-test</phase> 112 <goals> 113 <goal>exec</goal> 114 </goals> 115 <configuration> 116 <executable>${android.home}/platform-tools/adb</executable> 117 <arguments> 118 <argument>shell</argument> 119 <argument>am</argument> 120 <argument>instrument</argument> 121 <argument>-w</argument> 122 <argument>org.objenesis.tck.android/.TckInstrumentation</argument> 123 </arguments> 124 </configuration> 125 </execution> 126 </executions> 127 </plugin> 128 </plugins> 129 130 </build> 131 132 <profiles> 133 <profile> 134 <!-- To activate in IntelliJ. This will allow compilation because it seems IntelliJ can't retrieve 135 the objenesis classes shaded in the objenesis-tck jar --> 136 <id>intellij-specific</id> 137 <dependencies> 138 <dependency> 139 <groupId>${project.groupId}</groupId> 140 <artifactId>objenesis</artifactId> 141 <version>${project.version}</version> 142 </dependency> 143 </dependencies> 144 </profile> 145 </profiles> 146 </project> 147