Skip to content

Maven now defaults to an invalid java version #2

@udalrich

Description

@udalrich

Trying to build this now fails in m2 (at least with Java 10), because Maven defaults to Java 1.5 and Java 10 will only go back to Java 1.6.

Adding this to m2/pom.xml fixes it.

   <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>10</source>
                    <target>10</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

I found this trying to resolve the same issue as you, so updating it would be worthwhile to help future googlers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions