2012-05-21 44 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>