Is there a way to declaratively configure the classpath used by maven itself (specifically to configure which slf4j implementation maven uses)?

20 views Asked by At

What I am trying to do is to configure the logging implementation used by maven.

(i.e. mvn itself, not the project being built/tested).

I know that I can do this by dropping logback jars into $MAVEN_HOME/libexec/lib and dropping logback.xml into $MAVEN_HOME/confi/logging, but I would like to know whether there is a declarative way to do this, which doesn't involve physically copying jars.

I had the impression that this kind of thing might be possible using maven profiles but this seems like something which would need to be set before the mvn process is even started.

0

There are 0 answers