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

Too many dependencies are present after upgrading to Tycho 4.0.5. #318

Open
reijnenf opened this issue Feb 3, 2024 · 3 comments
Open

Too many dependencies are present after upgrading to Tycho 4.0.5. #318

reijnenf opened this issue Feb 3, 2024 · 3 comments

Comments

@reijnenf
Copy link

reijnenf commented Feb 3, 2024

After upgrading to Tycho 4.0.5 from 4.0.1 too many dependencies are returned, which are not in our product. See the newly added dependencies here: https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/788/diffs#cf3483dc93ae7e3c7a54201d846111014cbf504d and our discussion here: https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/788#note_1705986.

@waynebeaton
Copy link
Collaborator

The Maven plugin uses the standard Maven resolution mechanism. We're entirely at the mercy of how Eclipse Tycho interacts with the Maven reactor.

Are you invoking the tool with or without the -Dtycho.target.eager=true option?

@waynebeaton
Copy link
Collaborator

I get a much longer list of dependencies when I turn the tycho.target.eager on.

$ mvn dependency:tree -Dtycho.target.eager=false | grep -Poh "(?<=\+\-)[^:]+:[^:]+:[^:\s]+" | grep -v org\.eclipse | sort | uniq | wc -l
24
$ mvn dependency:tree -Dtycho.target.eager=true | grep -Poh "(?<=\+\-)[^:]+:[^:]+:[^:\s]+" | grep -v org\.eclipse | sort | uniq | wc -l
153

In my experience with Tycho-based builds, the tycho.target.eager=true option produces the more correct results. I don't recall offhand whether or not I've noticed source bundles (per #317) in the results in other cases.

@reijnenf
Copy link
Author

reijnenf commented Feb 8, 2024

Yes, we do use the -Dtycho.target.eager=true option, after #259. Without, we get (after filtering) 28 dependencies, and with eager=true we get 742.

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