SlideShare ist ein Scribd-Unternehmen logo
1 von 15
DEPLOY WITH MAVEN
‱ Maven is a project management utility that you can
use to develop projects in Mule. Mule provides built-in
Maven functionality, including the features listed
below.
There are various ways to deploy your Mule application. You can deploy your Mule
application in Mule standalone in various ways
..
One of the easiest way is to deploy your application in server is by using Maven
So, to build your application using Maven you need Maven installed in your system .
You can get Maven from https://maven.apache.org/
So, if you have Maven already installed in your system, you need to create a Mule
Project with Maven from your Anypoint Studio :-
You need to enable Maven while creating the project .. This will create a pom.xml for the project 

You can see the pom.xml is created with the project . Now this is the file where you need
to add all the Library dependencies for your project
So let our flow be simple, We will display a payload in the browser after we hit a url
http://localhost:8081/ in the browser:-
The corresponding Mule flow will be as follows:-
So as you can see , we will be displaying “This is a test Data” payload in the
browser if we hit url http://localhost:8081/ :-
Now to deploy our application using Maven your need to first set your MULE_HOME with
the path of your standalone server
Now, you need to put the following in your pom.xml
This line of code will copy the deployable Mule zip file into apps folder of Mule
Standalone server. But for that you must set MULE_HOME in your Environment variable
So, let’s build our Mule application using Maven.
If you have Mule plugins installed in your Anypoint Studio you can build the application,
following way :
If you don’t have Maven plugins, you can build it from command prompt
Now we can execute our pom.xml to build the application and deploy into our Mule
Standalone and we will get the following result in our console :-
We can see that the application has build successfully
If we go to our Mule Standalone apps folder we will see the application has been build into
deployable zip file and copied into that location
The file is placed in apps folder of our Mule Standalone
If we start our Mule Standalone server, we will find the application is deployed successfully !!
To test the application if we hit the url http://localhost:8081/ in browser we will get the
response in the browser :
You can see we have deployed a Mule application in Mule Standalone using Maven
In my next slide I will bring some other techniques in Mule implementation .
Hope you have enjoyed this simpler version.
Keep sharing your knowledge and let our Mule community grow 

Weitere Àhnliche Inhalte

Was ist angesagt?

Skillfeed word press-course-anouncement-april-23-2015
Skillfeed word press-course-anouncement-april-23-2015Skillfeed word press-course-anouncement-april-23-2015
Skillfeed word press-course-anouncement-april-23-2015
viet nghiem
 

Was ist angesagt? (18)

Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Mule esb - How to connect to a MySql Database in 5 minutes
Mule esb - How to connect to a MySql Database in 5 minutesMule esb - How to connect to a MySql Database in 5 minutes
Mule esb - How to connect to a MySql Database in 5 minutes
 
Cloud hub with mule
Cloud hub with muleCloud hub with mule
Cloud hub with mule
 
Example mule
Example muleExample mule
Example mule
 
Using ajax in mule
Using ajax in muleUsing ajax in mule
Using ajax in mule
 
Web application with mule
Web application with muleWeb application with mule
Web application with mule
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copy
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
 
Https service mule
Https service muleHttps service mule
Https service mule
 
Rest security with oauth 2.0
Rest security with oauth 2.0Rest security with oauth 2.0
Rest security with oauth 2.0
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
 
Salesforce Integration using Mule ESB
Salesforce Integration using Mule ESBSalesforce Integration using Mule ESB
Salesforce Integration using Mule ESB
 
Mule maven
Mule mavenMule maven
Mule maven
 
Mule data bases
Mule data basesMule data bases
Mule data bases
 
Skillfeed word press-course-anouncement-april-23-2015
Skillfeed word press-course-anouncement-april-23-2015Skillfeed word press-course-anouncement-april-23-2015
Skillfeed word press-course-anouncement-april-23-2015
 
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methodsVerify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
 
Deep Dive into FME Desktop 2016
Deep Dive into FME Desktop 2016Deep Dive into FME Desktop 2016
Deep Dive into FME Desktop 2016
 

Andere mochten auch

Ś’Ś™ŚœŚ™Ś•ŚŸ 23
Ś’Ś™ŚœŚ™Ś•ŚŸ 23Ś’Ś™ŚœŚ™Ś•ŚŸ 23
Ś’Ś™ŚœŚ™Ś•ŚŸ 23
Erez Nahum
 
