Hi all.
I am having all sorts of issues with maven-android-plugin together with maven-proguard-plugin. I managed to sort out most of them, but I just can't get rid of this final one. And I just don't understand what's happening really. It works well if I call android:dex separately from proguard:proguard. For example, all is fine if I do: % mvn proguard:proguard % mvn android:dex android:apk The end result is a nicely packaged .apk file including the obfuscated classes. But if I do it this way, which is a simplification of the goals invoked by the package phase: % mvn proguard:proguard android:dex android:apk Then I get the below error. I am under the impression that the proguard goal might leave the environment in a not-so-good state, but I am not sure. And even if it does, what can I do about it, other than report the problem and hope for a fix. Has anybody seen this issue before? And if so, have you been able to solve it in one way or another? Any hint will be greatly appreciated. Tx. ..... [INFO] [android:dex] [INFO] C:\tools\android-sdk-windows-1.5_r3\platforms\android-1.5/tools/dx [--dex, --output=C:\sandboxes-rtc\ercs\team\eRCS-A\target\classes.dex, C:\sandboxes-rtc\ercs\team\eRCS-A\target\android-classes] [ERROR] [ERROR] trouble processing "java/awt/font/NumericShaper.class": [ERROR] [ERROR] Attempt to include a core VM class in something other than a core library. [ERROR] It is likely that you have attempted to include the core library from a desktop [ERROR] virtual machine into an application, which will most assuredly not work. If [ERROR] you really intend to build a core library -- which is only appropriate as [ERROR] part of creating a full virtual machine binary, as opposed to compiling an [ERROR] application -- then use the "--core-library" option to suppress this error [ERROR] message. If you go ahead and use "--core-library" but are in fact building [ERROR] an application, then please be aware that your build will still fail at some [ERROR] point; you will simply be denied the pleasure of reading this helpful error [ERROR] message. [ERROR] 1 error; aborting [DEBUG] ANDROID-040-000: Executed command: Commandline = cmd.exe /X /C "C:\tools\android-sdk-windows-1.5_r3\platforms\android-1.5\tools\dx --dex --output=C:\sandboxes-rtc\ercs\team \eRCS-A\target\classes.dex C:\sandboxes-rtc\ercs\team\eRCS-A\target\android-classes", Result = 1 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Embedded error: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "C:\tools\android-sdk-windows-1.5_r3\platforms\android-1.5\tools\dx --dex --output=C:\sandboxes-rtc\ercs\team\eRCS-A\target\classes.dex C:\sandboxes-rtc\ercs\team\eRCS-A\target\android-classes", Result = 1 [INFO] ------------------------------------------------------------------------ -- View this message in context: http://www.nabble.com/Issues-with-maven-android-plugin-with-maven-proguard-plugin-tp25530966p25530966.html Sent from the Maven - Users mailing list archive at Nabble.com.