-
Notifications
You must be signed in to change notification settings - Fork 190
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
Could not resolve dependency with tycho > 2.7.5 #2625
Comments
@tivervac this is not a Tycho error but a Maven error. Tycho injects the (from p2 derived) maven dependencies into the model and Xtext seems to declaring "bad" dependencies there. |
@tivervac can you provide an integration-test to demonstrate the issue? |
@cdietrich Thanks for the info I was unaware you had dealt with the issue as well |
The reason I believe it to be a Tycho issue is that
|
As said Xtext is publishing from P2 data and Tycho is just reading that data and acts on it, Tycho 2.7.5 does not support this feature so it is not affected. Also the Updatesite is not ignored, the error is issued by maven because it reads the data injected by Tycho and this data is wrong and Maven itself does not know anything about update-sites. |
I'm afraid I don't understand your reply. Which new Tycho 3 feature are you referring to? I had a look at the release notes and the closest thing to what you said that I found is I also saw Having read the linked issues, the below screenshot is the actual issue, and the issue is on the xtext side, right? As we as a company will be stuck with this Xtext version for a while, would having this allow us to use xtext with it's badly generated p2 metadata? |
Yes this is the actual issue, if it contains data that is not really present it fails to build the consuming project.
Yes I described some ideas there, if this is crucial to your business and likes to speed up the development in that area a sponsoring would allow me to assign more time-slots or you can contact me for a contract of fixing a specific Tycho issue and driving a new release. |
I'm trying to build a target platform with Tycho 3.0.5, but it fails. Without any config changes, this TP builds fine for using Tycho 2.7.5.
The command I'm using is
./mvnw --update-snapshots -Dtycho.disableP2Mirrors=true clean install -f pom-target-2021-03.xml -Dmaven.repo.local=$(pwd)/.repository -X
The error I'm getting is (full stacktrace at the bottom)
True, due to a likely build mistake,
org.eclipse.xtext.purexbase:jar:2.29.0
is not available on maven central. 2.28.0 is available and building with that version does work so it seems like Tycho really wants to get the dependency from maven central. However, I don't understand why it wants to do so, my target platform is setup with the following repositoryAnd that repository does contain purexbase as expected
The reason it's trying to download purexbase (which is never mentioned in our code base) is likely because we include this line in our feature.xml
That transitively includes purexbase: https://github.com/eclipse/xtext/blob/main/org.eclipse.xtext.sdk.feature/feature.xml
Running with
-X
doesn't add much more, except for this odd snippetWhat's odd about it is that all the repositories are
disabled
, if that's the case, of course it won't find the purexbase dependency in the xtext update-site (I've redacted the output for brevity, but the other update sites are alsodisabled
). I have of course not manually disabled the update-sites, and this works fine with Tycho 2.7.5 so I wonder what's going on. Both Tycho 3.0.5 and 4.0.0 fail for the same reason.Running with 2.7.5 and
-X
does not mention the disabled repositories, nor where it downloaded the purexbase dependency from.The text was updated successfully, but these errors were encountered: