Maven Build Issues — New WSO2 Setup

Randini Senanayake
2 min readFeb 21, 2024

--

Issue : Following is a build error received when building a CAR project.

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:wso2-general-project-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:wso2-general-project-plugin:jar:2.1.1 @
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:wso2-general-project-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:wso2-general-project-plugin:jar:2.1.1 @
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:wso2-esb-api-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:wso2-esb-api-plugin:jar:2.1.0 @
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:maven-car-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:maven-car-plugin:jar:2.1.1 @
[ERROR] Unknown packaging: carbon/application @ line 8, column 14
[ERROR] Unresolveable build extension: Plugin org.wso2.maven:maven-car-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:maven-car-plugin:jar:2.1.1 @
[ERROR] Unknown packaging: carbon/application @ line 8, column 14
@
[ERROR] The build could not read 5 projects -> [Help 1]
[ERROR] [ERROR] Unknown packaging: carbon/application @ line 8, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Environment setup =>
java version : java version 1.8.0_401
maven version : Apache Maven 3.9.6
operating system : macOS Big Sur

Resolution:

Downgraded the maven version from “3.9.6” to “3.6.3” which resolved the issue.

--

--

No responses yet