tycho icon indicating copy to clipboard operation
tycho copied to clipboard

[ERROR] "Failed to load p2 repository..." with Tycho 4

Open wolfgang-ch opened this issue 1 year ago • 4 comments

This error occurs when running the build process with tycho 4.0.2 with tycho 3.0.4 there is no issue.

This p2 repo is created by using the export wizard for a feature in Eclipse 4.28

[ERROR] Failed to load p2 repository with ID 'eclipse.4.23.nl' from location file:/build/build.eclipse.4.23.nl.repo: No repository found at file:/build/build.eclipse.4.23.nl.repo.
java.lang.RuntimeException: Failed to load p2 repository with ID 'eclipse.4.23.nl' from location file:/build/build.eclipse.4.23.nl.repo
    at org.eclipse.tycho.p2resolver.TargetPlatformFactoryImpl.loadMetadataRepository (TargetPlatformFactoryImpl.java:411)
    at org.eclipse.tycho.p2resolver.TargetPlatformFactoryImpl.gatherExternalInstallableUnits (TargetPlatformFactoryImpl.java:366)
    at org.eclipse.tycho.p2resolver.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:221)
    at org.eclipse.tycho.p2resolver.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:178)
    at org.eclipse.tycho.p2resolver.TargetPlatformFactoryImpl.createTargetPlatform (TargetPlatformFactoryImpl.java:116)
    at org.eclipse.tycho.p2resolver.ReactorRepositoryManagerImpl.computePreliminaryTargetPlatform (ReactorRepositoryManagerImpl.java:71)
    at org.eclipse.tycho.p2resolver.P2DependencyResolver.computePreliminaryTargetPlatform (P2DependencyResolver.java:215)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject (DefaultTychoResolver.java:101)
    at org.eclipse.tycho.core.maven.TychoProjectExecutionListener.beforeProjectLifecycleExecution (TychoProjectExecutionListener.java:108)
    at org.apache.maven.lifecycle.internal.CompoundProjectExecutionListener.beforeProjectLifecycleExecution (CompoundProjectExecutionListener.java:42)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:103)

wolfgang-ch avatar Sep 01 '23 08:09 wolfgang-ch

@wolfgang-ch is this the full stacktrace here? Can you probably share a failing example?

laeubi avatar Sep 01 '23 08:09 laeubi

I've attached both logs for tycho 3.0.4 and 4.0.2

logs.zip

wolfgang-ch avatar Sep 01 '23 08:09 wolfgang-ch

Can you probably share a failing example?

I do not exactly understand what I should share but the root pom.xml file is here https://github.com/mytourbook/mytourbook/blob/main/pom.xml

wolfgang-ch avatar Sep 01 '23 08:09 wolfgang-ch

@wolfgang-ch it seems Tycho can't load the repository, so I wonder if you can share the

p2 repo is created by using the export wizard for a feature in Eclipse 4.28

because that part might be the problem here, usually a P2 repos is created by Tycho itself (for wich I have no known issues right now).

laeubi avatar Sep 01 '23 09:09 laeubi