Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Behaviour changes with optional plug-in dependencies from 0.11 to, 0.12?

I would use Require-Bundle, but <dependencies> under
tycho-surefire-plugin configuration should work too.

--
Regards,
Igor

On 12-05-15 6:09 PM, GMail wrote:
Thanks for your reply. But do you mean that I have to add the optional dependencies
of my host plug-in to the MANIFEST.MF of the test plug-in fragment under 'Require-Bundle'
or do I have to add it as a<dependency>  in the test plug-in's pom.xml?

Regards,
Michael




Assuming that you mean 0.14, handling of optional dependencies did
indeed change. The expected new behaviour is the following


* for direct project dependencies, optional dependencies are treated as
required by default but ignored with pom.xml configuration.
* indirect optional dependencies are always ignored


In your case fragment host's dependencies are considered as indirect and
ignored. Since your test fragment requires the host's dependencies I
think it makes sense to make this explicit in test fragment bundle manifest.


--
Regards,
Igor


On 12-05-08 5:34 PM, GMail wrote:

    Hi,


    I've just upgraded from Tycho 0.11.1 to 0.14 with the result that my
    junit tests do not work anymore. I have a Eclipse plug-in test project
    that is a fragment of my host plug-in project. In my plug-in project, I
    defined an optional dependency to another plug-in. When I run my tests,
    I cannot set a project description with a plug-in ID to the optional
    dependency anymore.


    I verified that it also does not work with 0.12 anymore. Were there any
    changes with respect to handling optional plug-in dependencies between
    0.11.1 and .012? Are optional plug-ins not installed anymore when they
    are part of the manifest and a corresponding repository is specified in
    the pom.xml?


    Thanks,
    Michael
    _______________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top