kingdom578 / maven-android-plugin

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

aar generation with empty res folder fails #452

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a library project with an empty res directory (or a res directory 
with standard folders inside, but all of those empty)
2. Set packaging type to aar
3. mvn package

What is the expected output?
successful build

What do you see instead?
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:andr
oid-maven-plugin:3.8.2:aar (default-aar) on project microsoft-windowsazure-stora
ge-android-sdk: ArchiverException while creating .aar file. 
{mypath}\target\R.txt isn't
a file. -> [Help 1]
[ERROR]

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

What are the complete output lines of "mvn -version" on your machine?
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
2014-02-14T09:37:52-08:00)
Maven home: C:\Program Files (x86)\apache-maven-3.2.1
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files (x86)\Java\jdk1.7.0_51\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "x86", family: "windows"

Please provide any additional information below.
This structure works fine for apklibs - it looks like your aar requires a R.txt 
which it shouldn't because not all projects produce them.

Original issue reported on code.google.com by mleger...@gmail.com on 13 Mar 2014 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by william....@xandar.com.au on 13 Mar 2014 at 9:57

GoogleCodeExporter commented 9 years ago
Fixed in pull request 308

Original comment by william....@xandar.com.au on 14 Mar 2014 at 8:30