SlideShare a Scribd company logo
Maven in Mulesoft (part2)
Venkatanarayana.k
How to create a
Maven project?
Go to under main Menu
File  New  Mule Project
New pop-up window will open like
adjacent picture.
Select Use Maven option.
Enter the project name. Artifact Id
automatically converted into name
given in project Name(small case).
Click on Finish.
After successfully created,
the project structure should
like as adjacent.
Artifact Id  project folder
name.
Artifact Id  default flow
name
(helloindia.xml)
Pom.xml should be created
under project folder(
immediate child).
open pom.xml file and verify.
As discussed in our earlier ppt( Maven in Mulesoft part1),
modelVersion is 4.0.0, groupId, artifactId and version is
automatically updated by user inputs while creating the mule
project. groupId, articfactId and version aremandatory and the
combination should be unique.
MAVENIZE THE
EXISTING PROJECT
Right click on project  Mule 
Mavenize
Click Ok on 2 consecutives pop-ups.
It will create a pom.xml file.
How to add
maven
dependencies?
To connect to oracle database, need
oracle database connector (ojdbc6).
ojdbc6 is available in multiple
versions. Need to choose suitable
version based on the database
version.
Check the below site for maven
dependencies
https://mvnrepository.com.
search ojdbc6.jar
Note: you may not find all the jars in
the site mentioned above.
Click on ojdbc6, it will open a new screen
with the available versions.
Ojdbc6 – 11.2.0.4 is the right
version for my database, so choose
11.2.0.4.
Need to download JAR file and add it
into local repository(if not available)
Add the xml code under Maven tab
in dependency section of project
pom.xml file.
To maintain the .jar files in local repository, run the below command
mvn install:install-file -dgroupid=com.oracle -dartifactid=ojdbc6 -dversion=12.1.0.1
-dpackaging=jar -
dfile=c:usersvenkataanypointstudioworkspacehelloindiasrcmainresourcesojd
bc6.jar -dgeneratepom=true
dgroupId  groupId in dependency xml
dartifact  artifact in dependency xml
dversion  version in dependency xml
dfile  jar file location.(copy jar files to resources directory of the project and run the
mvn command)
Command will create a jar file under M2_REPO(C:Usersvenkata.m2repository…..)
Provided only basics of maven, for in-
depth subject refer Mulesoft documents.

More Related Content

PPTX
Maven in mulesoft
PDF
Introduction to Apache Maven
PPTX
Maven ppt
PPTX
PPTX
Maven tutorial
PPTX
Introduction to Maven
PDF
Build Automation using Maven
Maven in mulesoft
Introduction to Apache Maven
Maven ppt
Maven tutorial
Introduction to Maven
Build Automation using Maven

What's hot (20)

PPTX
Version Management in Maven
PPTX
Ready! Steady! SpringBoot!
PPTX
An introduction to Maven
PDF
Automated Deployment with Maven - going the whole nine yards
PPTX
Maven plugins, properties en profiles: Advanced concepts in Maven
PDF
PPTX
Build Tools & Maven
PPTX
Continuous Deployment Pipeline with maven
PPTX
Apache Maven for SoftServe IT Academy
PPTX
Ci jenkins maven svn
PPTX
What is maven
PPTX
Introduction to maven
PPTX
Automated Testing Environment by Bugzilla, Testopia and Jenkins
PPT
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
PPTX
PPTX
S/W Design and Modularity using Maven
PPTX
System Architecture using Maven Modularity
PPSX
Maven Presentation - SureFire vs FailSafe
PPTX
Session 2
Version Management in Maven
Ready! Steady! SpringBoot!
An introduction to Maven
Automated Deployment with Maven - going the whole nine yards
Maven plugins, properties en profiles: Advanced concepts in Maven
Build Tools & Maven
Continuous Deployment Pipeline with maven
Apache Maven for SoftServe IT Academy
Ci jenkins maven svn
What is maven
Introduction to maven
Automated Testing Environment by Bugzilla, Testopia and Jenkins
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
S/W Design and Modularity using Maven
System Architecture using Maven Modularity
Maven Presentation - SureFire vs FailSafe
Session 2
Ad

Similar to Maven in mulesoft - part 2 (20)

