title: Maven build for Munits - Mule
body: <p>I am preparing maven for building mule application which contains munits. I am getting below error when i "mvn package" the application.</p>
  
  <blockquote>
    <p>WARN  2016-11-11 09:35:32,415 [main]
    org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Ignored
    XML validation warning org.xml.sax.SAXParseException:
    schema_reference.4: Failed to read schema document
    '<a href="http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd</a>', because
    1) could not find the document; 2) the document could not be read; 3)
    the root element of the document is not .     at
    org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
    Source) ~[xercesImpl-2.8.0.jar:?]     at
    org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
    ~[xercesImpl-2.8.0.jar:?]</p>
    
    <p>[ERROR] Failed to execute goal
    com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test (test) on
    project api-system-plm-material: Execution test of goal
    com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test failed:
    org.mule.api.config.ConfigurationException: Line 19 in XML document
    from URL
    [file:/D:/Mule-Workspace-28thOct/myapplication/target/test-classes/myapplication_flow1.xml]
    is invalid; nested exception is org.xml.sax.SAXParseException;
    lineNumber: 19; columnNumber: 105; cvc-complex-type.2.4.a: Invalid
    content was found starting with element 'ws:consumer-config'. One of
    '{"<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":annotations,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":description,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":beans,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":bean,
    "<a href="http://www.springframework.org/schema/context" rel="nofollow noreferrer">http://www.springframework.org/schema/context</a>":property-placeholder,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":ref,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":global-property,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":configuration,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":notifications,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-mixed-content-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-agent,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-security-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-transaction-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-transaction-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-connector,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-connector,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-global-endpoint,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-exception-strategy,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-flow-construct,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":flow,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":sub-flow,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-model,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-interceptor-stack,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-filter,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-transformer,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":processor-chain,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":custom-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-empty-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":invoke,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":set-payload,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-global-intercepting-message-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":custom-queue-store,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-processing-strategy}'
    is expected. (org.mule.api.lifecycle.InitialisationException) -> [Help
    1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
    execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test
    (test) on project api-system-plm-material: Execution test of goal
    com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test failed:
    org.mule.api.config.ConfigurationException: Line 19 in XML document
    from URL
    [file:/D:/Mule-Workspace-28thOct/myapplication/target/test-classes/myapplication_flow1.xml]
    is invalid; nested exception is org.xml.sax.SAXParseException;
    lineNumber: 19; columnNumber: 105; cvc-complex-type.2.4.a: Invalid
    content was found starting with element 'ws:consumer-config'. One of
    '{"<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":annotations,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":description,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":beans,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":bean,
    "<a href="http://www.springframework.org/schema/context" rel="nofollow noreferrer">http://www.springframework.org/schema/context</a>":property-placeholder,
    "<a href="http://www.springframework.org/schema/beans" rel="nofollow noreferrer">http://www.springframework.org/schema/beans</a>":ref,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":global-property,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":configuration,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":notifications,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-mixed-content-extension,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-agent,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-security-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-transaction-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-transaction-manager,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-connector,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-shared-connector,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-global-endpoint,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-exception-strategy,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-flow-construct,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":flow,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":sub-flow,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-model,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-interceptor-stack,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-filter,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-transformer,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":processor-chain,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":custom-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-empty-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":invoke,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":set-payload,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-global-intercepting-message-processor,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":custom-queue-store,
    "<a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>":abstract-processing-strategy}'
    is expected. (org.mule.api.lifecycle.InitialisationException)     at
    org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)</p>
  </blockquote>
  
  <p>The flow xml it is referring to is:</p>
  
  <blockquote>
    <p>http://www.springframework.org/schema/beans/spring-beans-current.xsd
    <a href="http://www.mulesoft.org/schema/mule/core" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core</a>
    <a href="http://www.mulesoft.org/schema/mule/core/current/mule.xsd" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/core/current/mule.xsd</a>
    <a href="http://www.mulesoft.org/schema/mule/ws" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/ws</a>
    <a href="http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/ws/current/mule-ws.xsd</a>
    <a href="http://www.mulesoft.org/schema/mule/ee/dw" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/ee/dw</a>
    <a href="http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd</a>
    <a href="http://www.mulesoft.org/schema/mule/http" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/http</a>
    <a href="http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd" rel="nofollow noreferrer">http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd</a>"></p>
  
  <pre><code>&lt;ws:consumer-config name="Web_Service_Consumer" service="Mat_RFCService" port="MAT_RFC" 
    serviceAddress="${service.address}" 
    wsdlLocation="MAT_WSDL.wsdl" doc:name="Web Service Consumer" connectorConfig="MAT-HTTP-Endpoint"/&gt;
  </code></pre>
  </blockquote>
  
  <p>Below is my pom.xml:</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;groupId&gt;com.mycompany&lt;/groupId&gt;
   &lt;artifactId&gt;myapplication&lt;/artifactId&gt;
   &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
   &lt;packaging&gt;mule&lt;/packaging&gt;
   &lt;name&gt;Mule myapplication Application&lt;/name&gt;
   &lt;properties&gt;
       &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
       &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
       &lt;mule.version&gt;3.8.1&lt;/mule.version&gt;
       &lt;mule.tools.version&gt;1.2&lt;/mule.tools.version&gt;
       &lt;munit.version&gt;1.2.1&lt;/munit.version&gt;
       &lt;mule.munit.support.version&gt;3.8.0&lt;/mule.munit.support.version&gt;
       &lt;!-- This is the domain where the app will be 
       deployed: i.e. mydomain.cloudhub.io --&gt;
       &lt;cloudhub.domain&gt;mydomain&lt;/cloudhub.domain&gt;
   &lt;/properties&gt;
   &lt;build&gt;
       &lt;plugins&gt;
       &lt;plugin&gt;
         &lt;groupId&gt;org.mule.tools.maven&lt;/groupId&gt;
         &lt;artifactId&gt;mule-maven-plugin&lt;/artifactId&gt;
         &lt;version&gt;2.1.1&lt;/version&gt;
         &lt;!-- &lt;configuration&gt;
               &lt;deploymentType&gt;standalone&lt;/deploymentType&gt;
               &lt;muleVersion&gt;${mule.version}&lt;/muleVersion&gt;
           &lt;/configuration&gt; --&gt;
           &lt;configuration&gt;
               &lt;deploymentType&gt;cloudhub&lt;/deploymentType&gt;
               &lt;muleVersion&gt;3.8.2&lt;/muleVersion&gt;
               &lt;username&gt;username&lt;/username&gt;
               &lt;password&gt;mypassword&lt;/password&gt;
                &lt;applicationName&gt;myapplication-maven-1.0&lt;/applicationName&gt;
                &lt;!-- &lt;businessGroup&gt;engineering\devops&lt;/businessGroup&gt; --&gt;
               &lt;target&gt;CloudHub&lt;/target&gt;
               &lt;!-- One of: server, serverGroup, cluster --&gt;
               &lt;domain&gt;${cloudhub.domain}&lt;/domain&gt;
               &lt;targetType&gt;server&lt;/targetType&gt;
               &lt;environment&gt;DEVELOPMENT&lt;/environment&gt;
           &lt;/configuration&gt;
           &lt;executions&gt;
               &lt;execution&gt;
                   &lt;id&gt;deploy&lt;/id&gt;
                   &lt;phase&gt;deploy&lt;/phase&gt;
                   &lt;goals&gt;
                       &lt;goal&gt;deploy&lt;/goal&gt;
                   &lt;/goals&gt;
               &lt;/execution&gt;
           &lt;/executions&gt;
       &lt;/plugin&gt;
          &lt;plugin&gt;
                  &lt;groupId&gt;org.mule.tools.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;mule-app-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${mule.tools.version}&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;copyToAppsDirectory&gt;true&lt;/copyToAppsDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.7&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;add-resource&lt;/id&gt;
                          &lt;phase&gt;generate-resources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;add-resource&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;resources&gt;
                                  &lt;resource&gt;
                                      &lt;directory&gt;src/main/app/&lt;/directory&gt;
                                  &lt;/resource&gt;
                                  &lt;resource&gt;
                                      &lt;directory&gt;mappings/&lt;/directory&gt;
                                  &lt;/resource&gt;
                              &lt;resource&gt;
                                      &lt;directory&gt;src/main/api/&lt;/directory&gt;
                                  &lt;/resource&gt;
                              &lt;/resources&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.mule.tools&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-mule-plugin&lt;/artifactId&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;excludeMuleDependencies&gt;false&lt;/excludeMuleDependencies&gt;
                      &lt;inclusions&gt;
                          &lt;inclusion&gt;
                              &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
                              &lt;artifactId&gt;mule-module-objectstore&lt;/artifactId&gt;
                          &lt;/inclusion&gt;
                      &lt;/inclusions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;plugin&gt;
                  &lt;groupId&gt;com.mulesoft.munit.tools&lt;/groupId&gt;
                  &lt;artifactId&gt;munit-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${munit.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;test&lt;/id&gt;
                          &lt;phase&gt;test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;test&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;configuration&gt;
                      &lt;coverage&gt;
                          &lt;runCoverage&gt;true&lt;/runCoverage&gt;
                          &lt;formats&gt;
                              &lt;format&gt;html&lt;/format&gt;
                          &lt;/formats&gt;
                      &lt;/coverage&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
          &lt;testResources&gt;
              &lt;testResource&gt;
                  &lt;directory&gt;src/test/munit&lt;/directory&gt;
              &lt;/testResource&gt;
          &lt;testResource&gt;
                  &lt;directory&gt;src/test/resources&lt;/directory&gt;
              &lt;/testResource&gt;
          &lt;/testResources&gt;
      &lt;/build&gt;
  
      &lt;!-- Mule Dependencies --&gt;
      &lt;dependencies&gt;
          &lt;!-- Xml configuration --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.muleesb&lt;/groupId&gt;
              &lt;artifactId&gt;mule-core-ee&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Xml configuration --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.muleesb.modules&lt;/groupId&gt;
              &lt;artifactId&gt;mule-module-spring-config-ee&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Mule Transports --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.transports&lt;/groupId&gt;
              &lt;artifactId&gt;mule-transport-file&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.transports&lt;/groupId&gt;
              &lt;artifactId&gt;mule-transport-http&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.muleesb.transports&lt;/groupId&gt;
              &lt;artifactId&gt;mule-transport-jdbc-ee&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.muleesb.transports&lt;/groupId&gt;
              &lt;artifactId&gt;mule-transport-jms-ee&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.transports&lt;/groupId&gt;
              &lt;artifactId&gt;mule-transport-vm&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- Mule Modules --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
              &lt;artifactId&gt;mule-module-scripting&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
              &lt;artifactId&gt;mule-module-xml&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- for testing --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mule.tests&lt;/groupId&gt;
              &lt;artifactId&gt;mule-tests-functional&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
              &lt;artifactId&gt;mule-module-apikit&lt;/artifactId&gt;
              &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.munit&lt;/groupId&gt;
              &lt;artifactId&gt;mule-munit-support&lt;/artifactId&gt;
              &lt;version&gt;${mule.munit.support.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;com.mulesoft.munit&lt;/groupId&gt;
              &lt;artifactId&gt;munit-runner&lt;/artifactId&gt;
              &lt;version&gt;${munit.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
          &lt;artifactId&gt;mule-module-objectstore&lt;/artifactId&gt;
          &lt;version&gt;1.3.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.mule.modules/mule-module-spring-extras --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mule.modules&lt;/groupId&gt;
          &lt;artifactId&gt;mule-module-spring-extras&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
      &lt;repositories&gt;
            &lt;repository&gt;
              &lt;id&gt;Central&lt;/id&gt;
              &lt;name&gt;Central&lt;/name&gt;
              &lt;url&gt;http://repo1.maven.org/maven2/&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;mulesoft-releases&lt;/id&gt;
              &lt;name&gt;MuleSoft Releases Repository&lt;/name&gt;
              &lt;url&gt;http://repository.mulesoft.org/releases/&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;mulesoft-release&lt;/id&gt;
              &lt;name&gt;mulesoft release repository&lt;/name&gt;
              &lt;layout&gt;default&lt;/layout&gt;
              &lt;url&gt;http://repository.mulesoft.org/releases/&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Any clues will be of great help.</p>
  
  <p>Edit:</p>
  
  <p>After adding dependency as indicated by Dds, i am now caught with the below error:
  <code>[ERROR] Failed to execute goal com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test (test) on project myapplication: Execution test of goal com.mulesoft.munit.tools:munit-maven-plugin:1.2.1:test failed: org.mule.api.config.ConfigurationException: Configuration problem: Failed to import bean definitions from URL location [classpath:myapplication-get-id.xml]
  [ERROR] Offending resource: URL [file:/D:/RamG/Eclipses/Workspaces/Mule-Workspace-28thOct/myapplication/target/test-classes/myapplication-apikit-test.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [myapplication-get-id.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [com.mulesoft.weave.mule.config.WeaveNamespaceHandler] for namespace [http://www.mulesoft.org/schema/mule/ee/dw]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: scala/Option (org.mule.api.lifecycle.InitialisationException): scala.Option
  [ERROR] -&gt; [Help 1]
  </code>
  When i browsed for information, i see that one more SO question was posted but not answered. It is referring to dataweave + scala/Option which is same as the error i am getting.</p>
  
  <p>For some reason this dataweave component does not get fully downloaded, particularly the jar file is not downloaded. After some exercise, i have downloaded and copied to the respective .m2 folder <strong>manually</strong>. But following that i see the above error. So, it either has some dependencies which are not resolved like 'scala/Option"!! I am not sure.</p>
  
  <p>Thanks</p>