Loading

MUnit test coverage reports fail to be generated in the Azure pipeline

Udgivelsesdato: Jul 21, 2025
Løsning

SYMPTOM

MUnit test generates the coverage reports fail to be generated in the Azure pipeline, below error is thrown:

java.lang.IllegalStateException: Cannot start embedded container
at org.mule.runtime.module.embedded.internal.DefaultEmbeddedContainerBuilder$1.start(DefaultEmbeddedContainerBuilder.java:169)
at org.mule.munit.remote.RemoteRunner.run(RemoteRunner.java:111)
at org.mule.munit.remote.RemoteRunner.main(RemoteRunner.java:80)
Caused by: java.lang.IllegalArgumentException: Could not find embedded container bom artifact
at org.mule.runtime.module.embedded.internal.MavenContainerClassLoaderFactory.create(MavenContainerClassLoaderFactory.java:83)
at org.mule.runtime.module.embedded.internal.DefaultEmbeddedContainerBuilder$1.start(DefaultEmbeddedContainerBuilder.java:146)

CAUSE

The releases-ee repo is not configured as pluginRepository in the settings.xml that is being used. 

SOLUTION

Configure release-ee repo as pluginRepository in the settings.xml that is being used.
 
<profiles>
<profile>
<id>mule-extra-repos</id>
    <activation>
    <activeByDefault>true</activeByDefault>
    </activation>
<repositories>
    <repository>
    <id>mule-public</id>
    <url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
    <id>mule-public</id>
    <url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
    </pluginRepository>
    <pluginRepository>
    <id>MuleRepository</id>
    <url>https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/</url>
    </pluginRepository>
</pluginRepositories>
</profile>
<profile>



 
Vidensartikelnummer

001119234

 
Indlæser
Salesforce Help | Article