|
|
Re: requires org.eclipse.equinox.p2.iu [message #1861845 is a reply to message #1841723] |
Wed, 08 November 2023 04:03 |
chen anjing Messages: 14 Registered: March 2023 |
Junior Member |
|
|
can you show me url on the JDT forum or some snippets.
I had a similar problem.
The tips as follows:
Cannot complete the install because one or more required items could not be found.
Software being installed: RCP Product 1.0.0.202311080340 (wellcontrol 1.0.0.202311080340)
Missing requirement: RCP Product 1.0.0.202311080340 (wellcontrol 1.0.0.202311080340) requires 'org.eclipse.equinox.p2.iu; org.antlr.runtime [4.7.2.v20221112-0806,4.7.2.v20221112-0806]' but it could not be found
But I don't know where "4.7.2.v20221112-0806" came from
my tycho's version is <tycho.version>4.0.3</tycho.version>
Thank you
[Updated on: Wed, 08 November 2023 05:21] Report message to a moderator
|
|
|
|
|
|
Re: requires org.eclipse.equinox.p2.iu [message #1861897 is a reply to message #1861887] |
Sat, 11 November 2023 06:47 |
chen anjing Messages: 14 Registered: March 2023 |
Junior Member |
|
|
Thank you for your reply again!
I add that repository in the <repositories> section of the POM.
And I noticed a pattern.
When I add the snippets
https://download.eclipse.org/acceleo/updates/milestones/4.0
the error will change to "'org.eclipse.equinox.p2.iu; org.antlr.runtime [4.10.1.v20230210-1433,4.10.1.v20230210-1433]' but it could not be found"
Why does the error reporting change when changing the repository? If the project is looking for version A artifacts, and I add a repository with version B, the error should not change!
In my project only 3.2.0 org.antlr.runtime is used, there is no place for version 4.7.2. It feels like this 4.7.2 is also coming from the referenced repository. i am very confused about this.
Or is there any way to manually add a dependency file on 4.7.2.
The attachment shows that there are antlr.runtime files of some versions in the local file system.
[Updated on: Sat, 11 November 2023 07:35] Report message to a moderator
|
|
|
|
Re: requires org.eclipse.equinox.p2.iu [message #1861900 is a reply to message #1861899] |
Sat, 11 November 2023 11:01 |
chen anjing Messages: 14 Registered: March 2023 |
Junior Member |
|
|
Let me try to start at the beginning.
There is an existing complex OSGI project. I built another RCP project first, referencing some of the OSGI project's bundles.The RCP project is working fine, but when I want to export this RCP project into a package that can be run independently, something goes wrong.
Because exporting with PDE reports circular dependency issues, so I'm going to use tycho to package eclipse-plugin and then package eclipse-repository to achieve this. I think the step of packaging eclipse-plugin has been completed successfully. When packaging eclipse-repository(tycho-p2-director:4.0.3:materialize-products) it ran into the dependency problem mentioned before.
Only the large OSGI project has *.target, see the attachment for the contents of OSGI's target file.
if I need to use the jar file dependency when packaging, I add <repository></repository> in pom.xml to realize it.
In addition, I just packaged the three versions of org.antlr.runtime into the local P2 repository and registered them in pom.xml, and found that the result is the same as using the url on the line.
<repository>
<id>antlr3</id>
<url>file:/C:\Users\chen\Desktop\repository</url>
<layout>p2</layout>
</repository>
Can you provide some help? Thanks!
[Updated on: Sat, 11 November 2023 11:12] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07264 seconds