error-handler-plugin - Mulesoft Catalyst
How to publish error-hanlder-plugin from mulesoft catalyst github to anypoint exchange.
this artical focus on resolving the following errors while building "error-handler-plugin" .
1."A required class was missing while executing org.mule.tools.maven:mule-maven-plugin:3.5.4:process-sources: org/eclipse/aether/connector/basic/BasicRepositoryConnectorFactory" ( this is due to wrong maven verson, see the mulesoft help article in pre-requisite section)
2. https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized. (this issue is due to wrong or no credentials configured related to mulesoft enterprise nexus repo credentials).
3. ERROR] Failed to execute goal org.mule.runtime.plugins:mule-extensions-maven-plugin:1.4.1:extension-model (default-extension-model) on project api-error-handler: Execution default-extension-model of goal org.mule.runtime.plugins:mule-extensions-maven-plugin:1.4.1:extension-model failed: A required class was missing while executing org.mule.runtime.plugins:mule-extensions-maven-plugin:1.4.1:extension-model: org/eclipse/aether/connector/basic/BasicRepositoryConnectorFactory
[ERROR] -----------------------------------------------------
[ERROR] realm = extension>org.mule.runtime.plugins:mule-extensions-maven-plugin:1.4.1 ( the above error is due to jdk requirement, minimum jdk 11 is required).
Now lets focus on how to resolve these errors if they are encountered.
Git hub location of error handler plugin from mulesoft catalyst - https://github.com/mulesoft-catalyst/error-handler-plugin
Clone above repo to your windows or macos:
Pre-requisites:
1. Configure settings.xml with mulesoft enterprise nexus repo credentials and anypoint credentials with exchange publish permission, this will resolve any 401 unauthorized issue connecting with mulesoft enterprise nexus repo. and exchange publish error
2.if you are using windows, install git bash to execute .sh in shell terminal(in order to execute build.sh)
3. Ensure that you have at least JDK 11 and maven 3.8.7 at this time of publishing article ( maven 3.9 has some issues, refer this mulesoft help for exact isssue- https://help.mulesoft.com/s/article/Issues-with-Maven-3-9-0-when-deploying)
now go ahead and follow the release notes/nstructions given in the error-handler-plugin.
Please leave comment for any suggestions or improvements.
Comments
Post a Comment