Its common Error : Maven 3 warnings about build.plugins.plugin.version while working with maven tool here is solution for it.
Trace:
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.springapp:spring-hello-word:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 64, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building spring-hello-word 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-hello-word --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory F:\extrawork\spring-demos\spring-hello-word\src\main\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-hello-word --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
Solution:
Add following configuration in your pom.xml file:
<properties> <maven-compiler-plugin-version>2.3.2</maven-compiler-plugin-version> </properties>
add inside build tag:
<build>
<finalName>helloworld</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin-version}</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.