Error while building the console

Started by Sch.Donat, March 08, 2021, 01:30:09 AM

Previous topic - Next topic

Sch.Donat

Hello!

I'm trying to build the console (3.4.310 version, so a bit outdated), and like a week, or two ago it work fine, but now it seems like that the org.netxms.gef4.zest.core dependency cannot be found.
Full error message:

[INFO] --- tycho-p2-repository-plugin:1.4.0:assemble-repository (default-assemble-repository) @ org.netxms.ui.eclipse.product ---
[WARNING] Mirror tool: Problems resolving provisioning plan.: [Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.core [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.jface [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.layouts [2.0.8,2.0.8].]
[WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[WARNING] Mirror tool: Problems resolving provisioning plan.: [Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.core [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.jface [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.layouts [2.0.8,2.0.8].]
[WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[WARNING] Mirror tool: Problems resolving provisioning plan.: [Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.core [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.jface [2.0.8,2.0.8].; Unable to satisfy dependency from org.netxms.ui.eclipse.console.product 3.4.0 to org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.layouts [2.0.8,2.0.8].]
[WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[INFO]
[INFO] --- tycho-p2-repository-plugin:1.4.0:archive-repository (default-archive-repository) @ org.netxms.ui.eclipse.product ---
[INFO] Building zip: /home/schdwlk/Projects/netxms/src/java/netxms-eclipse/Product/target/org.netxms.ui.eclipse.product-3.4.0.zip
[INFO]
[INFO] --- tycho-p2-director-plugin:1.4.0:materialize-products (create-product-distributions) @ org.netxms.ui.eclipse.product ---
[INFO] Installing product org.netxms.ui.eclipse.console.product for environment linux/gtk/x86_64 to /home/schdwlk/Projects/netxms/src/java/netxms-eclipse/Product/target/products/org.netxms.ui.eclipse.console.product/linux/gtk/x86_64
Installing org.netxms.ui.eclipse.console.product 3.4.0.
Installation failed.
Cannot complete the install because one or more required items could not be found.
        Software being installed: org.netxms.ui.eclipse.console.product 3.4.0
        Missing requirement: org.netxms.ui.eclipse.console.product 3.4.0 requires 'org.eclipse.equinox.p2.iu; org.netxms.gef4.zest.core [2.0.8,2.0.8]' but it could not be found
There were errors. See log file: /home/schdwlk/Projects/netxms/workspace/.metadata/.log


So, my question is: if I work with a more updated version (preferably which still support java 8 ), it would build successfully, or is this a problem with the infrastructure that provides this package?

Best regards

Victor Kirhenshtein

Hello!

We have updated repository with forked Zest version and it seems to break build of older versions. To fix it you should hard set versions of Zest plugins in product file. The following patch should fix it:

diff --git a/src/java/netxms-eclipse/Product/nxmc.product b/src/java/netxms-eclipse/Product/nxmc.product
index 2cdd05dee0..79a110983b 100644
--- a/src/java/netxms-eclipse/Product/nxmc.product
+++ b/src/java/netxms-eclipse/Product/nxmc.product
@@ -597,9 +597,9 @@ Copyright (c) 2003-2020 Raden Solutions
       <plugin id="org.eclipse.ui.workbench.texteditor.nl_pt_BR" fragment="true"/>
       <plugin id="org.eclipse.ui.workbench.texteditor.nl_ru" fragment="true"/>
       <plugin id="org.mozilla.javascript"/>
-      <plugin id="org.netxms.gef4.zest.core"/>
-      <plugin id="org.netxms.gef4.zest.jface"/>
-      <plugin id="org.netxms.gef4.zest.layouts"/>
+      <plugin id="org.netxms.gef4.zest.core" version="2.0.6"/>
+      <plugin id="org.netxms.gef4.zest.jface" version="2.0.6"/>
+      <plugin id="org.netxms.gef4.zest.layouts" version="2.0.6"/>
       <plugin id="org.netxms.ui.base"/>
       <plugin id="org.netxms.ui.eclipse.actionmanager"/>
       <plugin id="org.netxms.ui.eclipse.agentmanager"/>


Best regards,
Victor

Sch.Donat

Thank you Viktor!

After applying it, the build was successful.

Best regards