Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Downloading and build the source from maven 3.2.2 using android-sdk latest ( API 20) #121

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Down load the source using svn checkout 
http://i-jetty.googlecode.com/svn/trunk/ i-jetty-read-only

2. go to the directory ../i-jetty and type mvn clean package
3. exception happens in the I-Jetty Android Application

Failed to execute goal 
com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.9.0-beta-5:g
enerate-sources (default-generate-sources) on project i-jetty: Execution 
default-generate-sources of goal 
com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.9.0-beta-5:
generate-sources failed: Could not find tool 'aapt'. Please provide a proper 
Android SDK directory path as configuration parameter <sdk><path>...</p
ath></sdk> in the plugin <configuration/>. As an alternative, you may add the 
parameter to commandline: -Dandroid.sdk.path=... or set environment variable 
ANDROID_HOME.

What is the expected output? What do you see instead?
 .apk file

What version of the product are you using? On what operating system?
latest check out for the source code of i-jetty 

Please provide any additional information below.

I have modified the parent pom and the i-jetty-ui pom to relfelct anndroid api 
level 20 which is the one which I got based on lastest android SDK.  Now as I 
can see the aapt.exe on window is located 
at ${ANDROID_HOME}/build-tools/20.0.0
I have not looked at the android maven plugin to see what path it looks for 


using the below plugin version :
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
          <artifactId>maven-android-plugin</artifactId>
          <version>2.9.0-beta-5</version>

and from the  exception  during the debug level 

 at com.jayway.maven.plugins.android.AndroidSdk.getPathForTool(AndroidSdk.java:164)
        at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:428)
        at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:141)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)

and the source code for the plugin does not look into the following possible 
path 

${ANDROID_HOME}/build-tools/20.0.0 


Another issue is when using the latest maven android plugin  version
 3.9.0-rc.2 which is the latest; you will get an issue of duplicate file in the class-path from jetty server; the file called "about.html" and it is inserted as a remote resource jar file during the jetty server build 

Regards,
Alan Mehio
London


Original issue reported on code.google.com by [email protected] on 23 Aug 2014 at 6:25

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant