How to Solve Error Message maven plugin The plugin org.apache.maven.plugins:maven-compiler-plugin:3.9.0 requires Maven version 3.2.5 when building and compiling Java Application to Wildfly using maven in NetBeans

Posted on

Introduction

This is another article which is pretty similar with the previous article. That article is an article with the title of ‘How to Solve Error Message The plugin org.apache.maven.plugins:maven-compiler-plugin:3.10.0 requires Maven version 3.2.5 when building and deploying Java Application to Wildfly using maven in NetBeans’. It exist in this link. Basically, it is doing the same thing. In that article which in this article also trying to upgrade the version of the ‘maven-compiler-plugin’. The previous version is upgrading from ‘3.3.0’ to ‘3.10.0’. In this article, it is upgrading from ‘3.3.0’ to ‘3.9.0’. But it is not the correct way to solve the problem. The main situation is building and compiling the Java Application to Wildfly using maven in NetBeans IDE but ends in failure. The following is the actual content in the output Tab of the NetBeans IDE :

[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources
skip non existing resourceDirectory C:\training\java-training\apps\src\main\docs
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 13.301s
Finished at: Thu Feb 17 11:51:14 ICT 2022
Final Memory: 8M/123M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project apps: The plugin org.apache.maven.plugins:maven-compiler-plugin:3.9.0 requires Maven version 3.2.5 -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

Solution

The solution for this one is actually quite the same with the previous one. Changing the ‘maven-compiler-plugin’ in this case from ‘3.3.0’ to ‘3.9.0’ or ‘3.10.0’ does not help. The actual error is complaining that the error exist in the ‘maven-war-plugin’. The ‘maven-war-plugin’ with the version of ‘3.3.2’ does not compatible with the current existing maven version of ‘3.0.5’. So, just change the ‘maven-war-plugin’ by downgrading it a bit by bit. In this case, it is a successful solution changing the version of ‘3.3.2’ to ‘3.3.1’. Actually, the solution already exist in another article which exist in this link. The title of the article is ‘How to Solve Error Message The plugin org.apache.maven.plugins:maven-war-plugin:3.3.2 requires Maven version 3.1.0 when build and deploy Java Application to Wildfly using maven in NetBeans’

Leave a Reply