创建第谷产品错误:缺少要求 [英] Creating Tycho product error: Missing requirement

查看:53
本文介绍了创建第谷产品错误:缺少要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是第谷的新手.我正在尝试使用 Tycho 创建一个产品,但是每次运行它时,都会遇到以下错误:

I'm new to Tycho. I am trying to create a product using Tycho, but every time I run it, I run into the following error:

Cannot resolve project dependencies:
[ERROR]   Software being installed: RCPplugin.RCPplugin 0.0.1.qualifier
[ERROR]   Missing requirement: RCPplugin.RCPplugin 0.0.1.qualifier requires  'org.eclipse.rcp.feature.group [3.7.2.dist-8R9GFpOFUdy-521934]' but it could not be found
[ERROR] 
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from RCPplugin.RCPplugin 0.0.1.qualifier to org.eclipse.rcp.feature.group [3.7.2.dist-8R9GFpOFUdy-521934].", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from RCPplugin.RCPplugin 0.0.1.qualifier to org.eclipse.rcp.feature.group [3.7.2.dist-8R9GFpOFUdy-521934].", "No solution found because the problem is unsatisfiable."]
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from RCPplugin.RCPplugin 0.0.1.qualifier to org.eclipse.rcp.feature.group [3.7.2.dist-8R9GFpOFUdy-521934].", "No solution found because the problem is unsatisfiable."]
    at org.eclipse.tycho.p2.impl.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:79)
    at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:83)
    at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:118)
    at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:76)
    at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:445)
    at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:422)
    at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:98)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:61)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    ... 11 more

有人可以帮我吗?

推荐答案

你告诉第谷去哪里寻找依赖了吗?与 Maven 不同,Tycho 没有用于查找依赖项的默认存储库.您需要明确配置此搜索范围 - 所谓的目标平台 - 例如与

Did you tell Tycho where to look for dependencies? Unlike in Maven, Tycho does not have a default repository where it looks for dependencies. You need to configure this search scope - the so-called target platform - explicitly, e.g. with

<repository>
  <id>eclipse-indigo</id>
  <layout>p2</layout>
  <url>http://download.eclipse.org/releases/indigo</url>
</repository>

可以在此处的文档中找到更多用于配置目标平台的选项.

More options to configure the target platform can be found here in the documentation.

这篇关于创建第谷产品错误:缺少要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