PDF
Exploring Maven SVN GIT
PPT
Maven: Managing Software Projects for Repeatable Results
PPT
Maven with Flex
PPT
Maven with Flex
PPTX
Using galen framework for automated cross browser layout testing
PPT
Maven 2 features
PDF
A-Z_Maven.pdf
PDF
Java, Eclipse, Maven & JSF tutorial
PPTX
Maven TestNg frame work (1) (1)
PPTX
Maven TestNg frame work (1) (1)
PDF
Introduction to maven, its configuration, lifecycle and relationship to JS world
PPTX
Pemrograman mobile menggunakan ionic framework
PDF
Apache maven, a software project management tool
PPT
maven-for-maine-jug-090226091601-phpapp02.ppt
PDF
Introduction to Maven
PPTX
Build tools introduction
PDF
Introduction maven3 and gwt2.5 rc2 - Lesson 01
PDF
Liferay maven sdk
PPTX
Tutorial how to create a simple maven project
PDF
Simple ways to add and work with a `.jar` file in your local maven setup
Exploring Maven SVN GIT
Maven: Managing Software Projects for Repeatable Results
Maven with Flex
Maven with Flex
Using galen framework for automated cross browser layout testing
Maven 2 features
A-Z_Maven.pdf
Java, Eclipse, Maven & JSF tutorial
Maven TestNg frame work (1) (1)
Maven TestNg frame work (1) (1)
Introduction to maven, its configuration, lifecycle and relationship to JS world
Pemrograman mobile menggunakan ionic framework
Apache maven, a software project management tool
maven-for-maine-jug-090226091601-phpapp02.ppt
Introduction to Maven
Build tools introduction
Introduction maven3 and gwt2.5 rc2 - Lesson 01
Liferay maven sdk
Tutorial how to create a simple maven project
Simple ways to add and work with a `.jar` file in your local maven setup
Ad

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Modernizing your data center with Dell and AMD
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Reach Out and Touch Someone: Haptics and Empathic Computing
Modernizing your data center with Dell and AMD
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Monthly Chronicles - July 2025

Maven in mulesoft - part 2

  • 1. Maven in Mulesoft (part2) Venkatanarayana.k
  • 2. How to create a Maven project? Go to under main Menu File  New  Mule Project New pop-up window will open like adjacent picture. Select Use Maven option. Enter the project name. Artifact Id automatically converted into name given in project Name(small case). Click on Finish.
  • 3. After successfully created, the project structure should like as adjacent. Artifact Id  project folder name. Artifact Id  default flow name (helloindia.xml) Pom.xml should be created under project folder( immediate child).
  • 4. open pom.xml file and verify. As discussed in our earlier ppt( Maven in Mulesoft part1), modelVersion is 4.0.0, groupId, artifactId and version is automatically updated by user inputs while creating the mule project. groupId, articfactId and version aremandatory and the combination should be unique.
  • 5. MAVENIZE THE EXISTING PROJECT Right click on project  Mule  Mavenize Click Ok on 2 consecutives pop-ups. It will create a pom.xml file.
  • 6. How to add maven dependencies? To connect to oracle database, need oracle database connector (ojdbc6). ojdbc6 is available in multiple versions. Need to choose suitable version based on the database version. Check the below site for maven dependencies https://mvnrepository.com. search ojdbc6.jar Note: you may not find all the jars in the site mentioned above.
  • 7. Click on ojdbc6, it will open a new screen with the available versions.
  • 8. Ojdbc6 – 11.2.0.4 is the right version for my database, so choose 11.2.0.4. Need to download JAR file and add it into local repository(if not available) Add the xml code under Maven tab in dependency section of project pom.xml file.
  • 9. To maintain the .jar files in local repository, run the below command mvn install:install-file -dgroupid=com.oracle -dartifactid=ojdbc6 -dversion=12.1.0.1 -dpackaging=jar - dfile=c:usersvenkataanypointstudioworkspacehelloindiasrcmainresourcesojd bc6.jar -dgeneratepom=true dgroupId  groupId in dependency xml dartifact  artifact in dependency xml dversion  version in dependency xml dfile  jar file location.(copy jar files to resources directory of the project and run the mvn command) Command will create a jar file under M2_REPO(C:Usersvenkata.m2repository…..)
  • 10. Provided only basics of maven, for in- depth subject refer Mulesoft documents.