dash-licenses icon indicating copy to clipboard operation
dash-licenses copied to clipboard

Too many dependencies are present after upgrading to Tycho 4.0.5.

Open reijnenf opened this issue 1 year ago • 3 comments

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.

reijnenf avatar Feb 03 '24 14:02 reijnenf

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 avatar Feb 08 '24 19:02 waynebeaton

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.

waynebeaton avatar Feb 08 '24 19:02 waynebeaton

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.

reijnenf avatar Feb 08 '24 19:02 reijnenf