[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-dev] Issue compiling with Tycho 2.4.0 when patch fragments are used
|
Hi Ravikiran,
if you think this is a bug, please report it here
https://github.com/eclipse/tycho/issues/new
if you have a question regarding the usage of tycho or are unsure if it
is a bug or usage problem please open a discussion instead:
https://github.com/eclipse/tycho/discussions/new
Am 22.09.21 um 06:08 schrieb Ravikiran Katneni via tycho-dev:
Hi Tycho Dev team,
I am facing compilation issues when fragment plugins are used as patch
plugins to overwrite classes present in host plugins.
I am attaching a sample project where you can observe the issue. In the
sample project there are two eclipse plugins (test-plugin, client) and
one eclipse fragment(test-plugin-fragment).
Fragment(test-plugin-fragment) is adding has a class with the same name
and same package as the Host(test-plugin-fragment), and it has a public
method that in not present in the class of Host. Client plugin is using
the class and it has a dependency on Host plugin. Fragment patch jar
build properties has an entry “jars.extra.classpath =
platform:/plugin/test-plugin-fragment/library.jar”.
The above mentioned project is compiling with Eclipse PDE without any
errors. Tycho version 1.0.0 is also able to compile this project without
any errors.
Tycho version 2.4.0 failing to compile the project and show the
following error
/“[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:2.0.0:compile (default-compile)
on project client: Compilation failure: Compilation failure: /
/[ERROR]
C:\EclipseWorkSpaces\tyco_issue\client\src\org\eclipse\birt\client\SampleUser.java:[8]
/
/[ERROR] s.mtwo();/
/[ERROR] ^^^^/
/[ERROR] The method mtwo() is undefined for the type SampleClass”/
From my observations looking at the maven debug logs, the classpath
constructed for compilation has Host plugin jar appearing before the
Fragment jar.
/[DEBUG] Classpath:/
/[DEBUG]
C:\work\devspaces\connectors\repository\org\test\test-plugin\1.0.0\test-plugin-1.0.0.jar[+org/eclipse/birt/sample/*;?**/*]/
/[DEBUG]
C:\work\devspaces\connectors\repository\.cache\tycho\test-plugin-fragment-1.0.0.jar\library.jar[+org/eclipse/birt/sample/*;?**/*]/
/[DEBUG]
C:\work\devspaces\connectors\repository\org\test\test-plugin-fragment\1.0.0\test-plugin-fragment-1.0.0.jar[+org/eclipse/birt/sample/*;?**/*]/
/[DEBUG]
C:\work\devspaces\connectors\repository\.cache\tycho\test-plugin-fragment-1.0.0.jar\library.jar/
/[DEBUG] C:\EclipseWorkSpaces\tyco_issue\client\target\classes/
Compilation in PDE is working as per the following
https://bugs.eclipse.org/bugs/show_bug.cgi?id=126687
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=126687>
Please help me in resolving this issue.
Thanks & Regards,
Ravikiran
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-dev