Print dependency tree of the project:
mvn dependency:tree -Dverbose
Building rules:
- Maven chooses the appropriate version of artifact when there is a conflict
- artifacts marked as provided are not packed into the project
- two options of output: one fat jar with all dependencies or simple jar and the directory with dependencies in jars
There is no guarantee that stated version will be loaded - it depends on the executor (see TODO)
Local configuration
- settings.xml file (global in ${maven.home}/conf/ or user's in ~/.m2)
- repositories settings - should be used for secrets (username, password), but repositories themselves should be defined in pom.xml files