Skip to content

How to override the classpath order on launch & on assembly #3613

Answered by lefou
kaepaokaawela asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you already know that depending on the order of classpath entries is a call for trouble. I don't recommend to rely on classpath ordering in the long term.

That aside, I know from experience that it's sometimes necessary to fiddle with such details. Welcome to Mill, where such customizations are possible and probably much easier in comparison to other build tools. Nevertheless, you should aim to fix these workaround by addressing the root causes. For example by patching and re-packaging the respective thirdparty-library and using these customized artifacts in a standardized and streamlined way.

The classpath used to run your module is assembled in runClasspath.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@kaepaokaawela
Comment options

@kaepaokaawela
Comment options

@kaepaokaawela
Comment options

@kaepaokaawela
Comment options

@kaepaokaawela
Comment options

Answer selected by kaepaokaawela
Comment options

You must be logged in to vote
2 replies
@lefou
Comment options

@lefou
Comment options

lefou Oct 2, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants