eclipse-platform / eclipse.platform

https://eclipse.dev/eclipse/
Eclipse Public License 2.0
72 stars 104 forks source link

Plugin export not Working (Can't download artifact osgi.bundle,com.sun.jna) #1484

Closed MarcelHaldimann closed 1 month ago

MarcelHaldimann commented 1 month ago

Let's make sure issue is not already fixed in latest builds first.

Issue

Do you have any idea what we are doing wrong? Or can you point us in the right direction?

We assume that the dependency com.sun.jna 5.14.0 is simply no longer found in the p2 repo. In the Maven repo it has been moved to net.java.dev.jna.

Screenshot 2024-07-26 at 08 28 33

We currently have a problem exporting a product from Eclipse. We have an application which we update to the new version approximately every year. We wanted to do this this week. We are currently on 2023-03 and everything is still working as usual.

When exporting the product, we receive the following error message:

Screenshot 2024-07-26 at 08 01 44

We have tested it with 2024-06, 2024-03, also under Windows, MacOS, AppleSilicon or x86 with Rosetta2. No difference.

After a few hours we decided to try it with the generated demo project from Eclipse. The same problem here too.

Steps to reproduce

  1. Open Eclipse
  2. Create new Plug-in Project
  3. Settings like the following Screenshot 2024-07-26 at 08 10 51

Screenshot 2024-07-26 at 08 10 59

Screenshot 2024-07-26 at 08 11 13

(I can start it from Eclipse without any problems) Screenshot 2024-07-26 at 08 14 00

eclipse-rcp-jna-problem.zip

  1. Try to export the product (plugin based)

Screenshot 2024-07-26 at 08 24 49

Screenshot 2024-07-26 at 08 16 29

Here is some relevant log output

!ENTRY org.eclipse.equinox.p2.director 0 0
!MESSAGE Overall install request is satisfiable
!SUBENTRY org.eclipse.equinox.p2.director 0 0
!MESSAGE Add request for ch.ionesoft.ui.test 1.0.0.202407251518 (test 1.0.0.202407251518) is satisfiable
!ENTRY org.eclipse.equinox.p2.engine 4 4
!MESSAGE An error occurred while collecting items to be installed
!SUBENTRY org.eclipse.equinox.p2.engine 4 0
!MESSAGE session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
!SUBENTRY org.eclipse.equinox.p2.artifact.repository 4 0
!MESSAGE Problems downloading artifact: osgi.bundle,com.sun.jna,5.14.0.v20231211-1200.

or

!MESSAGE Can't download artifact osgi.bundle,com.sun.jna,5.14.0.v20231211-1200 required by 

Tested under this environment:

MacOS x86 -> 2024-06 Windows x86 -> 2024-06 MacOS aarch64 -> 2024-03

Community

laeubi commented 1 month ago

See

MarcelHaldimann commented 1 month ago

Hello Christoph

Yes, we tried to switch the process to Tycho about 6-7 months ago. We failed successfully ;). Now we have tried it again these days and everything has now worked. We were able to solve all the problems we had. 2-3 things are still not clear why we had to change it. But now we could successfully export a product.

I am closing this issue.

Thanks for your feedback and the work. Marcel