Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run Maven install #4

Open
jrhorn424 opened this issue Mar 31, 2020 · 1 comment
Open

Cannot run Maven install #4

jrhorn424 opened this issue Mar 31, 2020 · 1 comment

Comments

@jrhorn424
Copy link

For openjdk-13, running the maven install goal reports switches are a preview feature. The following configuration fixes the issue, as well as prior warnings from plugin versions being unspecified.

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <release>13</release>
                    <compilerArgs>--enable-preview</compilerArgs>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.22.2</version>
                <configuration>
                    <argLine>--enable-preview</argLine>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.22.2</version>
                <configuration>
                    <argLine>--enable-preview</argLine>
                </configuration>
            </plugin>
        </plugins>
    </build>
@jrhorn424 jrhorn424 mentioned this issue Mar 31, 2020
@jrhorn424
Copy link
Author

I should note this does change the version from 12 to 13. I will change #5 if desired to the previous version 12, which had the same failures and warnings when testing in a docker environment.

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

Successfully merging a pull request may close this issue.

1 participant