【问题标题】:Instaling apk via maven通过maven安装apk
【发布时间】:2012-05-21 11:59:43
【问题描述】:

我想知道如何将 .apk 文件添加到我的 pom.xml 中,以便按顺序从 apk 文件安装应用程序,并在第二步中使用测试构建项目、午餐模拟器、安装将要测试的 apk 等,等等。现在第一个apk是手动安装的,但我需要安装那个apk whit maven,然后进入第二步。有没有其他人遇到过同样的问题?

【问题讨论】:

    标签: android unit-testing apk pom.xml android-maven-plugin


    【解决方案1】:

    好的,我自己解决了,这是 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>
    

    【讨论】:

      猜你喜欢
      • 2013-07-10
      • 1970-01-01
      • 2017-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多