Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Resolve Optional Dependencies

Probably my attachements is not clear and because of that I have
created workspace to reproduce (it contains at least one plug-in with
one dependecy) and have created an issue for that
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399712

On Thu, Jan 31, 2013 at 5:57 PM, Igor Zapletnev
<igor.zapletnev@xxxxxxxxx> wrote:
> Thanks for quick response.
>
> I don't have defined repositories in my pom file.
> Adding dependency-resolution doesn't help, tycho still tries resolve
> jdt as well.
>
> Attached pom file, output and tp.
>
> Thanks,
> Igor
>
> On Thu, Jan 31, 2013 at 5:23 PM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
>> On 01/31/2013 11:14 AM, Igor Zapletnev wrote:
>>
>> Also where is no any references to the jdt in my target platform.
>> During build I am able to see next error "Failed to resolve target
>> definition tp.target: "No solution found because the problem is
>> unsatisfiable.": ["Unable to satisfy dependency from
>> org.eclipse.jdt.core 3.8.1.v_OTDT_r210_201206090452 to
>> org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).",
>> "Unable to satisfy dependency from org.eclipse.jdt.core
>> 3.8.2.v_OTDT_r211_201209011847 to
>> org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).",
>> "No solution found because the problem is unsatisfiable."] -> [Help 1]
>> org.apache.maven.
>> InternalErrorException: Internal error:
>> java.lang.RuntimeException: Failed to resolve target definition"
>>
>> 1) Tycho able to see jdt.core plug-in (and tries resolve it), but it
>> does not defined in the target platform;
>>
>> Do you have a <repository> defined in one of your pom? Those repositories
>> are added to the target-platform definition, so you should avoid using both
>> repositories and target files at the same time.
>>
>>
>> 2) Tycho tries resolve optional dependency and failed. I want disable
>> resolving this optional dependency;
>>
>>   <plugin>
>>     <groupId>org.eclipse.tycho</groupId>
>>     <artifactId>target-platform-configuration</artifactId>
>>     <version>${tychoVersion}</version>
>>     <configuration>
>>       <dependency-resolution>
>>         <optionalDependencies>ignore</optionalDependencies>
>>       </dependency-resolution>
>>     </configuration>
>>   </plugin>
>>
>> --
>> Mickael Istria
>> Eclipse developer at JBoss, by Red Hat
>> My blog - My Tweets
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
>>


Back to the top