fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Problem in running "mvn android: deploy" #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I run this command in terminal I get the following error:

"[INFO] Scanning for projects ...
Downloading:
Downloading:
Downloaded: (21 at KB 19.0 KB / sec)
Downloading:
Downloading:
Downloaded: (209 KB at 120.2 KB / sec)
[INFO]
[INFO] ----------------------------------------------- -------------------------
[INFO] Building Android PlayN Showcase 1.0-SNAPSHOT
[INFO] ----------------------------------------------- -------------------------
[WARNING] POM for The com.googlecode.playn: playn-showcase-core: jar 
:1.0-SNAPSHOT is missing, the dependency information available
[INFO] ----------------------------------------------- -------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------- -------------------------
[INFO] Total time: 5.742s
[INFO] Finished at: Wed Jan 18 17:39:38 EST 2012
[INFO] Final Memory: 6M/81M
[INFO] ----------------------------------------------- -------------------------
[ERROR] Failed to execute goal-playn showcase on project-android: Could not 
resolve dependencies for project com.googlecode.playn: playn-showcase-android: 
apk :1.0-SNAPSHOT: Failure to find com.googlecode.playn: playn- showcase-core: 
jar :1.0-SNAPSHOT in http://forplay.googlecode.com/svn/mavenrepo was cached in 
the local repository, resolution will not be until reattempted of the update 
interval has elapsed ForPlay legacy-updates or are forced - > [1 Help]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the-e 
switch.
[ERROR] Maven Re-run using the-X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the Possible errors and solutions, please 
read The Following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I've been looking in the forums and it seems that something has changed in 
android, can anyone help me?
I'm using MacOS a lion ...

Original issue reported on code.google.com by rick....@gmail.com on 18 Jan 2012 at 9:15

GoogleCodeExporter commented 9 years ago
I am getting this error on Windows with my own Maven generated project. Haven't 
tested with showcase. Haven't been able to get Maven & Android working nicely 
inside eclipse either.

Original comment by danielmg...@gmail.com on 3 Feb 2012 at 12:07

GoogleCodeExporter commented 9 years ago
I think this error is due to our ignorance about Maven. I have yet to find the 
missing piece that solves the problem, but the error message changes if you go 
into the \core directory and type 'mvn install'. Perhaps we have to install all 
snapshot dependencies? Anyways, that's enough for today....

Original comment by danielmg...@gmail.com on 3 Feb 2012 at 12:32

GoogleCodeExporter commented 9 years ago
You're doing something wrong. Do you actually have a space between "android: " 
and "deploy". That will cause problems. Otherwise you do not need to "mvn 
install" your game before deploying to Android. You just have to ensure that 
you follow the instructions in the Getting Started guide correctly:

cd examples-playn/showcase
mvn clean package
cd android
mvn android:deploy

When running 'package' at the top-level of the showcase project, it will 
properly build all of the submodules, including android, and will be able to 
find showcase-core without it being installed in your local Maven repository. 
Then when you run "mvn android:deploy" in the android submodule, it will simply 
deploy the already built APK file to your device.

Original comment by samskiv...@gmail.com on 3 Feb 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Hi Sam
Thanx for your advice to "mvn clean package"... it brought up more explicit 
errors which allowed me to configure the android sdk in the maven pom.xml

I don't know why this error didn't output when running "mvn android:deploy"... 
I didn't have a space between the colon, but the output was different and never 
mentioned setting up the sdk.

I knew that the error was because of a lack of knowledge of Maven, but I 
appreciate you taking the time to answer the issue.

As for your citing instruction, I followed brief at the top of :
http://code.google.com/p/playn/wiki/AndroidPorts

It only mentions building from the command line, and the only code mentioned is 
"mvn android:deploy", which is how I got here. I've been working on my app in 
java and gwt mode only, so it's been a long time since I looked at the "Getting 
Started Guide". 

Perhaps an instruction could be added to the AndroidPorts page in the brief at 
the top that mentions looking at the "Getting Started Guide" for details on how 
to compile. Thanx.

Original comment by danielmg...@gmail.com on 5 Feb 2012 at 3:50

GoogleCodeExporter commented 9 years ago
I still get this error even after setting the sdk in settings.xml. What else 
could I do?

Original comment by marnel.e...@gmail.com on 10 Feb 2012 at 9:35

GoogleCodeExporter commented 9 years ago
I don't know why but this resolved this issue for me:
mvn eclipse:eclipse

Original comment by n.bello...@googlemail.com on 24 Apr 2012 at 12:19