Questions tagged [maven-toolchains-plugin]

For the maven-toolchains plugin.

36 questions
2
votes
1 answer

Building with Java 1.8 and deploying in Java 1.7

Our existing web application is developed using JDK 1.6 and built using maven(2.2.1). The built artifacts(war/ear) is deployed to an environment using Java 7. As of June 2018 the legacy protocols TLS 1.0 & 1.1 protocols will no longer be supported…
Sachin
  • 2,087
  • 16
  • 22
2
votes
0 answers

Cannot compile Maven project against Java 6 when using AspectJ plugin

I recently upgraded to Maven 3.5 and Java 8 on my dev environment as I have upgraded my company's Maven-managed application from Java 6 to Java 8 on our 'master' environment. Unfortunately I have run into difficulty using this setup against older…
2
votes
2 answers

Maven project with modules designed to run on different JDK

I have a project with one main module that use pom packaging and several submodules that are defined to use jar packaging. I want to have some of them ready to run on JDK7 and other for JDK8 (and eventually embed those for JDK7 as dependencies in…
mat_boy
  • 12,998
  • 22
  • 72
  • 116
2
votes
2 answers

Is it possible to specify a different JVM to run Eclipse with tycho-surefire-plugin

We have a project which is built with Tycho 0.15.0. When running the tests (i.e. UI tests), maven executes cmd.exe /X /C ""C:\Program Files (x86)\Java\jre7\bin\java.exe" -Dosgi.noShutdown=false -Dosgi.os=win32 [...]" This works so far. But now, we…
1
vote
1 answer

Maven exec plugin with toolchain can not enable preview features

I want to taste the newest Java 19 feature, also do not change the default Java Home( Java 17). So I create a toolchains.xml in the ~/.m2, and define a jdk type toolchain like this.