How to Create JAR of a Maven Project and reuse that JARs in another Maven Project |
Vložit
- čas přidán 21. 08. 2024
- We Will learn:
How to Create JAR of Maven Project(main/test classes) ?
How to reuse these JARs in some other Maven Project ?
==========================
******AJ AUTOMATION*****
==========================
Hi guys, Please share the content whichever you find informative.
==:Useful Playlists for learning Test Automation:==
✅ Let's Learn the Concept in 5 To 10 Mins :=
• Test Automation Interv...
✅ Selenium series videos Playlist :=
• Selenium tutorial for ...
✅ Maven Tool videos playlist :=
• Maven Tool - Necessary...
✅ Selenium WebDriver Exceptions Playlist :=
• Selenium WebDriver Exc...
✅ Selenium Grid With Docker:==
• Selenium Grid With Docker
✅ Upload and Download Files in Selenium :=
• Selenium WebDriver - U...
✅ Excel and CSV files operations :=
• Excel and CSV -- Read ...
✅ Java Language Concepts :=
• Java Language Concepts...
✅TestNG Framework Videos:=
• TestNG Introduction an...
✅ Become Master in Xpath:=
• Xpath Introduction
✅ Protractor series videos playlist :=
• Let's Learn Protractor...
✅ Recent Uploads :=
• Recent Uploaded Videos
✅ GitHub Repo:= github.com/aja...
⚡️ Thanks for your support !! ⚡️
======================================
*************** Thanks for watching !!*************
======================================
⚡️ Keep Learning...Keep Sharing...Keep Growing. ⚡️
#LearnSeleniumInEasyWay #SeleniumWebDriver
Hi guys, if you like the content of the channel then plz share with your friends learning automation.
✅ Recent Uploads :=
czcams.com/play/PLlc_LrU50tljOnB-LUofJpBkeSMskcQVd.html
✅ Selenium series videos Playlist :=
czcams.com/play/PLlc_LrU50tliMZrnSa0a9geljzCijPDfq.html
✅ Maven Tool videos playlist :=
czcams.com/play/PLlc_LrU50tlgWOrybr-Ppffg6T_1cXeUb.html
✅ Java Language Concepts :=
czcams.com/play/PLlc_LrU50tliq2RV-1Yhr2IjJ5RqXCQjU.html
✅TestNG Framework Videos:=
czcams.com/video/-KEg20O6Mxs/video.html
✅ Become Master in Xpath:=
czcams.com/video/Wv1hHLhtnzw/video.html
✅ Protractor series videos playlist :=
czcams.com/play/PLlc_LrU50tlim53VdVwAmCnBr8M2x38y8.html
⚡️ Thanks for your support !! ⚡️
Excellent vedios, keep doing more, super clarity, good teaching skills. Thank you so much for your work....
Thanks for watching and your valuable feedback. 👍🙂
very useful...best maven playlist non entire CZcams
THANK YOU SO MUCH for sharing such a wonderful video. I was so confused with the concept of Maven but it helps me a lot in finding the right track. YOU ARE A GREAT TEACHER!!!
Thanks for watching.. I am happy that you find it helpful..
the video starts from 8:11 I really don't know why this guy is taking 8 min to explain all the advantages of this method. This is the reason why we here in the first place my man xd.
thanks for this clear explanation
Thanks for watching and keep learning..
Thanks a lot for your time, effort and clear explanations. Awesome video!
However, in my utility project I have an application.properties file with info regarding jdbc driver, url, user, pass... So when I create the JAR I want it to use the destination project application.properties file, rather than its own (or even combined properties if needed). But if I rename or delete the utility project application.properties file I can't generate the JAR file. Can you help me?
I like very much your videos. You are a good teacher. I will share with friends. It will very helpfull if you can add subtitles in english to some videos, so i'll make easily to non english-speakers
Thanks Rodolfo 🤗 for your valuable feedback, will chk for subtitles.
Thanks for watching 😊
Awesome video
Thanks for ur valuable feedback. Keep Learning Keep Sharing..
@@AJAUTOMATION where I can find the jar for the test?
Hi, thank you for your thorough and easy to understand explanations. Would it be possible for you to upload the images in which you drew the architecture of maven as well? I think this would be great help. Thanks.
Hi @Adnan, thanks for your valuable feedback.
Unfortunately I do not have the that images. But u can pause the video and plz take the screenshot.
Thanks for watching 🤗
awesome !
Thanks for commenting @jawad 🙂
can u please explain when we dont include jar plugin but using mvn clean install one jar will be created in target folder, here why we are using jar plugin again to generate jar file.
Jar generated Without JAR plugin might not contains all the necessary things we required e.g class files and dependencies. So we add JAR plugin so that we can include whatever things we required in that JAR.
Ex- classes from src/main/java, .classes from src/test/java, all the dependencies etc and generate JAR in a folder of your choice instead of target folder.
hi aj but what if project 1 is using some external jar then in project 2 we will also need those jars as well.
does maven creates normal jar or runnable jar file?
can we create runnable jar using maven?
Yes anything u required to run maven project that we need to import as external jars or add it's dependency. Maven can create jars wars as well. Maven can create runnable jar, There is video on the channel to create runnable jar using maven
@@AJAUTOMATION surelyi will watch those videos.
I am currently at 11th video of maven.
Side by side your testNG series also I am referring.
Soon I will start with docker grid from your channel.
Thanks for making these videos...they are very helpful.
For building the same in the unix environments, how to add external jar dependency on maven
Hi @chopper, I haven't done that.. But I think that can be done with SED cmd. Plz Check on Google for the same u can easily find it..
Hi Aj, I have a requirement where I need my framework to client so that they can use utils methods of src/main/java package while writing their test scripts in src/test/java package but the catch is client should not be able to view the implementation of the methods available in src/main/java, they can only extend and use method. How can I achieve this.
When i am running a similar code with mvn clean test OR mvn clean install, it is giving error: package ${Package name} does not exist. At end you showed running the code using testNG and not using Maven. Can you please clarify??
Yes, when running with Maven, we need to have JARs along with related dependency in POM xml file. This is covered in next video in the playlist. Plz watch it u will understand everything.
Helpful. But keep the video short and to the point please. Don't talk more than necessary.