poms

  • pom.xml parent
  • <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.my.android</groupId>
      <artifactId>myAndroidApp</artifactId>
        <version>1.0</version>
        <packaging>pom</packaging>
        <name>Android Apps</name>
      <description>Android apps</description>
      <url>http://www.wiebe-elsinga.com</url>
      <inceptionYear>2010</inceptionYear>
      <developers>
        <developer>
          <name>Wiebe Elsinga</name>
          <id>welsinga</id>
          <url>http://www.wiebe-elsinga.com</url>
          <roles>
            <role>Developer</role>
                    <role>Contributor</role>
                </roles>
        </developer>
      </developers>
      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>2.3.1</version>
          </dependency>
          <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android-test</artifactId>
            <version>2.3.1</version>
          </dependency>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
          </dependency>
        </dependencies>
      </dependencyManagement>
      <modules>
        <module>Android</module>
        <module>AndroidTest</module>
      </modules>
      <build>
            <pluginManagement>
                <plugins>
                    <plugin>
                        <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                        <artifactId>maven-android-plugin</artifactId>
                        <configuration>
                <sdk>
                  <platform>2.3.3</platform>
                </sdk>
                <emulator>
                  <avd>Device</avd>
                  <wait>2000</wait>
                </emulator>
                <deleteConflictingFiles>true</deleteConflictingFiles>
                <undeployBeforeDeploy>true</undeployBeforeDeploy>
              </configuration>
              <extensions>true</extensions>
                    </plugin>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <configuration>
                <source>1.5</source>
                <target>1.5</target>
              </configuration>
            </plugin>
                </plugins>
            </pluginManagement>
        </build>
    </project>
  • pom.xml Android project
  • <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>
      <parent>
        <groupId>com.my.android</groupId>
        <artifactId>myAndroidApp</artifactId>
        <version>1.0</version>
      </parent>
      <artifactId>Android</artifactId>
        <packaging>apk</packaging>
        <name>My Android App</name>
      <description>The first android app I made</description>
      <url>http://www.wiebe-elsinga.com</url>
      <inceptionYear>2010</inceptionYear>
      <developers>
        <developer>
          <name>Wiebe Elsinga</name>
          <id>welsinga</id>
          <url>http://www.wiebe-elsinga.com</url>
          <roles>
            <role>Developer</role>
                    <role>Contributor</role>
                </roles>
        </developer>
      </developers>
      <dependencies>
        <dependency>
          <groupId>com.google.android</groupId>
          <artifactId>android</artifactId>
          <scope>provided</scope>
        </dependency>
      </dependencies>
     
      <build>
        <defaultGoal>install</defaultGoal>
        <finalName>${project.artifactId}-${project.version}</finalName>
        <sourceDirectory>${project.basedir}/src</sourceDirectory>
        <plugins>
          <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>maven-android-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>deploy</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </project>
  • pom.xml AndroidTest project
  • <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>
      <parent>
        <groupId>com.my.android</groupId>
        <artifactId>myAndroidApp</artifactId>
        <version>1.0</version>
      </parent>
      <artifactId>AndroidTest</artifactId>
        <packaging>apk</packaging>
        <name>My Android Tesst App</name>
      <description>Testing my first android app</description>
      <url>http://www.wiebe-elsinga.com</url>
      <inceptionYear>2010</inceptionYear>
      <developers>
        <developer>
          <name>Wiebe Elsinga</name>
          <id>welsinga</id>
          <url>http://www.wiebe-elsinga.com</url>
          <roles>
            <role>Developer</role>
                    <role>Contributor</role>
                </roles>
        </developer>
      </developers>
      <dependencies>
          <dependency>
                <groupId>com.jayway.android.robotium</groupId>
                <artifactId>robotium-solo</artifactId>
                <version>2.2</version>
            </dependency>
        <dependency>
          <groupId>com.google.android</groupId>
          <artifactId>android</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.google.android</groupId>
          <artifactId>android-test</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.my.android</groupId>
          <artifactId>Android</artifactId>
          <version>${project.version}</version>
          <scope>compile</scope>
          <type>jar</type>
        </dependency>
      </dependencies>
      <build>
        <defaultGoal>install</defaultGoal>
        <finalName>${project.artifactId}-${project.version}</finalName>
        <sourceDirectory>${project.basedir}/src</sourceDirectory>
        <plugins>
          <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>maven-android-plugin</artifactId>
          </plugin>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </project>

    Leave a Reply

    *

    captcha *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.