Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Support for Maven Toolchains Plugin #42

Open
ArloL opened this issue Jul 10, 2015 · 0 comments
Open

Support for Maven Toolchains Plugin #42

ArloL opened this issue Jul 10, 2015 · 0 comments

Comments

@ArloL
Copy link

ArloL commented Jul 10, 2015

The Maven Toolchains Plugin allows to e.g. define a different JDK for the compilation than the one being used to run maven.

While testing I noticed that the apt-maven-plugin does not support it. The build was running with JDK 1.7 and the toolchains-plugin required JDK 1.8.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-toolchains-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>toolchain</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <toolchains>
            <jdk>
                <version>1.8</version>
            </jdk>
        </toolchains>
    </configuration>
</plugin>

The output:

[INFO] --- apt-maven-plugin:1.1.3:process (default) @ evocom-webapp ---
D:\Daten\okeeffe\MyProjects\evocom-develop\workspace\evocom\evocom-webapp\src\main\java\de\evosec\ev
ocom\server\configurations\ProfileConfiguration.java:22: error: illegal start of expression
            securityExecutor.execute(() -> dataInitializer.intializeData());
                                      ^
...
43 errors

The build is successful when executed with JDK 1.8.

It would be great if the apt-maven-plugin supported the maven-toolchains-plugin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant