Closed GoogleCodeExporter closed 9 years ago
this issue can be resolved by setting ANDROID_HOME env variable.
But after all this finally build failed at
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing
C:\Rupesh\Work\MEAP\openmobster-2.2-M3\openmobster-2.2-M3-android\AppCreator\sam
pleApps\crud\cloud\tar
get\crud-cloud-1.0.jar to
C:\Users\rupesh_jain\.m2\repository\org\crud\cloud\app\crud-cloud\1.0\crud-cloud
-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building crud
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[WARNING] POM for
'org.openmobster.core.mobileCloud.android.2_0:device-sdk:pom:2.2-SNAPSHOT:compil
e' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) android:android:jar:2.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=android -DartifactId=android -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=android -DartifactId=android -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file -
Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.crud.android.app:crud:apk:1.0
2) android:android:jar:2.0
----------
1 required artifact is missing.
for artifact:
Original comment by rupesh.j...@gmail.com
on 29 Jul 2011 at 2:44
Rupesh:
Here is what you need to do to resolve this. In the top-level pom.xml there is
a property named
<version.android.api>5</version.android.api>
This is used to resolve the android dependency this way:
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>2.0</version>
<scope>system</scope>
<systemPath>${env.ANDROID_HOME}/platforms/android-${version.android.api}/android.jar
</systemPath>
</dependency>
The system path value should resolve to a valid android.jar file location.
Chances are if you have newer version of Android SDK you don't have the
"android-5" folder.
You can change the <version.android.api>5</version.android.api> value to
something that exist locally for you. My guess would be
<version.android.api>8</version.android.api>
Original comment by openmobs...@gmail.com
on 1 Aug 2011 at 3:50
Thanks this worked..
I would suggest to change the documentation as 5
Original comment by rupesh.j...@gmail.com
on 2 Aug 2011 at 6:14
In the next release I have to do a lot of Android build related cleanup like
upgrading everything to API level 12. I will keep your suggestion in mind
Original comment by openmobs...@gmail.com
on 2 Aug 2011 at 3:31
Hi,
I have made the build of pushmail and now trying to figure out how to deploy
on the server which I already started using "run -c openmobster -b hostip"
command.
How to package , which files are reqd to be part of deploy folder so that
openmobster server recognizes the pushmail or any other application for
deployment.
The listed command " (cd cloud), (mvn
-PrunCloud?<http://code.google.com/p/openmobster/w/edit/PrunCloud>
integration-test)" starts some server locally but don;t know how to test
that as command "hostip:80/o" not working on that.
Rupesh
Original comment by rupesh.j...@gmail.com
on 3 Aug 2011 at 3:11
Original issue reported on code.google.com by
rupesh.j...@gmail.com
on 29 Jul 2011 at 9:39