Created
December 11, 2012 07:33
-
-
Save rkistner/4256598 to your computer and use it in GitHub Desktop.
helloflashlight with manifest-update and mergeManifests (failing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>com.simpligility.android</groupId> | |
<artifactId>helloflashlight</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>apk</packaging> | |
<name>HelloFlashlight</name> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.android</groupId> | |
<artifactId>android</artifactId> | |
<version>1.6_r2</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<sourceDirectory>src</sourceDirectory> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>android-maven-plugin</artifactId> | |
<version>3.4.1</version> | |
<extensions>true</extensions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.6</version> | |
<executions> | |
<execution> | |
<id>copy-manifest</id> | |
<phase>initialize</phase> | |
<goals> | |
<goal>copy-resources</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>${project.build.directory}</outputDirectory> | |
<resources> | |
<resource> | |
<directory>${project.basedir}</directory> | |
<includes> | |
<include>AndroidManifest.xml</include> | |
</includes> | |
</resource> | |
</resources> | |
<overwrite>true</overwrite> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | |
<artifactId>android-maven-plugin</artifactId> | |
<configuration> | |
<sdk> | |
<!-- platform or api level (api level 4 = platform 1.6)--> | |
<platform>4</platform> | |
</sdk> | |
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile> | |
<manifest> | |
<!-- versionName defaults to project.version --> | |
<versionName /> | |
<versionCodeUpdateFromVersion>true</versionCodeUpdateFromVersion> | |
</manifest> | |
<mergeManifests>true</mergeManifests> | |
</configuration> | |
<executions> | |
<execution> | |
<id>update-manifest</id> | |
<phase>initialize</phase> | |
<goals> | |
<goal>manifest-update</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment