- The document outlines guidelines for a virtual MuleSoft meetup, including welcoming attendees and encouraging them to keep videos on.
- The agenda includes introductions, a presentation on creating MuleSoft API template projects using Maven archetypes, a quiz, and networking.
- The presentation discusses using Maven archetypes to standardize project structure, apply best practices, and speed up development by automatically configuring dependencies and files. It demonstrates generating a new project from an archetype template.
2. Guidelines for KL MuleSoft Meetup #2 [Virtual]
● Welcome to KL MuleSoft Meetup! We will start our introduction session shortly.
● Once you join write down your registered name in chat section so that we can provide you
audio/video access in Bevy.
● Please keep yourself muted unless you have any question.
● We encourage keeping your video on for making our meetup interactive.
● You'll can also write down your questions in chat section.
● We appreciate your valuable feedback. Thanks.
2
4. 4
●About the organizer:
○ Manish Yadav
○ Nitushree Jena
○ Kheng Lim
●About the sponsor:
○ MuleSoft and Billennium
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
6. Latest Releases/News
● Training announcement: There is an exciting update to the self-paced training course
for Anypoint Platform Development: Fundamentals (Mule 4). Now, when you complete
the self-paced Fundamentals Mule 4 training course, you will receive a free certification
voucher. Learn more here and help us spread the word!
● FYI: Click here for More Info about Free voucher for MCD Level 1
● Anypoint Studio 7.7 release
Blog - Streamlining the development experience with Studio 7.7
6
7. Mary Joy Sabal
Integration Technical Lead, Datacom
Using Maven Archetypes to create
MuleSoft API Project Templates
8. 8
- Over 9 years of IT experience
- Multi-MuleSoft Certified Developer, API Designer,
Platform and Integration Architect
- Wellington, New Zealand Meet-up Group Leader
- Currently producing talented Mule Developers
Introduction
Fun fact!
9. Agenda
● Use case
● Technical challenges in building a project structure
● MuleSoft API Project Template content following best practices
● Leverage Anypoint Exchange for API Template
● What is Maven in MuleSoft?
● Maven Archetypes
● Demo
● Key Takeaways
10. 10
Scenario:
● New client, needs to upskill Developers in MuleSoft
Impact:
● Training consumes A LOT of time
● Difficult to enforce standards
Use case
11. 11
Scenario:
● Building APIs within a short timeframe.
Impact:
● Inconsistent building of project structure.
Use case
12. 12
Technical challenges in building a Project
Structure
Unable to meet development
standards and to follow technical
governance in building API.
Consumes a lot of development
time
Inconsistent project
structures
13. 13
● Dependency management utility
● Projects created in Anypoint Studio 7 and later are configured Maven by default.
http://maven.apache.org/
https://docs.mulesoft.com/mule-runtime/4.3/using-maven-with-mule
What is Maven in MuleSoft?
POM
(Project Object Model)
File:
pom.xml
Archetype Descriptor
File:
archetype-metadata.xml
Archetype Properties
File:
archetype.properties
14. 14
● Create a custom project
● Upload custom project as a template to Anypoint Exchange
● Maven archetype:create-from-project
● Maven archetype:generate
● Import newly generated project into Anypoint Studio
Steps to create MuleSoft API Project Template
using Maven Archetypes
18. Maven archetype:create-from-project
18
● Modify archetype-
metadata.xml (ArchetypeDescriptor)
○ Include/exclude files or folders
● Creates a Maven archetype from a custom
or existing project.
● A template on top of a template.
Command:
mvn archetype:create-from-project -
Darchetype.properties=../archetype.properties
19. 19
● Generate a new Maven project from the generated Maven archetype.
Maven archetype:generate
Command:
mvn archetype:generate
-DarchetypeGroupId=<Your Anypoint Platform Organization ID>
-DarchetypeArtifactId=api-template-archetype
-DarchetypeVersion=1.0.0
-Ddomain=<e.g. customers>
-DapiDescription=<"This API will retrieve customers details">
● It should run in interactive mode
20.
21. 21
● Standardize project development
● Preconfigured dependencies
● Unified log4j format
● Safely hidden properties for sensitive properties
● Focus on implementing business specific requirements
● Speed up your development time
● Enable developers to easily follow best practices
Benefits of having an API Project Template
23. 23
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/kuala-lumpur/
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Contact your organizers Manish Yadav,Nitushree Jena and Kheng Lim Tweet your
organizers at @Manish_Kyadav, @NeetuJena
○ Follow us on Instagram (@mulesoft_community_academy)
○ Whatsapp Group Link https://chat.whatsapp.com/GO4L3m9VA04LOtXaVWUlWq:
What’s next?