Category "maven-toolchains-plugin"

force maven to use different java version

I have my existing project that uses Java 1.8 My JAVA_HOME is set to Java 1.8 As a result maven is using Java 1.8 , which is fine Now our project has decided to

What is the difference between maven compiler plugin and maven toolchains plugin?

I had to integrate some legacy code into my maven build, so I used the maven-recommended toolchains plugin to change the java version: <plugin> <gr

exec-maven-plugin: Can I run exec:exec goal without first running the toolchains:toolchain goal?

I've inherited an application that only compiles and runs in Java 1.8. Because I don't want to make Java 1.8 the primary jvm on my machine, I felt that the best

Maven toolchain and heroku/cloud deployment

This is going to be a broad topic so please bear with me. So I build a microservices app started as a hobby and now in the few months I put into it I made somet

Maven profiles activates on running jdk not on toolchains jdk

I'm attempting to create a pom that will: Use correct JDK from maven-toolchains-plugin based on java.version property. Activate appropriate profile based on re

specified user toolchains file does not exist

I am trying to run a test on one of the pools present and while doing do I am getting the below error Apache Maven 3.3.9 Maven home: /usr/share/maven Java versi

Compile Maven Module with Different Java Version

My maven project has a few modules: server, web, etc. I would like to build all but my server module on Java 6. For the server module, I'd like to compile it w

UnsupportedClassVersionError from maven-pmd-plugin for java 11 project

We are migrating our java 8 projects to java 11. JAVA_HOME still points to java 8 but the first project to be migrated compiles in java 11 and the unit tests ru

maven with JDK11: javac: invalid flag: --release

I'm trying to set up a simple maven project with java 11. As I want to keep JAVA_HOME to be version 8, I'm using maven-toolchains-plugin to make maven use jdk11

Maven. Unable to compile module with groovy-eclipse compiler

I'm trying to perform migration of my project from java 8 to java 11. What I did in root pom.xml: Replaced <source>8</source> <target>8</ta

Maven exclusion for maven-toolchains-plugin

In our module say XYZ We included a dependency for maven toolchains plugin to have our Jenkins build run with a specific JDK version. But once we included this

using maven deployit plugin which relies on jaxb with java 11

We just migrated our project to java 11. We configured new dependencies in the pom for the jaxb &co packages that were present in jdk-8 but were removed in

Ignore maven execution block which uses toolchain if ~/.m2/toolchains.xml is not present

I'm working on an open-source library which must work correctly on jre7. Since java 9 has been released, we decided to provide our modules with module-info.java

Determine JDK home from Maven toolchain

I have a Maven build configured to use maven-toolchains-plugin, with ~/.m2/toolchains.xml simply configured for multiple JDKs: <?xml version="1.0" encoding=

Eclipse plugin cannot handle Maven toolchain plugin

When I have the Maven toolchain plugin in my pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-to

Kotlin + Java 9 modules (Java 11 in use) + maven

I've created a simple project with Java and Kotlin code, and I'm trying to compile it as Java 9 module. Here is my pom.xml: <?xml version="1.0" encoding="UT

How to configure toolchains plugin in m2e / Installed maven in Eclipse

Currently i am using maven(Apache Maven 3.3.9) & Java(Java version: 1.8.0_91) installed in my windows machine. I have a java application which was develope

How to configure toolchains plugin in m2e / Installed maven in Eclipse

Currently i am using maven(Apache Maven 3.3.9) & Java(Java version: 1.8.0_91) installed in my windows machine. I have a java application which was develope

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain

I am using m2e to build a java project. I need to use JAVA VERSION 1.6 . So i am trying to configure toolchains plugin to achieve it. by referring the below lin

Maven build error after setting toolchain right

I have Java version 1.8.111 installed and the initial error message after running mvn3 install was as below. [ERROR] Failed to execute goal org.apache.maven.p