2013-11-26 70 views
1

我剛從github克隆了一個spring-roo的新副本,並試圖mvn安裝它。但是失敗了,因爲依賴關係丟失了。春天roo生成失敗,因爲缺少依賴org.springframework.build.aws.maven

我懷疑這個解決方案也適用於春季項目中缺少構建的其他案例。

Missing: 
---------- 
1) org.springframework.build.aws:org.springframework.build.aws.maven:jar:3.1.0.RELEASE 

    Try downloading the file manually from the project website. 

    Then, install it using the command: 
     mvn install:install-file -DgroupId=org.springframework.build.aws -DartifactId=org.springframework.build.aws.maven -Dversion=3.1.0.RELEASE -Dpackaging=jar -Dfile=/path/to/file 

    Alternatively, if you host your own repository you can deploy the file there: 
     mvn deploy:deploy-file -DgroupId=org.springframework.build.aws -DartifactId=org.springframework.build.aws.maven -Dversion=3.1.0.RELEASE -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 

    Path to dependency: 
     1) org.springframework.roo:org.springframework.roo.root:pom:1.2.5.BUILD-SNAPSHOT 
     2) org.springframework.build.aws:org.springframework.build.aws.maven:jar:3.1.0.RELEASE 

回答

1

我可以通過添加彈簧釋放存儲庫的spring-roopom.xml解決這個問題。

... 
<repositories> 
    ... 
    <repository> 
      <id>repository.springframework.maven.release</id> 
      <name>Spring Framework Maven Release Repository</name> 
      <url>http://maven.springframework.org/release</url> 
    </repository>  
</repositories> 
...