2012-05-21 41 views
1

我在想如何添加一个.apk文件到我的pom.xml文件中,以便从apk文件安装应用程序,并且在第二步用测试生成项目,午餐模拟器,安装apk这会正在测试等等。现在第一个apk是手动安装的,但是我需要安装那个apk白色的maven,然后去第二步。有没有其他人遇到同样的问题?Instiling apk via maven

回答

2

好吧,我解决它在我自己的,这是pom.xml中的一部分

<executions> 
    <execution> 
    <id>startEmulator</id> 
     <phase>initialize</phase> 
     <goals> 
     <goal>emulator-start</goal> 
     </goals> 
    </execution> 
    <execution> 
    <id>install-client</id> 
     <phase>initialize</phase> 
     <configuration> 
      <file>my.apk</file> 
     </configuration> 
     <goals> 
      <goal>deploy</goal> 
     </goals> 
    </execution> 
</executions>