Building with maven fails

I am new to Robospice by running mvn install in the sample project directory, I get 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 am using Maven 3.1.0 any idea what is wrong?

tries to import an eclipse project using m2eclipse results with no artifact-related error.

+4
source share
3 answers

If you remove the text β€œ-SNAPSHOT” from each dependency in the pom.xml file, it should start working. 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 that may be the best way (especially if you intend to use a lot of samples). You can download the library source code from the main Robospice branch and run mvn install (make sure your Android emulator works for unit tests). This will make the latest version of the snapshot available for maven in your local repo - if you do this, the original sample project will be launched, but you still need to update the version number in your pom.xml example to 1.4.7-SNAPSHOT - which is the current version snapshot from the main branch.

+2
source

Android Maven plugin not working with Maven 3.1.0 yet See problem 395

btw you can use Robospice 1.4.6 on a maven central server

To solve your problem, install maven 3.0.5

+1
source

Update the latest version of Android Maven Plugin (3.8.0) and upgrade your Maven to 3.1.1 and everything will work.

0
source

Source: https://habr.com/ru/post/1493843/


All Articles