Ś’Ś™ŚœŚ™Ś•ŚŸ 48
Ś’Ś™ŚœŚ™Ś•ŚŸ 48Ś’Ś™ŚœŚ™Ś•ŚŸ 48
Ś’Ś™ŚœŚ™Ś•ŚŸ 48
Erez Nahum
 
Gross Domestic Product
Gross Domestic ProductGross Domestic Product
Gross Domestic Product
MrRed
 
Business Modelling 090215
Business Modelling 090215Business Modelling 090215
Business Modelling 090215
Andrew Scane
 

Andere mochten auch (12)

The Greatest American Men's Tennis Players
The Greatest American Men's Tennis Players The Greatest American Men's Tennis Players
The Greatest American Men's Tennis Players
 
СтĐČĐŸŃ€Đ”ĐœĐœŃ ОСББ - Đ†ĐœĐœĐ° Đ’ĐŸĐ»ĐŸŃˆĐžĐœĐ°
СтĐČĐŸŃ€Đ”ĐœĐœŃ ОСББ - Đ†ĐœĐœĐ° Đ’ĐŸĐ»ĐŸŃˆĐžĐœĐ°ĐĄŃ‚ĐČĐŸŃ€Đ”ĐœĐœŃ ОСББ - Đ†ĐœĐœĐ° Đ’ĐŸĐ»ĐŸŃˆĐžĐœĐ°
СтĐČĐŸŃ€Đ”ĐœĐœŃ ОСББ - Đ†ĐœĐœĐ° Đ’ĐŸĐ»ĐŸŃˆĐžĐœĐ°
 
Ś’Ś™ŚœŚ™Ś•ŚŸ 23
Ś’Ś™ŚœŚ™Ś•ŚŸ 23Ś’Ś™ŚœŚ™Ś•ŚŸ 23
Ś’Ś™ŚœŚ™Ś•ŚŸ 23
 
Ś’Ś™ŚœŚ™Ś•ŚŸ 48
Ś’Ś™ŚœŚ™Ś•ŚŸ 48Ś’Ś™ŚœŚ™Ś•ŚŸ 48
Ś’Ś™ŚœŚ™Ś•ŚŸ 48
 
Presentation25
Presentation25Presentation25
Presentation25
 
Connecting google
Connecting googleConnecting google
Connecting google
 
NF HABITAT pour les copropriétés
NF HABITAT pour les copropriétésNF HABITAT pour les copropriétés
NF HABITAT pour les copropriétés
 
Gross Domestic Product
Gross Domestic ProductGross Domestic Product
Gross Domestic Product
 
Blockchain in life sciences
Blockchain in life sciencesBlockchain in life sciences
Blockchain in life sciences
 
Business Modelling 090215
Business Modelling 090215Business Modelling 090215
Business Modelling 090215
 
MARKETER LUMAscape
MARKETER LUMAscapeMARKETER LUMAscape
MARKETER LUMAscape
 
Les Français et le marché du gaz
Les Français et le marché du gazLes Français et le marché du gaz
Les Français et le marché du gaz
 

Ähnlich wie Deploy with maven

Ähnlich wie Deploy with maven (20)

Deploy apps in standalone with maven
Deploy apps in standalone with mavenDeploy apps in standalone with maven
Deploy apps in standalone with maven
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Running mule standalone
Running mule standaloneRunning mule standalone
Running mule standalone
 
Using maven with mule
Using maven with muleUsing maven with mule
Using maven with mule
 
Your new maven friend – the mule maven
Your new maven friend – the mule mavenYour new maven friend – the mule maven
Your new maven friend – the mule maven
 
Deploying mule applications
Deploying mule applicationsDeploying mule applications
Deploying mule applications
 
Maven: Mule esb plugin
Maven: Mule esb pluginMaven: Mule esb plugin
Maven: Mule esb plugin
 
Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602
 
Running mule as worker role on azure
Running mule as worker role on azureRunning mule as worker role on azure
Running mule as worker role on azure
 
Schedule and monitor in mule
Schedule and monitor in muleSchedule and monitor in mule
Schedule and monitor in mule
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
Scheduling and monitoring with java in mule
Scheduling and monitoring with java in muleScheduling and monitoring with java in mule
Scheduling and monitoring with java in mule
 
Using spring task scheduler in java in mule
Using spring task scheduler in java in muleUsing spring task scheduler in java in mule
Using spring task scheduler in java in mule
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Mule stored procedure
Mule stored procedureMule stored procedure
Mule stored procedure
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 

Mehr von Son Nguyen

Mehr von Son Nguyen (20)

Wsdl connector introduction
Wsdl connector introductionWsdl connector introduction
Wsdl connector introduction
 
Android intergrate with mule
Android intergrate with muleAndroid intergrate with mule
Android intergrate with mule
 
Mule flow overview
Mule flow overviewMule flow overview
Mule flow overview
 
Mule flow and filter
Mule flow and filterMule flow and filter
Mule flow and filter
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
 
Spring security integrate with mule
Spring security integrate with muleSpring security integrate with mule
Spring security integrate with mule
 
Message processor in mule
Message processor in muleMessage processor in mule
Message processor in mule
 
Expression language in mule
Expression language in muleExpression language in mule
Expression language in mule
 
Mule with data weave
Mule with data weaveMule with data weave
Mule with data weave
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler mule
 
Composite source in bound and out-bound
Composite source in bound and out-boundComposite source in bound and out-bound
Composite source in bound and out-bound
 
Batch job processing
Batch job processingBatch job processing
Batch job processing
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Finance connectors with mule
Finance connectors with muleFinance connectors with mule
Finance connectors with mule
 
Google drive connection
Google drive connectionGoogle drive connection
Google drive connection
 
Using properties in mule
Using properties in muleUsing properties in mule
Using properties in mule
 
Mule integrate with microsoft
Mule integrate with microsoftMule integrate with microsoft
Mule integrate with microsoft
 
Jms queue
Jms queueJms queue
Jms queue
 
Anypoint connectors
Anypoint connectorsAnypoint connectors
Anypoint connectors
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
 

KĂŒrzlich hochgeladen

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

KĂŒrzlich hochgeladen (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Deploy with maven

  • 2. ‱ Maven is a project management utility that you can use to develop projects in Mule. Mule provides built-in Maven functionality, including the features listed below.
  • 3. There are various ways to deploy your Mule application. You can deploy your Mule application in Mule standalone in various ways
.. One of the easiest way is to deploy your application in server is by using Maven
  • 4. So, to build your application using Maven you need Maven installed in your system . You can get Maven from https://maven.apache.org/ So, if you have Maven already installed in your system, you need to create a Mule Project with Maven from your Anypoint Studio :- You need to enable Maven while creating the project .. This will create a pom.xml for the project 

  • 5. You can see the pom.xml is created with the project . Now this is the file where you need to add all the Library dependencies for your project
  • 6. So let our flow be simple, We will display a payload in the browser after we hit a url http://localhost:8081/ in the browser:-
  • 7. The corresponding Mule flow will be as follows:- So as you can see , we will be displaying “This is a test Data” payload in the browser if we hit url http://localhost:8081/ :-
  • 8. Now to deploy our application using Maven your need to first set your MULE_HOME with the path of your standalone server
  • 9. Now, you need to put the following in your pom.xml This line of code will copy the deployable Mule zip file into apps folder of Mule Standalone server. But for that you must set MULE_HOME in your Environment variable
  • 10. So, let’s build our Mule application using Maven. If you have Mule plugins installed in your Anypoint Studio you can build the application, following way : If you don’t have Maven plugins, you can build it from command prompt
  • 11. Now we can execute our pom.xml to build the application and deploy into our Mule Standalone and we will get the following result in our console :- We can see that the application has build successfully
  • 12. If we go to our Mule Standalone apps folder we will see the application has been build into deployable zip file and copied into that location The file is placed in apps folder of our Mule Standalone
  • 13. If we start our Mule Standalone server, we will find the application is deployed successfully !!
  • 14. To test the application if we hit the url http://localhost:8081/ in browser we will get the response in the browser : You can see we have deployed a Mule application in Mule Standalone using Maven
  • 15. In my next slide I will bring some other techniques in Mule implementation . Hope you have enjoyed this simpler version. Keep sharing your knowledge and let our Mule community grow 