【异常】‘build.plugins.plugin.version‘ for org.apache.maven.plugins:maven-resources-plugin is missing

1. Error content

The version information of the maven-compiler-plugin plug-in is not specified, resulting in an error message as follows, which
literally means that no version information is specified
insert image description here

2. Error description

When using maven-compiler-plugin, the POM file is as follows, there is indeed no version

<plugin>
 	<groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <configuration>
        <encoding>UTF-8</encoding>
        <useDefaultDelimiters>true</useDefaultDelimiters>
    </configuration>
</plugin>

Compare official website usage:
http://maven.apache.org/plugins/maven-compiler-plugin/usage.html

Three, error description

Add the following code:

 <version>2.5</version>

After the modification, it is OK as follows

<plugin>
 	<groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
     <version>2.5</version>
    <configuration>
        <encoding>UTF-8</encoding>
        <useDefaultDelimiters>true</useDefaultDelimiters>
    </configuration>
</plugin>

Guess you like

Origin blog.csdn.net/wstever/article/details/130520496