use maven property maven.repo.local
:
mvn -Dmaven.repo.local=$HOME/.my/other/repository clean install
No modifications to settings.xml
are necessary.
More Related Contents:
- Difference between maven scope compile and provided for JAR packaging
- How do I use Maven through a proxy?
- Maven behind a auto-generated proxy
- Spring Boot – parent pom when you already have a parent pom
- Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)
- How can I make IntelliJ IDEA update my dependencies from Maven?
- Disable a Maven plugin defined in a parent POM
- Maven Jacoco Configuration – Exclude classes/packages from report not working
- Run JUnit Tests contained in dependency jar using Maven Surefire
- Remove or delete resource files from target directory using pom file
- How to generate classes from wsdl using Maven and wsimport?
- In Maven how to exclude resources from the generated jar?
- Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved
- Maven check for updated dependencies in repository
- Verification of dependency authenticity in Maven POM based automated build systems
- Difference among mavenCentral(), jCenter() and mavenLocal()?
- Error: JavaFX runtime components are missing, with IntelliJ Idea, Maven and JDK 19
- Error: JavaFX runtime components are missing, with IntelliJ Idea, Maven and JDK 19
- maven 3: Accessing version of “root” corporate POM
- How do I force Maven to use my local repository rather than going out to remote repos to retrieve artifacts?
- error: package javax.servlet does not exist
- java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.exhaust(Ljava/io/InputStream;)J
- How to backup all Nexus 3 artifacts?
- Prevent Jenkins from Installing Artifact to Local Maven Repository
- Warning on using project.parent.version as the version of a module in Maven 3
- Finding the root directory of a multi module Maven reactor project
- Maven build [WARNING] we have a duplicate class
- Maven build issue – Connection to repository refused
- Can multiple versions of the same dependency be used in a single Maven repository?
- How to pass java code a parameter from maven for testing