Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-dev] Issue compiling with Tycho 2.4.0 when patch fragments are used
  • From: Ravikiran Katneni <rkatneni@xxxxxxxxxxxx>
  • Date: Wed, 22 Sep 2021 04:08:59 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=opentext.com; dmarc=pass action=none header.from=opentext.com; dkim=pass header.d=opentext.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=usv2MttNsG/R1DL4CyXmufR+HCWvoBwCTWGEo/RJh/E=; b=K8RyaossyBPPnSBegmlDcs12C28sy4ErS3FF/mpHE/fbxQijiZnPv3HX7X0wyoWlR0WL6x2xYl4hdDu/C87VMfRyDf1ecpsCJa9Ycz9OfP/BgnCtT/Gz5GX6XLLSnsZCWLTLQ/DpzVeItAXpPKJiswITGw5rXLjD5xHufyIDBHmN1w5AKJdlmxH1RQVCk84o7N+x+mxF5rV+bCTzeSra+NRbAVvR+PLmHcBbxajlu+PU+sU2mhSA7cRra6FO8258wCAGpsgFLDLhkMnnC7ITWmdt1UH0IlyXL7bZc1SEoASDOW+COuXnzI1O3UQbXr0y+BQj34Fh2B3ouwFnF3AXEQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUMwZ7T+z/J7iqofpUYYPl8ZhjwccfFw8m2wot9QJCOVMQLQNL1DNqA0QJmJQPUwKTR+edB53HAdYqG+o/zg+BDCVn5Juln1SKHv7QJA/dgq1JfFMKGalNMGFo45L5plZuOsn1sBOu4+uRCTjW5FjcvaalsIiEuKZRDYmgI7Tir7GR/ULondqVIwzKvTucnmFhjyWMaFnL+qrtZT5j79v76Ru0W5fSn3WQUuW/XPEpsUgge1YHYgfi8QYY1FAUKdZM6xZuXSETtxJyQ3UKWk3i9iO4pl1ZAEDULdNzwROHPJ9b+0wVtza5sbubQf6he/QV1KpYkGQ9ux4jPwggF4xg==
  • Delivered-to: tycho-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tycho-dev/>
  • List-help: <mailto:tycho-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-dev>, <mailto:tycho-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-dev>, <mailto:tycho-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdevZ5Ap7Iq1NlzzT4GvjB6Z5O00xw==
  • Thread-topic: Issue compiling with Tycho 2.4.0 when patch fragments are used

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

 

Please help me in resolving this issue.

 

Thanks & Regards,

Ravikiran

 

Attachment: tyco_issue.zip
Description: tyco_issue.zip


Back to the top