logo Maven Mule plugin

Provides a packaging target for building a Mule application from a maven project

homepage:
fresh index:
last release: 6 years ago, first release: 8 years ago
packaging: maven-plugin
get this artifact from: central
see this artifact on: search.maven.org




This chart shows how much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:


select version:

Add this snippet into pom.xml inside tag <project><build><plugins>:




Switch to artifact.
goals:
mule:mule (phase: package)

Build a Mule application archive.

mule:install

mule:clean

Clean the build path for a Mule application

mule:attach-test-resources (phase: validate)

mule:filter-resources (phase: process-resources)

Often used code snippets:

<plugin>
  <groupId>org.mule.tools</groupId>
  <artifactId>maven-mule-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
    <inclusions>
      <inclusion>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-rest-router</artifactId>
      </inclusion>
      <inclusion>
        <groupId>org.mule.modules</groupId>
        <artifactId>devkit</artifactId>
      </inclusion>
    </inclusions>
    <exclusions>
      <exclusion>
        <groupId>xerces</groupId>
        <artifactId>xercesImpl</artifactId>
      </exclusion>
      <exclusion>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
      </exclusion>
      <exclusion>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>servlet-api-2.5</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.safehaus.jug</groupId>
        <artifactId>jug.osgi</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-core</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.apache.xbean</groupId>
        <artifactId>xbean-spring</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.hornetq</groupId>
        <artifactId>hornetq-core-client</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.hornetq</groupId>
        <artifactId>hornetq-jms</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.jboss.netty</groupId>
        <artifactId>netty</artifactId>
      </exclusion>
      <exclusion>
        <groupId>net.sourceforge.jtds</groupId>
        <artifactId>jtds</artifactId>
      </exclusion>
    </exclusions>
  </configuration>
</plugin>
<plugin>
  <groupId>org.mule.tools</groupId>
  <artifactId>maven-mule-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
    <inclusions>
      <inclusion>
        <groupId>org.mule.modules</groupId>
        <artifactId>mule-module-rest</artifactId>
      </inclusion>
      <inclusion>
        <groupId>org.mule.modules</groupId>
        <artifactId>devkit</artifactId>
      </inclusion>
    </inclusions>
    <exclusions>
      <exclusion>
        <groupId>xerces</groupId>
        <artifactId>xercesImpl</artifactId>
      </exclusion>
      <exclusion>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
      </exclusion>
      <exclusion>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>servlet-api-2.5</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.safehaus.jug</groupId>
        <artifactId>jug.osgi</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-core</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.apache.xbean</groupId>
        <artifactId>xbean-spring</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.hornetq</groupId>
        <artifactId>hornetq-core-client</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.hornetq</groupId>
        <artifactId>hornetq-jms</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.jboss.netty</groupId>
        <artifactId>netty</artifactId>
      </exclusion>
      <exclusion>
        <groupId>net.sourceforge.jtds</groupId>
        <artifactId>jtds</artifactId>
      </exclusion>
    </exclusions>
  </configuration>
</plugin>
<plugin>
  <groupId>org.mule.tools</groupId>
  <artifactId>maven-mule-plugin</artifactId>
  <version>1.9</version>
  <extensions>true</extensions>
  <configuration>
    <copyToAppsDirectory>true</copyToAppsDirectory>
  </configuration>
</plugin>
<plugin>
  <groupId>org.mule.tools</groupId>
  <artifactId>maven-mule-plugin</artifactId>
  <extensions>true</extensions>
  <configuration>
    <inclusions>
      <inclusion>
        <groupId>org.mule.modules</groupId>
        <artifactId>commonretrypolicies</artifactId>
      </inclusion>
    </inclusions>
  </configuration>
</plugin>
<plugin>
  <groupId>org.mule.tools</groupId>
  <artifactId>maven-mule-plugin</artifactId>
  <version>1.7</version>
  <extensions>true</extensions>
</plugin>

© Jiri Pinkas 2015 - 2018. All rights reserved. Admin login To submit bugs / feature requests please use this github page
related: JavaVids | Top Java Blogs | Java školení | 4npm - npm search | monitored using: sitemonitoring
Apache and Apache Maven are trademarks of the Apache Software Foundation. The Central Repository is a service mark of Sonatype, Inc.