//...pom.xml in Maven 2
SpringMVCmaven-compiler-plugin1.61.6
//...
ただし、Maven 3では、上記の宣言により、次の「WARNING」メッセージが表示されます。
[INFO] Scanning for projects...
[WARNING] Some problems were encountered while building the effective model
for com.example.common:SpringMVC:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin
is missing. @ line 55, column 12
[WARNING] It is highly recommended to fix these problems because they threaten
the stability of your build.
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
修正するには、次のようにプラグインのバージョンを指定するだけです:
//...pom.xml in Maven 3
SpringMVCmaven-compiler-plugin2.3.21.61.6