Reputation: 893
I'm new to Robospice, running mvn install
in sample project's directory gives me the following error:
[ERROR] Failed to execute goal on project robospice-sample-ormlite-content-provider:
Could not resolve dependencies for project com.octo.android.robospice:robospice-sample-ormlite-content-provider:apk:1.0.0-SNAPSHOT:
The following artifacts could not be resolved:
com.octo.android.robospice:robospice-ormlite-content-provider:jar:1.4.5-SNAPSHOT,
com.octo.android.robospice:robospice-spring-android:jar:1.4.5-SNAPSHOT,
com.tojc.ormlite.android:ormlite-content-provider-compiler:jar:1.0.0-SNAPSHOT:
Could not find artifact com.octo.android.robospice:robospice-ormlite-content
provider:jar:1.4.5-SNAPSHOT -> [Help 1]
I'm using Maven 3.1.0 any idea what's wrong?
trying to import project to eclipse via m2eclipse results with error related to artifact missing.
Upvotes: 3
Views: 741
Reputation: 29912
Upgrade to the latest version of the Android Maven Plugin (3.8.0) and upgrade your Maven to 3.1.1 and all will work.
Upvotes: 0
Reputation: 571
If you remove the "-SNAPSHOT" text from each dependency in the pom.xml file, it should start to work. The SNAPSHOT dependencies are not available in any public repo.
<robospice.ormlite.content.provider.version>1.4.5</robospice.ormlite.content.provider.version>
<robospice.spring.android.version>1.4.5</robospice.spring.android.version>
<ormlite.content.provider.version>1.0.0</ormlite.content.provider.version>
You can find all versions available in this public repo.
EDIT: There is another option, which may actually be the better way to go (especially if you are going to be using a lot of samples). You could download the library source code from the Robospice master branch, and run mvn install (make sure your android emulator is running for the unit tests). This will make the latest snapshot version available to maven in your local repo - if you do this the original sample project would run, BUT you will still need to update the version number in your sample pom.xml to 1.4.7-SNAPSHOT - which is the current version of the snapshot from master branch.
Upvotes: 2