How to compile mule application through command lne -


i want separate deployment portion , compilation portion of mule application. know how this? specific, if want script can compile mule application, need do? what libraries required this?

you need use maven-mule-plugin have maven build application archive.

here sample configuration:

        <plugin>             <groupid>org.mule.tools</groupid>             <artifactid>maven-mule-plugin</artifactid>             <version>1.9</version>             <extensions>true</extensions>             <configuration>                 <copytoappsdirectory>true</copytoappsdirectory>                 <excludemuledependencies>true</excludemuledependencies>                 <inclusions>                     <inclusion>                         <groupid>org.mule.modules</groupid>                         <artifactid>mule-module-cache</artifactid>                     </inclusion>                 </inclusions>             </configuration>         </plugin> 

be sure have repository active @ build time:

    <repository>         <id>mulesoft-releases</id>         <name>mulesoft repository</name>         <url>https://repository.mulesoft.org/releases/</url>         <layout>default</layout>     </repository> 

also sure have:

<plugingroup>org.mule.tools</plugingroup> 

in <plugingroups> (typically in ~/.m2/settings.xml).


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -