Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orbit-dev] stable photon build

On Wed, 2018-01-17 at 22:43 +0100, Matthias Sohn wrote:
> I fail to build the orbit p2 repository locally for
> https://git.eclipse.org/r/#/c/115366/
> on Mac OS
> 
> I follow 
> https://git.eclipse.org/r/plugins/gitiles/orbit/orbit-recipes/+/refs/heads/master/README.md
> using Java 1.8.0_151 and Maven 3.5.2.
> 
> But something goes wrong with mirroring:
> 
> $ mvn clean install -DdirtyWorkingTree=ignore
> succeeds
> 
> $ mvn clean install -f releng/aggregationfeature/pom.xml
> succeeds
> 
> but building the p2 repository fails:
> 
> $ mvn clean package -f releng/repository/pom.xml
> [INFO] Scanning for projects...
> [INFO] Computing target platform for MavenProject: org.eclipse.orbit.bundles:orbit-bundles-p2-repository:1.0.0-SNAPSHOT @ /Users/d029788/src/git/orbit-recipes/releng/repository/pom.xml
> [INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20170816192254/repository
> [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.8milestones/
> [INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.8milestones
> [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.8milestones/S-4.8M3a-201710300400/
> [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.8milestones/S-4.8M3a-201710300400/
> [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.8milestones/S-4.8M4-201712062000/
> [INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.8milestones/S-4.8M4-201712062000/
> [INFO] Resolving dependencies of MavenProject: org.eclipse.orbit.bundles:orbit-bundles-p2-repository:1.0.0-SNAPSHOT @ /Users/d029788/src/git/orbit-recipes/releng/repository/pom.xml
> [WARNING] The following locally built units have been used to resolve project dependencies:
> [WARNING]   org.glassfish.jersey.containers.servlet.core.source/2.22.1.v20161103-0227
> ...
> 0117-0227.google 1.0.0.9l8-YnbqwcKW6--EKVTl9DvQ_UN4pKr to com.google.code.atinject.tck [1.1.0.v20160901-1938].; Unable to satisfy dependency from v20180117-0227.json 1.0.0.7Z9Q7QcLWSM-ED-z0Um5gopvEwt3D to com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider.source [2.6.2.v20161117-2150].; Unable to satisfy dependency from v20180117-0227.json 1.0.0.7Z9Q7QcLWSM-ED-z0Um5gopvEwt3D to com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider [2.6.2.v20161117-2150].]
> [WARNING] Mirror tool: Messages while mirroring artifact descriptors.: [I/O exception while reading artifact canonical: osgi.bundle,org.eclipse.osgi.services,3.7.0.v20171204-1916]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 15.640 s
> [INFO] Finished at: 2018-01-17T22:10:39+01:00
> [INFO] Final Memory: 43M/297M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.26.0:assemble-repository (default-assemble-repository) on project orbit-bundles-p2-repository: Could not assemble p2 repository: Mirroring failed: Messages while mirroring artifact descriptors.: [I/O exception while reading artifact canonical: osgi.bundle,org.eclipse.osgi.services,3.7.0.v20171204-1916]: /Users/d029788/.m2/repository/p2/osgi/bundle/org.eclipse.osgi.services/3.7.0.v20171204-1916/org.eclipse.osgi.services-3.7.0.v20171204-1916.jar (No such file or directory) -> [Help 1]
> 
> I have no bundle org.eclipse.osgi.services under
> /Users/d029788/.m2/repository/p2/osgi/bundle/
> 
> could that be caused by some missing dependency ?

I've run into this error as well while attempting local builds. In fact
this seems quite similar to Bug 513496 but that was related to source
bundles that we generate failing to resolve, and we fixed the issue by
generating packed artifacts by default. Without being able to further
investigate, this looks like an issue with stale metadata.

The fact that it doesn't happen on the JIPP makes the state of
$LOCAL_REPO a likely issue. I would maybe consider backing up
$LOCAL_REPO to maybe narrow down later what causes this but could you
try :

- Clearing up your $LOCAL_REPO/p2/ folder
- Removing 'org.eclipse.osgi.services' entry from $LOCAL_REPO/.meta/p2-
artifacts.properties and $LOCAL_REPO/.meta/p2-local-metadata.properties
- Clearing $LOCAL_REPO/org/eclipse/orbit/

If that doesn't help at all, I might try clearing out all of
$LOCAL_REPO (or at least backing it up) to see if that resolves it.

Cheers,
Roland Grunberg


Back to the top