-
Notifications
You must be signed in to change notification settings - Fork 196
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
Tycho 2.7.0 creates corrupt metadata in ~/.m2 (IllegalArgumentException: bundleLocation not found) #725
Comments
Tycho does not create this metadata, it is copied from the updatesite that contains invalid data see for example https://bugs.eclipse.org/bugs/show_bug.cgi?id=578449 if you want to use tycho 2.6 and tycho 2.7 in parallel you need to use distinct maven local repositories for each of those. |
Is this documented somewhere? I hadn't cleared my ~/.m2/repository in years and have been using several Tycho versions (0.x, 1.x, 2.x) in parallel without issue. Why is this necessary now? Actually, I can reproduce this issue with just 2.7.0:
|
Tycho 2.7. build uses Tycho 2.6 thats why you see the failure there.
Because Tycho 2.6 and below do not support handling of bad p2 maven meta-data. |
Ah, I see. Too bad. This complicates things a bit. My current workaround is to just throw away I guess this can be closed then. |
It actually is enough to delete
Yeah thats quite bad, my hope is, no that it is visible some of the bad meta might get fixed in the meanwhile. |
We encountered a similar problem ([ERROR] Internal error: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: bundleLocation not found: /home/jenkins-slave/.m2/repository/org/eclipse/orbit/bundles/com.ibm.icu/63.1.0-SNAPSHOT/com.ibm.icu-63.1.0-SNAPSHOT.jar) and deleting ~/.m2/repository/.meta/p2-artifacts.properties seems to help. This should definitely be documented in the 2.7 release notes. |
Can you please submit a PR for that? |
Is hd42#1 sufficient, @mickaelistria ? |
Yes, it seems good enough and for sure better than the current state, so please turn it into a PR ;) |
Sorry, I had the wrong repo. See #738 |
@sratz is the adjusted release notes sufficient for you? |
Yes, thank you! |
Tycho 2.7.0 creates metadata in ~/.m2 that is inconsistent and breaks other builds that still use Tycho 2.6.0:
Steps to reproduce:
rm -rf ~/.m2/repository
to start with a clean slateeclipse.platform.ui
, checkout latestmaster
branch, build usingmvn clean verify -Pbuild-individual-bundles -DskipTests
This will build using Tycho 2.7.0.git checkout R4_22
. Try to build again:mvn clean verify -Pbuild-individual-bundles -DskipTests
. This time Tycho 2.6.0 is used.This results in the following exception:
This seems to be caused by the new metadata written in
.m2/repository/p2/osgi/bundle/com.ibm.icu/67.1.0.v20200706-1749/com.ibm.icu-67.1.0.v20200706-1749-p2artifacts.xml
:It points to
maven-groupId
org.eclipse.orbit.bundles
, but there is nothing there in~/.m2/repository/org/eclipse/orbit/bundles/com.ibm.icu/
The text was updated successfully, but these errors were encountered: