Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wolfgang-ch opened this issue Sep 1, 2023 · 4 comments
Open

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

wolfgang-ch opened this issue Sep 1, 2023 · 4 comments

Comments

@wolfgang-ch
Copy link

wolfgang-ch commented Sep 1, 2023

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)
@laeubi
Copy link
Member

laeubi commented Sep 1, 2023

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

@wolfgang-ch
Copy link
Author

I've attached both logs for tycho 3.0.4 and 4.0.2

logs.zip

@wolfgang-ch
Copy link
Author

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

@laeubi
Copy link
Member

laeubi commented Sep 1, 2023

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants