tycho icon indicating copy to clipboard operation
tycho copied to clipboard

uri's in target platform references should also support maven project names

Open phermsdorf opened this issue 10 months ago • 1 comments

Using a maven project name in an uri to reference another target files does not work, if the foldername of the maven project is different than the project name.

Please see discussion #4730 for an example setup.

The workaround to use the maven coordinates works for the build but not in the IDE. When opening such a target definition the PDE Target Editor shows:

Reading URI mvn:com.company:project.parent:11.0.0-SNAPSHOT:target failed: resolving artifact com.company:project.parent:target:11.0.0-SNAPSHOT failed Thanks, Bye Peter

phermsdorf avatar Feb 21 '25 14:02 phermsdorf

Tycho supports several "fallbacks" here and it includes the maven project name already. So have you made sure that the Maven Name really matches the Eclipse Project Name?

If yes, can you provide an integration-test to demonstrate the issue?

By the way it seems you are now using an URI target with mvn protocol, this works if you install m2e pde extensions to your IDE but you most likely need to install the target project and it needs to include the target file.

laeubi avatar Feb 21 '25 14:02 laeubi