Ok. I have added the jars not the packages (do not know what was the reason).
Can you explain me what you mean with split-packages?
Regards,
Oliver
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Benjamin Muskalla
Gesendet: Freitag, 16. März 2012 11:33
An: Tycho user list
Betreff: Re: [tycho-user] Optional dependencies can not be resolved
One thing to consider when single-sourcing is to use Import-Package instead of bundle dependencies as the packages in both runtimes are the same. Just be aware of split-packages in case you're working with workbench bundles.
Benny
On Fri, Mar 16, 2012 at 11:30 AM, Oliver Pfau <Oliver.Pfau@xxxxxxxxxxxx> wrote:
Hi,
I think the problem for my build are the optional dependencies for single sourcing (RCP, RAP) bundles. For instance a single sourcing bundles requires org.eclipse.ui and org.eclipse.rap.ui both optional. This works with 0.12.0 but not with the higher version of tycho.
I get erros that the swt/jface classes can not be resolved:
[ERROR] import org.eclipse.jface.action.MenuManager;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.jface cannot be resolved
...
<dependency-resolution>
<optionalDependencies>ignore</optionalDependencies>
</dependency-resolution>
does not help.
Is there any other possiblity to change the optional dependencies resolution to get my build working with tycho 0.14.1?
Regards,
Oliver
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Software Engineer, Tasktop Sync
Committer, Eclipse Mylyn, Eclipse EGit