Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mvn archetype:generate
- -DarchetypeArtifactId=android-quickstart
- -DarchetypeGroupId=de.akquinet.android.archetypes
- -DarchetypeVersion=1.0.11
- -DgroupId=your.company
- -DartifactId=my-android-application
- <?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>android</groupId>
- <artifactId>app</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>apk</packaging>
- <name>app</name>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <platform.version> 4.1.1.4
- </platform.version>
- <android.plugin.version>3.6.0</android.plugin.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.google.android</groupId>
- <artifactId>android</artifactId>
- <version>${platform.version}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>com.jayway.maven.plugins.android.generation2</groupId>
- <artifactId>android-maven-plugin</artifactId>
- <version>${android.plugin.version}</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>16</platform>
- </sdk>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement