Tuesday, February 6, 2018

How to convince MUnit Maven Plugin that you have an enterprise license

Let's say you have an enterprise license for Mule Runtime and you'd like to see the coverage report for your unit tests in a CI environment like Jenkins or Bamboo. You configured everything in your pom.xml as described in the documentation but you keep seeing the following message.

[INFO] [CoverageManager] Coverage feature runs over EE runtime only. Feature is shut down

OK, you need to convince the plugin that you're an enterprise customer but how?

Surprisingly very simple, but hard to find out unless you do some reverse engineering because this information is not documented, or let's say was not documented last time I checked.

just make sure that you don't have the following community artifact dependency in your pom.xml

<dependency>
  <groupId>org.mule</groupId>
  <artifactId>mule-core</artifactId>
  <version>${mule.version}</version>
  <scope>provided</scope>
</dependency>

and instead, you have this enterprise artifact dependency

<dependency>
  <groupId>com.mulesoft.muleesb</groupId>
  <artifactId>mule-core-ee</artifactId>
  <version>${mule.version}</version>
  <scope>provided</scope>
</dependency>

No comments: