Configuration
.mvn/maven.config
file It can define the options for your build on a per project base
Repository
effective settings -> local effective build POM -> effective POMs from dependency path to the artifact
Settings
The settings element in the settings.xml file contains elements used to define values which configure Maven execution in various ways
- environment variables: e.g.
${env.HOME}
- profiles
If a profile is active from settings, its values will override any equivalently ID’d profiles in a POM or profiles.xml file.
Inspect lifecycles
Use buildplan plugin
mvn fr.jcgay.maven.plugins:buildplan-maven-plugin:list
Trouble shooting
jenv settings are ignored
# set JAVA_HOME by jEnv
jenv enable-plugin export
or
jenv exec mvn ...