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

What's hot (20)

PPTX
Version Management in Maven
Geert Pante
 
PPTX
Ready! Steady! SpringBoot!
GlobalLogic Ukraine
 
PPTX
An introduction to Maven
Joao Pereira
 
PDF
Automated Deployment with Maven - going the whole nine yards
John Ferguson Smart Limited
 
PPTX
Maven plugins, properties en profiles: Advanced concepts in Maven
Geert Pante
 
PDF
Jenkins
penetration Tester
 
PPTX
Build Tools & Maven
David Simons
 
PPTX
Continuous Deployment Pipeline with maven
Alan Parkinson
 
PPTX
Apache Maven for SoftServe IT Academy
Volodymyr Ostapiv
 
PPTX
Ci jenkins maven svn
Ankur Goyal
 
PPTX
What is maven
sureshraj43
 
PPTX
Introduction to maven
Manos Georgopoulos
 
PPTX
Automated Testing Environment by Bugzilla, Testopia and Jenkins
walkerchang
 
PPT
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Mark Waite
 
PPTX
Maven basics
Vijay Krishnan Ramaswamy
 
PPTX
S/W Design and Modularity using Maven
Scheidt & Bachmann
 
PPTX
System Architecture using Maven Modularity
Scheidt & Bachmann
 
PPSX
Maven Presentation - SureFire vs FailSafe
Holasz Kati
 
PPTX
Session 2
gayathiry
 
Version Management in Maven
Geert Pante
 
Ready! Steady! SpringBoot!
GlobalLogic Ukraine
 
An introduction to Maven
Joao Pereira
 
Automated Deployment with Maven - going the whole nine yards
John Ferguson Smart Limited
 
Maven plugins, properties en profiles: Advanced concepts in Maven
Geert Pante
 
Build Tools & Maven
David Simons
 
Continuous Deployment Pipeline with maven
Alan Parkinson
 
Apache Maven for SoftServe IT Academy
Volodymyr Ostapiv
 
Ci jenkins maven svn
Ankur Goyal
 
What is maven
sureshraj43
 
Introduction to maven
Manos Georgopoulos
 
Automated Testing Environment by Bugzilla, Testopia and Jenkins
walkerchang
 
Jenkins - Continuous Integration after Hudson, CruiseControl, and home built
Mark Waite
 
S/W Design and Modularity using Maven
Scheidt & Bachmann
 
System Architecture using Maven Modularity
Scheidt & Bachmann
 
Maven Presentation - SureFire vs FailSafe
Holasz Kati
 
Session 2
gayathiry
 

Similar to Maven in mulesoft - part 2 (9)

PDF
A-Z_Maven.pdf
Mithilesh Singh
 
PPT
Maven: Managing Software Projects for Repeatable Results
Steve Keener
 
PPTX
Meetup bangalore june29th2019
D.Rajesh Kumar
 
PPTX
Mulesoft KL Meetup 2
NitushreeJena
 
PPTX
Creating MuleSoft API Template Project Using Maven Archetype
Manish Kumar Yadav
 
PDF
Maven
Jyothi Malapati
 
PDF
Maven
Jyothi Malapati
 
PPTX
Tips and Tricks for the Advanced Mule Developer with Tesla and Twitter
MuleSoft
 
PPTX
Mule connectors-part 1
VirtusaPolaris
 
A-Z_Maven.pdf
Mithilesh Singh
 
Maven: Managing Software Projects for Repeatable Results
Steve Keener
 
Meetup bangalore june29th2019
D.Rajesh Kumar
 
Mulesoft KL Meetup 2
NitushreeJena
 
Creating MuleSoft API Template Project Using Maven Archetype
Manish Kumar Yadav
 
Tips and Tricks for the Advanced Mule Developer with Tesla and Twitter
MuleSoft
 
Mule connectors-part 1
VirtusaPolaris
 
Ad

Recently uploaded (20)

PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Ad

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.