2014-02-18 1 views
1
을 구축하는 데 실패

프로젝트를 빌드 할 수없는 robospice-샘플 ormlite - 콘텐츠 제공자 나는 받는다는 사용샘플 robospice 샘플-ormlite - 콘텐츠 제공자 Robospice

[ERROR] Failed to execute goal on project robospice-sample-ormlite-content-provi 
der: Could not resolve dependencies for project com.octo.android.robospice:robos 
pice-sample-ormlite-content-provider:apk:1.0.0-SNAPSHOT: Could not find artifact 
com.octo.android.robospice:robospice-spring-android:jar:1.4.6-SNAPSHOT -> [Help 
1] 

내가 함께 2 시간 이상 노력을 모든 솔루션은 온라인에서 행운을 찾았습니다. 어느 누구도 이클립스 프로젝트를 준비하고 제공 할 수 있습니까?

감사합니다.

편집 2 : 내가 Ropospice 라이브러리를 사용하여 샘플 프로젝트를 컴파일하려고 : https://github.com/octo-online/robospice

EDIT1 : 의 pom.xml

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 

    <groupId>com.octo.android.robospice</groupId> 
    <artifactId>robospice-sample-ormlite-content-provider</artifactId> 
    <version>1.0.0-SNAPSHOT</version> 
    <packaging>apk</packaging> 
    <name>Robospice - Sample ORMLite + SpringAndroid</name> 
    <description>A simple sample that demonstrates how to use the ORMLite module + ORMLite Content Provider and RoboSpice. As it is only a caching extension, we will combine it with SpringAndroid for REST requests.</description> 

    <properties> 
     <android.version>4.1.1.4</android.version> 
     <robospice.ormlite.content.provider.version>1.4.6-SNAPSHOT</robospice.ormlite.content.provider.version> 
     <robospice.spring.android.version>1.4.6-SNAPSHOT</robospice.spring.android.version> 
     <ormlite.content.provider.version>1.0.2</ormlite.content.provider.version> 
     <spring.android.version>1.0.1.RELEASE</spring.android.version> 
     <simplexmlserializer.version>2.7</simplexmlserializer.version> 
     <commons.logging.version>1.1.3</commons.logging.version> 
     <android-maven-plugin.version>3.7.0</android-maven-plugin.version> 
     <maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version> 
     <maven-clean-plugin.version>2.5</maven-clean-plugin.version> 
     <maven-dependency-plugin.version>2.6</maven-dependency-plugin.version> 
    </properties> 

    <dependencies> 
     <dependency> 
      <groupId>com.google.android</groupId> 
      <artifactId>android</artifactId> 
      <version>${android.version}</version> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>com.octo.android.robospice</groupId> 
      <artifactId>robospice-ormlite-content-provider</artifactId> 
      <version>${robospice.ormlite.content.provider.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>com.octo.android.robospice</groupId> 
      <artifactId>robospice-spring-android</artifactId> 
      <version>${robospice.spring.android.version}</version> 
     </dependency> 
     <dependency> 
      <groupId>org.simpleframework</groupId> 
      <artifactId>simple-xml</artifactId> 
      <version>${simplexmlserializer.version}</version> 
      <!-- must be re-declared --> 
      <exclusions> 
       <exclusion> 
        <groupId>xpp3</groupId> 
        <artifactId>xpp3</artifactId> 
       </exclusion> 
       <exclusion> 
        <groupId>stax</groupId> 
        <artifactId>stax-api</artifactId> 
       </exclusion> 
      </exclusions> 
     </dependency> 
     <dependency> 
      <groupId>com.tojc.ormlite.android</groupId> 
      <artifactId>ormlite-content-provider-compiler</artifactId> 
      <version>${ormlite.content.provider.version}</version> 
      <scope>provided</scope> 
     </dependency> 
    </dependencies> 

    <build> 
     <sourceDirectory>src/</sourceDirectory> 
     <plugins> 
      <plugin> 
       <extensions>true</extensions> 
       <groupId>com.jayway.maven.plugins.android.generation2</groupId> 
       <artifactId>android-maven-plugin</artifactId> 
       <version>${android-maven-plugin.version}</version> 
       <configuration> 
        <androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile> 
        <assetsDirectory>${project.basedir}/assets</assetsDirectory> 
        <resourceDirectory>${project.basedir}/res</resourceDirectory> 
        <nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory> 
        <sdk> 
         <platform>17</platform> 
        </sdk> 
        <undeployBeforeDeploy>true</undeployBeforeDeploy> 
       </configuration> 
      </plugin> 

      <plugin> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>${maven-compiler-plugin.version}</version> 
       <configuration> 
        <source>1.6</source> 
        <target>1.6</target> 
       </configuration> 
      </plugin> 
     </plugins> 
    </build> 

    <profiles> 
     <profile> 
      <id>lint</id> 
      <build> 
       <plugins> 
        <plugin> 
         <groupId>com.lewisd</groupId> 
         <artifactId>lint-maven-plugin</artifactId> 
         <version>0.0.6</version> 
         <executions> 
          <execution> 
           <phase>validate</phase> 
           <goals> 
            <goal>check</goal> 
           </goals> 
          </execution> 
         </executions> 
        </plugin> 
       </plugins> 
      </build> 
     </profile> 
     <profile> 
      <id>ant</id> 
      <build> 
       <plugins> 
        <!-- This configuration is only meant to provide compatibility for ant 
         users --> 
        <plugin> 
         <artifactId>maven-clean-plugin</artifactId> 
         <version>${maven-clean-plugin.version}</version> 
         <configuration> 
          <filesets> 
           <fileset> 
            <directory>${project.basedir}/libs-for-ant</directory> 
            <includes> 
             <include>*.jar</include> 
            </includes> 
            <followSymlinks>false</followSymlinks> 
           </fileset> 
          </filesets> 
         </configuration> 
        </plugin> 
        <!-- This configuration is only meant to provide compatibility for ant 
         users --> 
        <plugin> 
         <groupId>org.apache.maven.plugins</groupId> 
         <artifactId>maven-dependency-plugin</artifactId> 
         <version>${maven-dependency-plugin.version}</version> 
         <executions> 
          <execution> 
           <id>copy-dependencies</id> 
           <phase>package</phase> 
           <goals> 
            <goal>copy-dependencies</goal> 
           </goals> 
           <configuration> 
            <outputDirectory>${project.basedir}/libs-for-ant</outputDirectory> 
            <overWriteReleases>true</overWriteReleases> 
            <overWriteSnapshots>true</overWriteSnapshots> 
            <overWriteIfNewer>true</overWriteIfNewer> 
            <excludeArtifactIds>xpp3,httpclient,httpcore,android,xmlParserAPIs,opengl-api</excludeArtifactIds> 
           </configuration> 
          </execution> 
         </executions> 
        </plugin> 
       </plugins> 
      </build> 
     </profile> 
    </profiles> 
</project> 
+0

pom.xml 파일을 볼 수 있습니까? – jacobhyphenated

+0

@jacobhyphenated, added. 고마워. – MSaudi

+0

@MSaudi - 예, 부재 라이브러리 때문에 컴파일하지 못했습니다 ** robospice-ormlite-content-provider ** 및 ** robospice-spring-android ** – WebComer

답변

0

내가 주위를 파고를 모든 수업을 찾기 위해 인터넷을 잠시 동안 그리고이 작업을하게 될 항아리가 결국 작동하게됩니다.

내가 여기 Robospice 컨텐츠 제공자의 내 자신의 작업 버전 업로드 : 불행하게도 https://github.com/Winghin2517/RobospiceContentProvider

을, 나는 그것이 작동하도록 단지의 이전 버전을 사용했다 - 예를 들어, 안드로이드 OrmLiteContentProvider 1.0.4에 대한 항아리했다 @Contract 주석 (https://github.com/jakenjarvis/Android-OrmLiteContentProvider/issues/21)을 인식하지 못하므로 작동하지 않으므로 수동으로 1.0.3을 추가해야했습니다.

내 자식 repo의 ormlitecontentproviderlibrary 폴더에는 Android-OrmLiteContentProvider 1.0.3이 들어 있습니다.

내 자식의 repo에있는 폴더 : ormlite - 콘텐츠 제공자 컴파일러-1.0.3.jar 내 앱 내 build.gradle 파일에 함께 그들 모두를 연결

: https://github.com/Winghin2517/RobospiceContentProvider/tree/master/libs는 해당 컴파일러 항아리를 포함 그래서 모든 종속성이 선택됩니다.