Configure Maven
settings.xml, maven.config and jvm.config, proxies, credentials and profiles.
- Configuration files: settings.xml, maven.config, jvm.configWhy Maven splits its configuration between the project and the machine, which files and variables each side uses, and how they combine.
- Configure a proxyMake Maven download through the HTTP proxy your network requires, with a login if the proxy asks for one and exceptions for internal hosts.
- Store server credentialsGive Maven the username and password for a repository it downloads from or deploys to, matched to the repository by id.
- Encrypt passwords in settings.xmlReplace the plain passwords of servers and proxies in settings.xml with encrypted values, with a master password on Maven 3 or mvnenc on Maven 4.
- Settings files referenceEvery file and environment variable Maven reads its configuration from, with location, scope and Maven line, and the patterns of mirrorOf.
- Build profiles explained
- Build for different environments
- Inject POM properties via settings.xml