java - Is it possible to add goals to a specific maven command? -
i want execute maven mvn android:instrument mvn test. possible? can me specify changes have pom?
<?xml version="1.0" encoding="utf-8"?> <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"> <modelversion>4.0.0</modelversion> <groupid>com.sample.projectfoundation</groupid> <artifactid>androidsdktest</artifactid> <version>1.0.0-snapshot</version> <packaging>apk</packaging> <name>androidsdktest</name> <dependencies> <dependency> <groupid>com.sample.projectfoundation</groupid> <artifactid>androidsdk</artifactid> <version>0.0.1-snapshot</version> </dependency> <dependency> <groupid>com.google.android</groupid> <artifactid>android</artifactid> <version>2.2.1</version> <scope>provided</scope> </dependency> <dependency> <groupid>com.google.android</groupid> <artifactid>android-test</artifactid> <version>2.3.1</version> <scope>provided</scope> </dependency> </dependencies> <build> <finalname>${project.artifactid}</finalname> <sourcedirectory>src</sourcedirectory> <pluginmanagement> <plugins> <plugin> <groupid>com.jayway.maven.plugins.android.generation2</groupid> <artifactid>android-maven-plugin</artifactid> <version>3.5.3</version> <extensions>true</extensions> </plugin> </plugins> </pluginmanagement> <plugins> <plugin> <groupid>com.jayway.maven.plugins.android.generation2</groupid> <artifactid>android-maven-plugin</artifactid> <configuration> <sdk> <!-- platform or api level (api level 4 = platform 1.6) --> <platform>19</platform> </sdk> <emulator> <avd>mydevice</avd> <!-- wait emulator starting (3 minutes) --> <wait>180000</wait> <options>-no-skin</options> </emulator> </configuration> </plugin> </plugins> </build> </project>
Comments
Post a Comment