Skip to main content

getting following error while running as Mule Application

 

[INFO] Scanning for projects...

Downloading: https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/nexus/content/groups/public/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repo.maven.apache.org/maven2/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-maven-plugin:3.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-maven-plugin:jar:3.1.1 @

[ERROR] Unknown packaging: mule-application @ line 9, column 13

@

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR] The project com.mycompany:velo-system-api:1.0.0-SNAPSHOT (C:\MuleSoft\AnyPointStudio\studio-workspace\doc-addr-check-accnt\pom.xml) has 2 errors

[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-maven-plugin:3.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-maven-plugin:jar:3.1.1: Could not transfer artifact org.mule.tools.maven:mule-maven-plugin:pom:3.1.1 from/to mule-public (https://repository.mulesoft.org/nexus/content/repositories/releases): Error transferring file: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target from https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom -> [Help 2]

[ERROR] Unknown packaging: mule-application @ line 9, column 13

[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

 

Here is my pom.xml( see attachment)

 

pomtxt.txt

 

3 answers
  1. Feb 22, 3:43 PM

    SOLUTION

    1. Use the latest MUnit version and patch in pom.xml update in both <app.runtime> and <runtimeVersion>, as given below (Example):

    <app.runtime>4.3.0-20210609</app.runtime>

    <mule.maven.plugin.version>3.3.5</mule.maven.plugin.version>

    ......................

    ......................

    <groupId>com.mulesoft.munit.tools</groupId>

    <artifactId>munit-maven-plugin</artifactId>

    <version>${munit.version}</version>

    <runtimeVersion>4.4.0-20211227</runtimeVersion>

    ......................

    ......................

     

     

    For more details about MUnit Plugin, Refer

    MUnit Maven Plugin

     

     

    For the latest MUnit plugin, Refer

    MUnit Release Notes

     

     

    2. Clean the Project and re-run the scenario - Project -> Clean 

0/9000