我正试图在NetBeans中构建一个Spring Maven OSGI应用程序。
产品版本:NetBeans IDE 8.0.2(Build 201411181905)
Java:1.8.0_60;Java HotSpot(TM)客户端VM 25.60-b23
运行时:Java(TM)SE运行时环境1.8.0_60-b27
它运行良好,直到我添加Spring OSGI依赖项:
<dependency>
<groupId>org.springframework.osgi</groupId>
<artifactId>org.springframework.osgi-library</artifactId>
<type>libd</type>
<version>1.1.2.B</version>
</dependency>
堆栈跟踪:
The POM for org.springframework.osgi:org.springframework.osgi-library:libd:1.1.2.B is missing, no dependency information available
The POM for unknown.binary:org-apache-commons-logging:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:cglib-2.2:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-aop-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-aspects-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-beans-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-build-src-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-context-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-context-support-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-core-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-expression-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-framework-bom-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-instrument-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-instrument-tomcat-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-jdbc-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-jms-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-messaging-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-orm-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-oxm-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-test-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-tx-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-web-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-webmvc-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-webmvc-portlet-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
The POM for unknown.binary:spring-websocket-4.0.1.RELEASE:jar:SNAPSHOT is missing, no dependency information available
您是否尝试在根文件夹中运行此程序?
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
这应该在cmd和shell上都有效。
堆栈跟踪显示您缺少一些其他依赖项。如果你看一下这个页面,你会发现还有其他必需的依赖项。
Spring Source Enterprise Bundle Repository