Fixed maven build configuration
This commit is contained in:
parent
50c983cccd
commit
174d07effa
|
@ -39,11 +39,6 @@ ActionBarSherlock and ViewPagerIndicator have to be added as library projects. F
|
||||||
You can already build unsigned packages with maven, if you add annotations.jar from the Android SDK to your local maven repository. You don't have to do anything described in the 'Building with ant' section in order to build with maven.
|
You can already build unsigned packages with maven, if you add annotations.jar from the Android SDK to your local maven repository. You don't have to do anything described in the 'Building with ant' section in order to build with maven.
|
||||||
|
|
||||||
- Make sure the ANDROID_HOME variable is set to the location of your Android SDK installation
|
- Make sure the ANDROID_HOME variable is set to the location of your Android SDK installation
|
||||||
- Navigate from your Android SDK directory into tools/support
|
|
||||||
- Execute the following command:
|
|
||||||
<pre>
|
|
||||||
mvn install:install-file -Dfile=./annotations.jar -DgroupId=android.tools.support -DartifactId=annotations -Dversion=1.0 -Dpackaging=jar
|
|
||||||
</pre>
|
|
||||||
- In the root directory of this project, you can then execute the following command to build it:
|
- In the root directory of this project, you can then execute the following command to build it:
|
||||||
<pre>mvn clean package</pre>
|
<pre>mvn clean package</pre>
|
||||||
|
|
||||||
|
|
8
pom.xml
8
pom.xml
|
@ -39,7 +39,7 @@
|
||||||
<groupId>com.google.android</groupId>
|
<groupId>com.google.android</groupId>
|
||||||
<artifactId>android</artifactId>
|
<artifactId>android</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<version>4.0.1.2</version>
|
<version>4.1.1.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.actionbarsherlock</groupId>
|
<groupId>com.actionbarsherlock</groupId>
|
||||||
|
@ -54,9 +54,9 @@
|
||||||
<type>apklib</type>
|
<type>apklib</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>android.tools.support</groupId>
|
<groupId>com.google.android</groupId>
|
||||||
<artifactId>annotations</artifactId>
|
<artifactId>annotations</artifactId>
|
||||||
<version>1.0</version>
|
<version>4.1.1.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-io</groupId>
|
<groupId>commons-io</groupId>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<sdk>
|
<sdk>
|
||||||
<path>${env.ANDROID_HOME}</path>
|
<path>${env.ANDROID_HOME}</path>
|
||||||
<platform>14</platform>
|
<platform>17</platform>
|
||||||
</sdk>
|
</sdk>
|
||||||
</configuration>
|
</configuration>
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
|
|
Loading…
Reference in New Issue