How to get compile scope artifacts by Code?

i don’t want to either. but check this thread. some transitive dependencies are resolved with incorrect version the original author intended. and it will make errors. and it blocks my work on wildfly-swarm maven plugin migration to gtadle.

only use aether for transitive dependencies.