pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <dependency>
  54. <groupId>com.nineoldandroids</groupId>
  55. <artifactId>library</artifactId>
  56. <version>2.4.0</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.fortysevendeg.android</groupId>
  60. <artifactId>swipelistview</artifactId>
  61. <version>1.0-SNAPSHOT</version>
  62. <type>apklib</type>
  63. </dependency>
  64. </dependencies>
  65. <build>
  66. <finalName>${project.artifactId}</finalName>
  67. <sourceDirectory>src</sourceDirectory>
  68. <pluginManagement>
  69. <plugins>
  70. <plugin>
  71. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  72. <artifactId>android-maven-plugin</artifactId>
  73. <version>3.8.0</version>
  74. <extensions>true</extensions>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.eclipse.m2e</groupId>
  78. <artifactId>lifecycle-mapping</artifactId>
  79. <version>1.0.0</version>
  80. <configuration>
  81. <lifecycleMappingMetadata>
  82. <pluginExecutions>
  83. <pluginExecution>
  84. <pluginExecutionFilter>
  85. <groupId>
  86. com.jayway.maven.plugins.android.generation2
  87. </groupId>
  88. <artifactId>
  89. android-maven-plugin
  90. </artifactId>
  91. <versionRange>
  92. [3.8.0,)
  93. </versionRange>
  94. <goals>
  95. <goal>consume-aar</goal>
  96. </goals>
  97. </pluginExecutionFilter>
  98. <action>
  99. <ignore></ignore>
  100. </action>
  101. </pluginExecution>
  102. </pluginExecutions>
  103. </lifecycleMappingMetadata>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </pluginManagement>
  108. <plugins>
  109. <plugin>
  110. <groupId>com.jayway.maven.plugins.android.generation2</groupId>
  111. <artifactId>android-maven-plugin</artifactId>
  112. <configuration>
  113. <sdk>
  114. <platform>19</platform>
  115. </sdk>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. <repositories>
  121. <repository>
  122. <id>sonatype</id>
  123. <url>https://oss.sonatype.org/content/groups/public/</url>
  124. <releases>
  125. <enabled>true</enabled>
  126. <updatePolicy>daily</updatePolicy>
  127. <checksumPolicy>fail</checksumPolicy>
  128. </releases>
  129. <snapshots>
  130. <enabled>true</enabled>
  131. <updatePolicy>always</updatePolicy>
  132. <checksumPolicy>ignore</checksumPolicy>
  133. </snapshots>
  134. </repository>
  135. </repositories>
  136. </project>