So bottom line is, is there a way to specify a jdk for a single invocation of maven?
Temporarily change the value of your JAVA_HOME
environment variable.
More Related Contents:
- How can I tell jaxb / Maven to generate multiple schema packages?
- Is there anyway to exclude artifacts inherited from a parent POM?
- How can I view transitive dependencies of a Maven pom.xml file?
- Building same project in Maven with different artifactid (based on JDK used)
- Maven: Including jar not found in public repository
- What is pluginManagement in Maven’s pom.xml?
- How to read an external properties file in Maven
- Maven: best way of linking custom external JAR to my project?
- Run a single test method with maven
- Is it possible to create an “uber” jar containing the project classes and the project dependencies as jars with a custom manifest file?
- Get Maven artifact version at runtime
- How to get a dependency tree for an artifact?
- How can I download a specific Maven artifact in one command line?
- Force re-download of release dependency using Maven
- Is there a way to “fail fast” for junit with the maven surefire plugin?
- Maven: Command to update repository after adding dependency to POM
- Display omitted versions in maven dependency:tree?
- What is the difference between “pom” type dependency with scope “import” and without “import”?
- Gradle alternate to mvn install
- How to use POMs as a dependency in Maven?
- IntelliJ: Never use wildcard imports
- How to control VM arguments for maven-jetty-plugin?
- Maven: specify the outputDirectory only for packaging a jar?
- Where is the best place to specify maven repositories, pom.xml or settings.xml?
- Maven – Add directory to classpath while executing tests
- Maven archetype for simple Servlet application
- Add maven-build-classpath to plugin execution classpath
- Generate a Version.java file in Maven
- maven in 5 min not working
- Disable the default-jar execution