vamsidharG / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

Sample Locationapp install #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.when on launch mvn install on the top level Pom form 
Appcreator/sample/locationapp

[ERROR] Failed to execute goal on project locationapp: Could not resolve depende
ncies for project org.openmobster.location.app.android.app:locationapp:apk:1.0:
Could not find artifact android:maps:jar:2.0 at specified path C:\Users\TEMP\Doc
uments\android\adt-bundle-windows-x86_64-20130219\sdk\add-ons\addon-google_apis-
google_inc_-10\libs\maps.jar -> [Help 1]

but this Map.jar is in.

On windows 7 et mvn 3.0.5

Original issue reported on code.google.com by gestin.r...@gmail.com on 13 Mar 2013 at 2:02

GoogleCodeExporter commented 9 years ago
I double checked the maps.jar location in the SDK as well. Looks fine to me. I 
even ran the build and there were no issues.

Try this. In the top-level pom.xml replace,

addon-google_apis-google_inc_-10 with 
addon-google_apis-google_inc_-${version.android.api}

Not sure what difference its going to make, except that thats what the value 
should be for the maps dependency

Original comment by openmobs...@gmail.com on 14 Mar 2013 at 4:28

GoogleCodeExporter commented 9 years ago
I have already test that, I always have the same error.

Original comment by gestin.r...@gmail.com on 14 Mar 2013 at 4:36

GoogleCodeExporter commented 9 years ago
Maybe move the jar to some other simpler location and test it. like say 
c:\maps.jar

For some reason maven is not resolving the file location. Maybe try '/' instead 
of '\' in your location

I am just guessing wildly at this point ;)

Original comment by openmobs...@gmail.com on 14 Mar 2013 at 5:44

GoogleCodeExporter commented 9 years ago
it's ok when I have copy maps.jar in C:\

thx

Original comment by gestin.r...@gmail.com on 18 Mar 2013 at 2:32

GoogleCodeExporter commented 9 years ago
I had to make the following change to get the build to work:

svn diff
Index: dev-tools/sampleApps/locationapp/pom.xml
===================================================================
--- dev-tools/sampleApps/locationapp/pom.xml    (revision 12972)
+++ dev-tools/sampleApps/locationapp/pom.xml    (working copy)
@@ -121,7 +121,7 @@
                <artifactId>maps</artifactId>
                <version>2.0</version>
                <scope>system</scope>
-               <systemPath>${env.ANDROID_HOME}/add-ons/addon-google_apis-google_inc_-10/li
bs/maps.jar
+               <systemPath>${env.ANDROID_HOME}/add-ons/addon-google_apis-google-${version.
android.api}/libs/maps.jar
                </systemPath>
            </dependency>

@@ -185,4 +185,4 @@
            </plugins>
        </pluginManagement>
    </build>
-</project>
\ No newline at end of file
+</project>

Note not just the version handling change, but the base path is different as 
well (no _inc_).

Original comment by flakfi...@gmail.com on 10 Jun 2013 at 2:09

GoogleCodeExporter commented 9 years ago
Thanks for the feedback. I will incorporate this change in the codebase. Thanks 
again

Original comment by openmobs...@gmail.com on 10 Jun 2013 at 2:22

GoogleCodeExporter commented 9 years ago

Original comment by openmobs...@gmail.com on 10 Jun 2013 at 2:23

GoogleCodeExporter commented 9 years ago
The Location App is now deprecated. The build should work out of the box

Original comment by openmobs...@gmail.com on 12 Nov 2013 at 10:32

GoogleCodeExporter commented 9 years ago

Original comment by openmobs...@gmail.com on 12 Nov 2013 at 10:33