2013-11-22 47 views
0

我發現了一個很好的例子,說明如何將maven集成到spring mvc中,這正是我想要做的。Spring birt集成示例maven error

https://github.com/joshlong/spring-birt

我已經下載了該項目,並導入Maven項目到Spring STS。我可以在spring-birt-integration項目上做一個maven安裝,它會生成一個spring-birt-integration.jar,但是當我在spring-birt-integration中進行maven安裝時 - 例如,我得到一個錯誤....

Failed to execute goal on project spring-birt-integration-example: 
Could not resolve dependencies for project org.eclipse.birt.spring:spring-birt-integration-example:war:1.0: 
    Failed to collect dependencies for [org.eclipse.birt.spring:spring-birt-integration:jar:1.0 (compile), org.springframework:spring-test:jar:3.1.0.RELEASE (compile), org.mortbay.jetty:servlet-api:jar:3.0.20100224 (compile), cglib:cglib-nodep:jar:2.2 (compile), javax.inject:javax.inject:jar:1 (compile), mysql:mysql-connector-java:jar:5.1.9 (compile)]: 
Failed to read artifact descriptor for org.eclipse.birt.spring:spring-birt-integration:jar:1.0: Failure to find org.eclipse.birt.spring:spring-birt:pom:1.0 in https://oss.sonatype.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-releases has elapsed or updates are forced -> [Help 1] 

pom文件中的設置看起來好像該示例繼承了spring-birt-integration項目的依賴關係。這是我第一次看到這個,我有點不確定如何解決。

任何人都可以給我一些建議,請。

謝謝

回答

0

這是個多麼愚蠢的問題。在閱讀我的錯誤之後,我意識到我忘記了導入最高級別的pom文件。這個項目實際上有三個。

這是我第一次看到一個maven項目,其中包含兩個從父項目繼承的pom.xml文件。很有意思。