BigKarel / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

attach different apks to the project via classifiers #405

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
            <plugin>
                <groupId>com.jayway.maven.plugins.android.generation2</groupId>
                <artifactId>android-maven-plugin</artifactId>
                ...
                <executions>
                    <execution>
                        <id>prod</id>
                        <goals>
                            <goal>apk</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <classifier>prod</classifier>
                            <resourceOverlayDirectory>${project.basedir}/res-prod</resourceOverlayDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

What is the expected output?

When running "mvn install" the maven-install-plugin should output:
[INFO] Installing 
/Users/username/workspace/project/target/artifact-1.0-SNAPSHOT.apk to 
/Users/username/.m2/repository/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT
.apk
[INFO] Installing 
/Users/username/workspace/project/target/artifact-1.0-SNAPSHOT-prod.apk to 
/Users/username/.m2/repository/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT
-prod.apk

What do you see instead?

[INFO] Installing 
/Users/username/workspace/project/target/artifact-1.0-SNAPSHOT.apk to 
/Users/username/.m2/repository/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT
.apk
[INFO] Installing 
/Users/username/workspace/project/target/artifact-1.0-SNAPSHOT.apk to 
/Users/username/.m2/repository/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT
-prod.apk

Note: the second execution of android:apk doesn't add the "prod" classifier to 
the filename so it replaces the first generated apk. The same apk is installed 
for both classifier.

What version of maven-android-plugin are you using?
3.6.0

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"

Please provide any additional information below.

Original issue reported on code.google.com by benoit.schweblin@gmail.com on 14 Jul 2013 at 10:47

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:20