Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. mvn archetype:generate
  2. -DarchetypeArtifactId=android-quickstart
  3. -DarchetypeGroupId=de.akquinet.android.archetypes
  4. -DarchetypeVersion=1.0.11
  5. -DgroupId=your.company
  6. -DartifactId=my-android-application
  7.  
  8. <?xml version="1.0" encoding="UTF-8"?>
  9. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>android</groupId>
  13. <artifactId>app</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <packaging>apk</packaging>
  16. <name>app</name>
  17.  
  18. <properties>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <platform.version> 4.1.1.4
  21. </platform.version>
  22. <android.plugin.version>3.6.0</android.plugin.version>
  23. </properties>
  24.  
  25. <dependencies>
  26. <dependency>
  27. <groupId>com.google.android</groupId>
  28. <artifactId>android</artifactId>
  29. <version>${platform.version}</version>
  30. <scope>provided</scope>
  31. </dependency>
  32. </dependencies>
  33. <build>
  34. <finalName>${project.artifactId}</finalName>
  35. <pluginManagement>
  36. <plugins>
  37. <plugin>
  38. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  39. <artifactId>android-maven-plugin</artifactId>
  40. <version>${android.plugin.version}</version>
  41. <extensions>true</extensions>
  42. </plugin>
  43. </plugins>
  44. </pluginManagement>
  45. <plugins>
  46. <plugin>
  47. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  48. <artifactId>android-maven-plugin</artifactId>
  49. <configuration>
  50. <sdk>
  51. <platform>16</platform>
  52. </sdk>
  53. </configuration>
  54. </plugin>
  55. </plugins>
  56. </build>
  57. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement