sajith4u / maven-android-plugin

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

Maven copies dependency (apklib) src, res AndroidManifest.xml into my project #371

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey there,

on sunday i moved from ant scripts to maven with my project. After some trouble 
with my apklib dependencys and eclipse i got it working fine (only can't run as 
android application from within eclipse, getting heap space error and eclipse 
wants to close).

yesterday i found that in some cases (seems a bit random - want to do more 
tests this evening), maven copys the src, res and AndroidManifest.xml from my 
apklib dependencies into my own project code. replaceing my AndroidManifest.xml 
and overwriting some of my xml files in res (those with the same name as in the 
apklibs)
command: mvn -X clean install android:deploy android:run

i used the quickstart archetype 
https://github.com/akquinet/android-archetypes#the-android-quickstart-archetype

i attach the pom, maybe something is wrong there (although is very minimal)

as already said, i plan to do some more tests this evening, and try to find 
something suspicious in maven output and post my research

Original issue reported on code.google.com by kujans...@gmail.com on 23 Apr 2013 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
got no time during the last week.

today i got time and until now (about 20 runs) no problem. keeping an eye 
open...

Original comment by kujans...@gmail.com on 30 Apr 2013 at 7:41

GoogleCodeExporter commented 9 years ago
after a long time not working on the project i got it again...

most of the time it says 

[INFO] --- android-maven-plugin:3.6.0:generate-sources 
(default-generate-sources) @ player ---
[DEBUG] Expanding: 
C:\Users\Dodge\.m2\repository\com\actionbarsherlock\actionbarsherlock\4.3.1\acti
onbarsherlock-4.3.1.apklib into 
E:\workspace\mlcdroid\target\unpack\apklibs\com.actionbarsherlock_actionbarsherl
ock_apklib_4.3.1
[DEBUG] expand complete
[DEBUG] Expanding: 
C:\Users\Dodge\.m2\repository\com\github\chrisbanes\pulltorefresh\library\2.1.1\
library-2.1.1.apklib into 
E:\workspace\mlcdroid\target\unpack\apklibs\com.github.chrisbanes.pulltorefresh_
library_apklib_2.1.1
[DEBUG] expand complete

but sometimes it goes

[INFO] --- android-maven-plugin:3.6.0:generate-sources 
(default-generate-sources) @ player ---
[DEBUG] Expanding: 
C:\Users\Dodge\.m2\repository\com\actionbarsherlock\actionbarsherlock\4.3.1\acti
onbarsherlock-4.3.1.apklib into null
[DEBUG] expand complete
[DEBUG] Expanding: 
C:\Users\Dodge\.m2\repository\com\github\chrisbanes\pulltorefresh\library\2.1.1\
library-2.1.1.apklib into 
E:\workspace\mlcdroid\target\unpack\apklibs\com.github.chrisbanes.pulltorefresh_
library_apklib_2.1.1
[DEBUG] expand complete

(see the first DEBUG line)
this happens for no reason, and extracts the actionbarsherlock into my project 
:(

Original comment by kujans...@gmail.com on 14 Jul 2013 at 7:07

GoogleCodeExporter commented 9 years ago
if you can give me some hits, on how to debug the plugin, i would try to locate 
the issue and possibly provide a fix :)

Original comment by kujans...@gmail.com on 15 Jul 2013 at 4:24

GoogleCodeExporter commented 9 years ago
i found that the error occurs when i have the tartet folder open in my explorer 
(Windows 8 x64 Pro)

the clean part in my command deletes the target folder and my explorer changes 
to the project directory, while the explorer is still chaning, maven goes to 
the expanding and trys to expand into null...

Original comment by kujans...@gmail.com on 15 Jul 2013 at 6:02

GoogleCodeExporter commented 9 years ago
I'm pretty sure that this is fixed in 3.9.0

Original comment by william....@xandar.com.au on 11 Mar 2014 at 12:46