With tycho, when the dependencies are optional, we are getting compilation error while building. #4291
Replies: 3 comments 2 replies
-
I think you need to provide an example. In general marking things as optional is quite tricky to get correct and one should avoid this. |
Beta Was this translation helpful? Give feedback.
-
Hi @laeubi , thank you for your response. Please help me to resolve it if I am missing something. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Got the resolution. |
Beta Was this translation helpful? Give feedback.
-
Hello experts,
I have a maven project where I am using some optional dependencies in manifest file.
e.g. com.test.ftl;version="[4.0.0,7.0.0)";resolution:=optional,
com.test.ftl.exceptions;version="[4.0.0,7.0.0)";resolution:=optional
And we do import and consume the methods from these packages in the classes.
The dependencies are optional in nature.
With tycho, when the dependencies are optional, we are getting compilation error while building.
Can someone plesae help me on this ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions