我对第谷 0.15.0 有一个奇怪的问题。我的有 8 个依赖项,MANIFEST.MF
但 Tycho 无法解决其中之一。输出如下所示:
[INFO] 1 operation remaining.
[INFO] Fetching org.eclipse.xtext.logging_1.2.15.v201206120633.jar (4kB of 10.12kB at 0B/s) from http://my.server.com/p2-3.7.2/plugins/
[INFO] Resolving class path of MavenProject: <...my project ...> @ <...path to my project...>/pom.xml
[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle <...my project...> cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle <...my project...> - Missing Constraint: Require-Bundle: org.eclipse.xtext.logging; bundle-version="1.2.15"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle <...my project...> cannot be resolved
Resolution errors:
Bundle <...my project...> - Missing Constraint: Require-Bundle: org.eclipse.xtext.logging; bundle-version="1.2.15"
我知道的:
- 罐子
org.eclipse.xtext.logging_1.2.15.v201206120633.jar
存在 - 罐子没有损坏
- Tycho 可以从我的 p2 服务器下载它(我
~/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.logging/1.2.15.v201206120633/org.eclipse.xtext.logging-1.2.15.v201206120633.jar
的电脑上有) MANIFEST.MF
看起来正确:Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.2 Bundle-Vendor: %providerName Bundle-Localization: fragment Fragment-Host: org.apache.log4j;bundle-version="[1.2.15,1.2.16)" Bundle-RequiredExecutionEnvironment: J2SE-1.5 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.xtext.logging;singleton:=true Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.) Bundle-Version: 1.2.15.v201206120633 Bundle-ManifestVersion: 2 Import-Package: org.eclipse.core.runtime,org.osgi.framework;version="1 .5.0"
第谷 0.16.0 也有同样的问题。
有任何想法吗?