pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--
  2. IMPORTANT
  3. ==============================================
  4. This project maven configuration depends on configurations defined in user profile files.
  5. Please, if you still do not have created the maven profile file, create it like this:
  6. - %USER_HOME%/.m2/settings.xml:
  7. ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
  8. <settings>
  9. <profiles>
  10. <profile>
  11. <id>hostageUserConfig</id>
  12. <properties>
  13. <android.compatibility.version>19</android.compatibility.version>
  14. <android.version>4.4_r1</android.version>
  15. </properties>
  16. </profile>
  17. </profiles>
  18. <activeProfiles>
  19. <activeProfile>hostageUserConfig</activeProfile>
  20. </activeProfiles>
  21. </settings>
  22. ´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
  23. The important part here is to set the right version numbers in the defined properties. These version
  24. numbers are system-dependant and can't be downloaded from the maven repository, since they do not
  25. exist there.
  26. ==============================================
  27. -->
  28. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  29. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  30. <modelVersion>4.0.0</modelVersion>
  31. <groupId>de.tudarmstadt.informatik</groupId>
  32. <artifactId>hostage</artifactId>
  33. <version>2.0.0-SNAPSHOT</version>
  34. <packaging>apk</packaging>
  35. <name>HosTaGe</name>
  36. <dependencies>
  37. <dependency>
  38. <groupId>android</groupId>
  39. <artifactId>android</artifactId>
  40. <version>${android.version}</version>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>android.support</groupId>
  45. <artifactId>compatibility-v4</artifactId>
  46. <version>${android.compatibility.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.roboguice</groupId>
  50. <artifactId>roboguice</artifactId>
  51. <version>2.0</version>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <finalName>${project.artifactId}</finalName>
  56. <sourceDirectory>src</sourceDirectory>
  57. <pluginManagement>
  58. <plugins>
  59. <plugin>
  60. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  61. <artifactId>android-maven-plugin</artifactId>
  62. <version>3.8.0</version>
  63. <extensions>true</extensions>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.eclipse.m2e</groupId>
  67. <artifactId>lifecycle-mapping</artifactId>
  68. <version>1.0.0</version>
  69. <configuration>
  70. <lifecycleMappingMetadata>
  71. <pluginExecutions>
  72. <pluginExecution>
  73. <pluginExecutionFilter>
  74. <groupId>
  75. com.jayway.maven.plugins.android.generation2
  76. </groupId>
  77. <artifactId>
  78. android-maven-plugin
  79. </artifactId>
  80. <versionRange>
  81. [3.8.0,)
  82. </versionRange>
  83. <goals>
  84. <goal>consume-aar</goal>
  85. </goals>
  86. </pluginExecutionFilter>
  87. <action>
  88. <ignore></ignore>
  89. </action>
  90. </pluginExecution>
  91. </pluginExecutions>
  92. </lifecycleMappingMetadata>
  93. </configuration>
  94. </plugin>
  95. </plugins>
  96. </pluginManagement>
  97. <plugins>
  98. <plugin>
  99. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  100. <artifactId>android-maven-plugin</artifactId>
  101. <configuration>
  102. <sdk>
  103. <platform>19</platform>
  104. </sdk>
  105. </configuration>
  106. </plugin>
  107. </plugins>
  108. </build>
  109. </project>