More Related Content
Similar to MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx (20)
More from AnuragSharma900 (6)
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
- 1. All contents © MuleSoft Inc.
2nd April 2022
11:00 AM IST
Delhi MuleSoft Meetup
Anypoint Exchange and Nexus Repository with
MuleSoft
https://meetups.mulesoft.com/
- 2. All contents © MuleSoft Inc.
Safe Harbor Statement
● We are not Representing any companies here.
● This presentation is strictly for learning purposes. The organizer/Presenter does not
hold any responsibility that the same solution will work for your business
requirements.
● This presentation is not meant for any promotional activities.
- 3. All contents © MuleSoft Inc.
A recording link/slides of this meetup will be shared within 24 hours by email to
everyone.
Questions can be submitted/asked at any time in the Questions & Answers chat-box.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedback as it helps us to improve the sessions.
Housekeeping
- 4. All contents © MuleSoft Inc. 4
● Anurag Sharma : https://www.linkedin.com/in/anurag-sharma-59745b20/
● Ankit Lawaniya: https://www.linkedin.com/in/ankit-lawaniya/
Organizers :
Welcome Everyone in Today’s Meetup
- 5. All contents © MuleSoft Inc.
• 9 Years of IT experience
• Integration Technical Lead
• MuleSoft Certified and ORACLE Certified Developer
and Architect
• MuleSoft Mentor, Delhi and Ahmedabad MuleSoft
meetup leader
• Active member on MuleSoft Helper Forum
• Mentoring and learning with talented Developers
• Owner of MuleSoft Station Group, you can join us on
Telegram and Instagram
Anurag Sharma (Technical Lead)
https://www.linkedin.com/in/anurag-sharma-59745b20/
Today’s Meetup Host:
- 6. All contents © MuleSoft Inc.
Speaker
6
• Overall 10+ years of IT experience.
• API & Integration Senior Software Engineer
Lead.
• MuleSoft Certified Developer (MCD),
Integration ( MCIA) and Platform Architect
(MCPA)
• https://www.linkedin.com/in/gaza-nand-
6884a340/
- 7. All contents © MuleSoft Inc.
Anypoint Exchange and
Nexus Repository with
MuleSoft
- 8. All contents © MuleSoft Inc.
Mule Maven Plugin
The Mule Maven plugin enables you to integrate the packaging and deployment of your Mule applications with your Maven lifecycle.
The Mule Maven plugin is compatible with Mule runtime engine (Enterprise Edition) and with Mule Kernel (Community Edition). Mule provides built-in
Maven functionality.
All new projects created in Anypoint Studio 7 and later are configured with Maven by default. You can run the project with Maven from the command line,
or run it directly from Anypoint Studio
8
Mule Maven Plugin Goals
The Mule Maven plugin has three goals:
package
Generates the jar file for your project.
deploy
Automatically uploads and deploys your application in any of the application deployment targets (CloudHub, Runtime Fabric, or
On-Premises).
mule:deploy
Deploys an artifact from the specified location.
mule:undeploy
Automatically removes your application from any of the application deployment targets (CloudHub, Runtime Fabric, or On-
Premises).
- 9. All contents © MuleSoft Inc.
9
● It is very important to keep common libraries or assets at a central location or repository which can
be easily reused across multiple applications and maintain multiple versions of libraries in an
efficient manner.
Artifactory
● Different Repository Types
- Anypoint Exchange (Mulesoft Provided)
- Nexus (External Artifactory )
- JFrog (External Artifactory )
- 10. All contents © MuleSoft Inc.
10
Anypoint Exchange is the MuleSoft provided hub or repositories of reusable assets such as APIs, policies, API spec
fragments, templates, examples, custom assets, and integration assets such as connectors. You can publish, share,
discover, and reuse assets within your organization to facilitate collaboration, boost productivity, and promote standards.
Exchange assets are accessible from many places like:
o Anypoint Studio (connectors, templates, and examples).
o API Manager (APIs, API groups, and policies)
o Runtime Manager (applications).
Anypoint Exchange Repository
- 11. All contents © MuleSoft Inc.
11
● First create common application.
● Update the application POM file with below changes.
o Update GroupId as OrganizationId in POM.xml.
o Add Classifier as Mule-Plugin for Mule-Maven-Plugin.
o Add Anypoint Exchange Distribution Management in POM.xml of your Common
Library
o Add Anypoint Exchange Credentials Into settings.xml of your local .m2 Repository
● Publish the Common Library to the Anypoint Exchange
o mvn clean package deploy
Publishing the Assets to Anypoint Exchange
- 12. All contents © MuleSoft Inc.
12
● Create your Mule application.
● Update the application POM file with below changes.
o Add the dependency in your application POM.xml
● Import the Error Handler xml file.
● Configure default error handler.
Use Assert from Anypoint Exchange in Mule Application
- 13. All contents © MuleSoft Inc.
13
• Nexus Repository OSS is an open source repository that supports many artifact formats.
• It allows you to proxy, collect, and manage your dependencies so that you are not constantly juggling a collection of JARs. It makes it easy
to distribute your software..
• Nexus is the repository for storing the application, common libraries, assets, or utility binaries.
• It is very much capable of storing and maintaining multiple versions of the same assets, libraries, templates or utilities, etc.
Nexus Repository
- 14. All contents © MuleSoft Inc.
14
● Install and Run Nexus.
● Create your Nexus Repository.
● Create common application.
● Update the application POM file with below changes.
o Add Classifier as Mule-Plugin for Mule-Maven-Plugin
o Add Nexus Repo Distribution Management in POM.xml of your Common Library.
o Add Maven Plugin in pom.xml
o Add Nexus Server Credentials Into settings.xml of your local .m2 Repository
● Publish the Common Library to the Nexus Repository
o mvn clean package deploy
Publishing the Assets to Nexus Repository
- 15. All contents © MuleSoft Inc.
15
● Create Mule application.
● Update the application POM file with below changes.
o Add the dependency and repository in your application POM.xml
o Import the mule-common-logging-handler.xml file.
Use Assert from Nexus Repository in Mule Application
- 17. All contents © MuleSoft Inc.
Answer the question and win a voucher for MuleSoft training
Quiz Time
- 19. All contents © MuleSoft Inc. 19
● Share:
○ Next Meetup will announce soon
○ See Virtual | MuleSoft Delhi – Anypoint Monitoring- Gaining Insight into API’s
MuleSoft Meetups Delhi
○ RSVP asap and learn something new about API Monitoring
● Feedback:
○ Tweet using the hashtag #MuleSoftMeetups
○ Fill out the survey feedback and suggest topics for upcoming events
○ Become a Feature Atendee of Delhi Mulesoft Meetup Group -
https://meetups.mulesoft.com/delhi/
○ Contact Organizers for any new topic suggestion
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Invite your network to join: https://meetups.mulesoft.com/
What’s next?
- 20. All contents © MuleSoft Inc. 20
● Anurag Sharma : https://www.linkedin.com/in/anurag-sharma-59745b20/
Host of today’s Meetup :
You can connect to me if you want to be Next Speaker
Ask anything to Join MuleSoft Community
Can Request to become a Featured Attendee of Delhi MuleSoft Meetup
- 21. All contents © MuleSoft Inc.
Introduce yourself or share any problems and innovative ideas
Networking time
- 22. All contents © MuleSoft Inc.
Thank you
don’t forget to provide the
Feedback of this Meetup