Problem with the plugin org.apache.maven.plugins

1

I am running a mavenized java project, and when I run it as maven build I get an error related to a plugin. The error is:

--- maven-compiler-plugin:3.7.0:compile (default-compile) @ Sesion05jmr779
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to 
C:\Users\jseme\Desktop\kernelPanic\Repositorio\Sesion05jmr779\target\classes
[INFO] ---------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 2.242 s
[INFO] Finished at: 2018-06-02T13:00:25+02:00
[INFO] Final Memory: 14M/164M
[INFO] ---------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- 
plugin:3.7.0:compile (default-compile) on project Sesion05jmr779: Fatal 
error compiling: invalid flag: --release -> [Help 1]

Next I show the three plugins I have in the pom.xml

<plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <configuration>
                <formats>
                    <format>html</format>
                    <format>xml</format>
                </formats>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.21.0</version>
            <configuration>
                <includes>
                    <include>Sample.java</include>
                </includes>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.7.0</version>
            <configuration>
                <release>9</release>
            </configuration>
        </plugin>
    </plugins>

How do I solve the console error?

    
asked by Jose 02.06.2018 в 13:10
source

0 answers