Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

packaging error as shown in the figure below. Prompt: Compile the JDK version too low. Add maven packaging plug-in

to the parent project

adds the packaging plug-in

<build>

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

Read More: