SlideShare a Scribd company logo
1 of 13
MULE 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.
In Anypoint Studio:
 Building a Mule application with Maven
in Studio
 Enabling Maven support for an existing
Studio project
 Importing a Maven project into Studio
 In Mule ESB:
 Maven-Mule ESB functionality is
provided by two Mule plugins for Maven.
 Maven tools for Mule ESB is a plugin
that provides archetypes for building
regular Mule applications, allowing you
to develop Mule applications from within
Maven
 The muleesb-maven-plugin allows you to
control Mule ESB instances from within a
Maven environment
Building a Mule Application with
Maven in Studio :
 Build a Simple Project
1. Drag an HTTP Connector and a Set Payload
Component into your flow as shown in the
figure in next slide.
2. Open the connector’s properties editor and
Create a new Conector
Configuration element by clicking the green
plus sign.
3. Fill in the two required fields: Host and Port.
Set the host to localhost and leave the port
as the default value 8081 as shown in the
figure in next slide.
 Back in the connecotr’s properties
editor, leave the path as the default "/"
 Configure the Set Payload component
to set the value to "Hello World!", as
shown below:
 Now try it out by running your project
on the embedded server within
Anypoint Studio. Click the project
name, then Run As > Mule
Application.
 Open a browser window and go
to http://localhost:8081.
 You should see a "Hello World!"
message in your browser.
Enabling Maven Support for a
Studio Project :
 Get existing Mule project that was
already created in Anypoint Studio and
add Maven functionality to it.
 Maven can make your project more
easily shareable with other developers
as it takes care of its dependencies
and helps automate your project’s
build process.
Mavenizing an Existing Mule
Project :
Studio presents a confirmation dialog,
warning that although Maven support can
later be disabled, this will not reset your
project’s classpath. Click Yes to confirm.
Importing a Maven Project into
Studio :
 If you have a Mule project that was built
using http://maven.apache.org/[Maven]
outside Anypoint Studio, you can still
import it into Studio and continue to work
on it with the benefits of the Studio IDE.
 Studio has a built-in functionality to
import a Maven project.
 In Studio, go to File > Import…​
 Select Mule > Maven-based Mule
Project from pom.xml, then click Next.
Import as shown below :
ThankYou!!!!

More Related Content

What's hot

Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connectorSon Nguyen
 
Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropboxSon Nguyen
 
Demo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorDemo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorRupesh Sinha
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation javeed_mhd
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applicationssivachandra mandalapu
 
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 mavenSon Nguyen
 
Mule environments
Mule environmentsMule environments
Mule environmentsSon Nguyen
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudioRajkattamuri
 
Mule managing cloud hub
Mule  managing cloud hubMule  managing cloud hub
Mule managing cloud hubD.Rajesh Kumar
 
How To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint StudioHow To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint StudioSudha Ch
 
Eclipse 2.5 Subversion Plugin Installation
Eclipse 2.5 Subversion Plugin InstallationEclipse 2.5 Subversion Plugin Installation
Eclipse 2.5 Subversion Plugin InstallationSandeepSeshan
 
Building Extensible RIAs with MEF
Building Extensible RIAs with MEFBuilding Extensible RIAs with MEF
Building Extensible RIAs with MEFGlenn Block
 
How to install sonarqube plugin in anypoint
How to install sonarqube plugin in anypoint How to install sonarqube plugin in anypoint
How to install sonarqube plugin in anypoint javeed_mhd
 

What's hot (18)

Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connector
 
Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropbox
 
Demo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorDemo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook Connector
 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
 
Deployment options for mule applications
Deployment options for mule applicationsDeployment options for mule applications
Deployment options for mule applications
 
Rails engines
Rails enginesRails engines
Rails engines
 
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
 
Cloud hub deployment
Cloud hub deploymentCloud hub deployment
Cloud hub deployment
 
Securing api with_o_auth2
Securing api with_o_auth2Securing api with_o_auth2
Securing api with_o_auth2
 
Mule environments
Mule environmentsMule environments
Mule environments
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Mule managing cloud hub
Mule  managing cloud hubMule  managing cloud hub
Mule managing cloud hub
 
How To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint StudioHow To Install Sonar Qube Plugin In Anypoint Studio
How To Install Sonar Qube Plugin In Anypoint Studio
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Building a WordPress plugin
Building a WordPress pluginBuilding a WordPress plugin
Building a WordPress plugin
 
Eclipse 2.5 Subversion Plugin Installation
Eclipse 2.5 Subversion Plugin InstallationEclipse 2.5 Subversion Plugin Installation
Eclipse 2.5 Subversion Plugin Installation
 
Building Extensible RIAs with MEF
Building Extensible RIAs with MEFBuilding Extensible RIAs with MEF
Building Extensible RIAs with MEF
 
How to install sonarqube plugin in anypoint
How to install sonarqube plugin in anypoint How to install sonarqube plugin in anypoint
How to install sonarqube plugin in anypoint
 

Similar to Mule maven

Using maven with mule
Using maven with muleUsing maven with mule
Using maven with muleSindhu VL
 
Deploying mule applications
Deploying mule applicationsDeploying mule applications
Deploying mule applicationsBhargav Ranjit
 
Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602ppts123456
 
Introduce anypoint studio
Introduce anypoint studioIntroduce anypoint studio
Introduce anypoint studioSon Nguyen
 
Deploy apps in standalone with maven
Deploy apps in standalone with mavenDeploy apps in standalone with maven
Deploy apps in standalone with mavenAnirban Sen Chowdhary
 
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 azureSon Nguyen
 
Content based routing tutorial in mule
Content based routing tutorial in muleContent based routing tutorial in mule
Content based routing tutorial in muleSindhu VL
 
Debugging mule
Debugging   muleDebugging   mule
Debugging muleSindhu VL
 
Mule ESB - Intra application communication
Mule ESB - Intra application communicationMule ESB - Intra application communication
Mule ESB - Intra application communicationkrishananth
 
Running mule standalone
Running mule standaloneRunning mule standalone
Running mule standaloneSon Nguyen
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standaloneAbdulImrankhan7
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalonejaveed_mhd
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in MuleKhasim Saheb
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standaloneMohammed625
 

Similar to Mule maven (20)

Using maven with mule
Using maven with muleUsing maven with mule
Using maven with mule
 
Deploying mule applications
Deploying mule applicationsDeploying mule applications
Deploying mule applications
 
Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602Deployingmuleapplications 160903085602
Deployingmuleapplications 160903085602
 
Introduce anypoint studio
Introduce anypoint studioIntroduce anypoint studio
Introduce anypoint studio
 
Deploy apps in standalone with maven
Deploy apps in standalone with mavenDeploy apps in standalone with maven
Deploy apps in standalone with maven
 
Project Apash
Project ApashProject Apash
Project Apash
 
Writing first-hudson-plugin
Writing first-hudson-pluginWriting first-hudson-plugin
Writing first-hudson-plugin
 
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
 
Maven: Mule esb plugin
Maven: Mule esb pluginMaven: Mule esb plugin
Maven: Mule esb plugin
 
Mule maven
Mule mavenMule maven
Mule maven
 
Testing in mule
Testing in muleTesting in mule
Testing in mule
 
Content based routing tutorial in mule
Content based routing tutorial in muleContent based routing tutorial in mule
Content based routing tutorial in mule
 
Debugging mule
Debugging   muleDebugging   mule
Debugging mule
 
Mule ESB - Intra application communication
Mule ESB - Intra application communicationMule ESB - Intra application communication
Mule ESB - Intra application communication
 
Running mule standalone
Running mule standaloneRunning mule standalone
Running 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
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Mule debugging
Mule debuggingMule debugging
Mule debugging
 

More from Thang Loi

Mule web services
Mule web servicesMule web services
Mule web servicesThang Loi
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service busThang Loi
 
File connector
File connectorFile connector
File connectorThang Loi
 
Box connector
Box connectorBox connector
Box connectorThang Loi
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connectorThang Loi
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflowsThang Loi
 
Http connector
Http connectorHttp connector
Http connectorThang Loi
 
File Connector
File ConnectorFile Connector
File ConnectorThang Loi
 
Mule transform
Mule transformMule transform
Mule transformThang Loi
 
Fpt connector
Fpt connectorFpt connector
Fpt connectorThang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformersThang Loi
 
Http connector
Http connectorHttp connector
Http connectorThang Loi
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connectorThang Loi
 
Mule message state
Mule message stateMule message state
Mule message stateThang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformersThang Loi
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflowThang Loi
 
Mule schedule
Mule scheduleMule schedule
Mule scheduleThang Loi
 

More from Thang Loi (20)

Mule web services
Mule web servicesMule web services
Mule web services
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
 
File connector
File connectorFile connector
File connector
 
Box connector
Box connectorBox connector
Box connector
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connector
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflows
 
Http connector
Http connectorHttp connector
Http connector
 
Tcat server
Tcat serverTcat server
Tcat server
 
File Connector
File ConnectorFile Connector
File Connector
 
Mule transform
Mule transformMule transform
Mule transform
 
Fpt connector
Fpt connectorFpt connector
Fpt connector
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Http connector
Http connectorHttp connector
Http connector
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connector
 
Mule message state
Mule message stateMule message state
Mule message state
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
 
Mule soap
Mule soapMule soap
Mule soap
 
Mule schedule
Mule scheduleMule schedule
Mule schedule
 
Mule flows
Mule flowsMule flows
Mule flows
 

Recently uploaded

Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
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 FresherRemote DBA Services
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
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 AmsterdamUiPathCommunity
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
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 2024Victor Rentea
 

Recently uploaded (20)

+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...
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
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
 

Mule 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. In Anypoint Studio:  Building a Mule application with Maven in Studio  Enabling Maven support for an existing Studio project  Importing a Maven project into Studio
  • 3.  In Mule ESB:  Maven-Mule ESB functionality is provided by two Mule plugins for Maven.  Maven tools for Mule ESB is a plugin that provides archetypes for building regular Mule applications, allowing you to develop Mule applications from within Maven  The muleesb-maven-plugin allows you to control Mule ESB instances from within a Maven environment
  • 4. Building a Mule Application with Maven in Studio :  Build a Simple Project 1. Drag an HTTP Connector and a Set Payload Component into your flow as shown in the figure in next slide. 2. Open the connector’s properties editor and Create a new Conector Configuration element by clicking the green plus sign. 3. Fill in the two required fields: Host and Port. Set the host to localhost and leave the port as the default value 8081 as shown in the figure in next slide.
  • 5.
  • 6.  Back in the connecotr’s properties editor, leave the path as the default "/"  Configure the Set Payload component to set the value to "Hello World!", as shown below:
  • 7.  Now try it out by running your project on the embedded server within Anypoint Studio. Click the project name, then Run As > Mule Application.  Open a browser window and go to http://localhost:8081.  You should see a "Hello World!" message in your browser.
  • 8. Enabling Maven Support for a Studio Project :  Get existing Mule project that was already created in Anypoint Studio and add Maven functionality to it.  Maven can make your project more easily shareable with other developers as it takes care of its dependencies and helps automate your project’s build process.
  • 9. Mavenizing an Existing Mule Project :
  • 10. Studio presents a confirmation dialog, warning that although Maven support can later be disabled, this will not reset your project’s classpath. Click Yes to confirm.
  • 11. Importing a Maven Project into Studio :  If you have a Mule project that was built using http://maven.apache.org/[Maven] outside Anypoint Studio, you can still import it into Studio and continue to work on it with the benefits of the Studio IDE.  Studio has a built-in functionality to import a Maven project.  In Studio, go to File > Import…​  Select Mule > Maven-based Mule Project from pom.xml, then click Next.
  • 12. Import as shown below :