Maven Complete Tutorial with IntelliJ
Vložit
- čas přidán 15. 07. 2024
- Maven Complete Tutorial For Beginners. Maven IntelliJ. In this tutorial we are going to learn all the concepts you need to know to start working with Maven in your Projects.
✍️Source Code and Link for Written Tutorial:
programmingtechie.com/2020/12...
00:00 Start
00:58 What is Maven ?
01:34 Installing Maven
02:41Configure Maven in IntelliJ
03:32 Creating your First Maven Project
04:49 Maven Folder Structure Explained
06:17 Maven Core Concepts
09:50 Dependencies
12:51 Transitive Dependencies
14:48 SNAPSHOT & RELEASE Dependencies
15:35 Dependency Scopes
17:29 Repositories
19:19 Build Lifecycle
23:30 Plugins and Goals
30:56 Multi Module Projects
36:53 Profiles
⭐️⭐️ You can follow me in Social Media through below Links⭐️⭐️
Twitter: / sai90_u
Blog: programmingtechie.com/
Dev.to: dev.to/saiupadhyayula
Facebook Page: / programmingtechie
You can follow me on Twitter at: twitter.com/sai90_u
As someone who's worked in FAANG for 6+ years, I have to commend this video for its concise and extremely effective tutorial. Thank you!!!
from scratch and to the point... respect 🙌👏
straight to the point and very very helpful. By far the most descriptive and the best video ever made on Maven. Thanks Bud.
Crystal clear!
No more confusion around Maven!
Thank you and keep up the good work!
Thank you glad you liked the Tutorial
I have been working on maven for 4-5 years now, but for the first time I learned what those thing actually are that I have been using. Thanks and keep going
Thank you , very good and easy to understand tutorial for someone who have no idea what maven is about.
Thank you for this brilliant work !! Made my day
Straight to the Point Hats Off . Congrats!
I don't like videos easily but your explanation on the topic was simple, clear and concise. Great work brother. 👍👍
Perfect. The difference between your vedio and rest of the vedios on this topic is simple: You know what your are talking while other may be not.
Excellent Tutorial with Excellent pace. Very well edited. Must have given too much time to edit and make the tutorial perfect for beginner. Keep creating such tutorials. Kudos and Cheers!!
Great content and delivery. Keep up the good work. Subscribed!
This gave solid foundation of maven... Thank you so much dear❤️🙏🙏
This was really useful. Thanks a lot.
Amazing tutorial!!!!
length is short but all topics are coverd perfectly good job sir
Thank you. Very good tutorial with clear examples!
I can´t believe its working now! Thank you!
Brilliant work. No faffing about & straight to the point with examples. Keep up the good work!
Thank you 🙂
I accidentally find your channel and this is great. This is great your content is great never stop keep it up🙏🙏🙏❤️❤️❤️
Too much valuable..i van understand easily.thank you so much❤️❤️
Excellent course, thank you very much!
This video is SOOOOOO GOOOOD! Thank you so muh man!!
i needed you to replace most of my college professors in college, bro!
One place to learn complete maven configurations!! Quality content
Valuable content, much appreciatetc!
thank you so much for this tutorial. Really helped a lot
Thanks brother learnt like champ...it is very crysp and clear...
thx a lot for this video. straight forward, perfect explanation speed and super info structure :)
Amazing Video, Thank you so much ! Clear & concise
thank you so much. Your explanation is really clear and you also create a documentation to re-read it.
Your videos are of very good quality 👍 please continue the good work
Cool! Thanks for sharing bro!!
I'm learning Maven so I can convert a Java Web project to a Laravel project, because a client need this asap!
Thank you! Awesome tutorial! 💛
You are an awesome teacher!
dude, you are a LEGEND
thanks man, for the great content.
Superb..!!
It helped me a lot in my professional work.
Great tutorial, thanks!
Great tutorial! Love it.
Thank you so much, crystal clear
Informative yet to the point.
Great content, thanks!
An amazing free online resource!
Thank you for your awesome explanation
Brilliant!
Excellent! Expected Basics
Amazing!! Thanks!
very good tutorial. thank you! Regards from Poland.
Very helpful, thank you!
Thank you so much!.
Nice content. Really appreciate your effort.
Can you please create another short video on dependencymanagement and pluginmanagement that you have covered here in brief?
spot on
good video, thank you very much!
Thank you!
U rocked it
👏informative for beginners
Clear content 👌
Great Tutorial
good job! Keep it up :)
You the best 🎉🎉🎉🎉
Thank you man, very good and easy to understand tutorial for someone who have no idea what maven is about.
Thanks, Glad you liked it
Subscribed, very good explanation 🔥
Great Video Explanations and if you keep it up your channel will definetly grow, also could you make a Spring Boot Video Tutorial thanks.
Thanks, you covered a lot in this one.
By the way, I think M2_HOME should point to home folder of maven, not the bin folder!
Great work¡ thank
Best tutorial
mja aa gya
awsome
perfect
Superb explaination!!
Thanks, Glad you liked it
thank yoooooooouu
nice proejct
Best
Hi, thank you for this video, it is a nice summary! I watched that till the end and it was a nice recap for me what the Maven is used for. However, if it were first time for me watching a tutorial about the Maven, it would be too fast :) I think you could slow down a bit in your videos ;)
Noted, I wanted to have fast paced videos at the beginning, I slowed down my pace in the recent videos 😄
concise content. could have added difference between parent pom and dependency
First, thank you sir for your great video!
I have a question about surefire unit test.
In my pc, junit5 test do not work for the version in the video , so I updated to the latest version(2022.07.05)
It worked for that version, but still, surefire do not run any test without @test annotation in test class
however, inside this video, it seems that it works without @test annotation in test class!
I wonder if you did any special settings to make it work
again, this video was really helpful for me to understand and write some simple maven projects, thanks :)
can you explain with an example about and tag
please make the complite playlist on spring framwork project like E-commerce
Nice video
Thank you :)
Although you have explained it quite well,no doubt in that but you have missed very important thing here while adding . You have taken example url and said it will work if we use actual nexus url but it’s wrong. It will fail even with actual nexus url as you haven’t explained how that tag will be used. Until and unless you haven’t add your I’d in setting.xml ,it will not work. I think it’s worth explaining.
Thanks for the feedback :) 👍
Hey @Programming Techie ,really wonderful video, amazing. Can you help me ,I have a doubt,why are we defining plugins inside pom.xml when we can run them directly using the buttons available in intellij IDEA( in the right hand side). Please help. THANK YOU .
As you can see in the video already there is no need to define the plugins explicitly but it's a good idea to define the necessary plugins in pom.xml and manually define the version we need.
In this way your project will pretty independent whereever you try to build it not only in Intellij
On running "mvn clean test" I am getting this error
# Created at 2021-02-24T21:37:34.326
Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
# Created at 2021-02-24T21:37:34.326
Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
Hey i got an error when i tryd to build my project on IntelliJidea it said; Build failed project model inaccessible; so i will have to implement this pom.xml file with all of its dependencies and plugins etc.... ?
How do I add an external jar that i have separately downloaded.
i did exactly what you said for installation but getting "'mvn' is not recognized as an internal or external command,
operable program or batch file." in command prompt
Hello sir, I'm creating a multi-Maven module project in IntelliJ and can't figure out if there's a way to compile all the Maven modules into a single jar file. Let's say I have three modules: maven-child-project-1, maven-child-project-2, and maven-child-dependency. Is there a way to configure Maven such that when you run "mvn clean package", all the Maven modules are collapsed into a single jar file? Thanks!
Hi if you have some independent maven projects,you can use maven assembly plugin to assemble individual jars into a single jar.
@@ProgrammingTechie Is there a configuration within maven-assembly-plugin that does that for you? And which pom.xml should I put that configuration in?
Brilliant stuff. One thing makes me to comment is I notice you're using Brave browser, I guess you're using Linux as well?
No I am on windows :)
How can i get a maven archetype?
When will you upload CZcams Clone Series videos and other series?
Hi abhinav I am still building the front end of the CZcams clone app, so it may take sometime to finish the tutorial, and this time I want to upload one single video instead of multiple parts. meanwhile I am planning to upload some other spring and java related tutorials.
You can check out the source code of CZcams clone app here - github.com/SaiUpadhyayula/youtube-clone
27:11 Why two things, source and target?
There is one thing in this video I take issue with. Around the 5:30 mark in the video he talks about the resource folder in Maven. He says that is where you put static files like property files and XML files. That is totally correct. But then he goes on to say that if you have a web application you can also put HTML files in the resource folder. That is NOT how a Java based web application is built. Maven has a particulary archty[pe (think of it as different variation of maven projects) specifically for web applications. That is the correct way to create a Maven project for a Java based web application. For those web applications, a webapp folder under the /src/main folder so the path would be /src/main/webapp under that folder a separate folder would be created to hold your HTML files. Most IDEs that offer to the option to create a Maven project will offer the option for a standard Java application and another for a Java web application. The exception to this would be if you are building a web application with Spring Boot but that is entirely different topic.
When I mentioned this point, I exactly had spring boot based web applications in mind, as I was more experienced with it, but yes I see your point as this is a maven based tutorial.
command not found: mvn
Don't press enter, press Cmd/Ctrl + Enter
What is your intelijidea theme?
It's gradianto plugins.jetbrains.com/plugin/12334-gradianto
If we don't change that groupid while we are creating our project is there any problem?
No it should not be any problem
@@ProgrammingTechie one more doubt Iam getting dependency not found error.How can it get resolved?
Which theme is you are using in intelij
Gradianto
Thanks sir and awesome lecture. appreciate your work.
@@mohammadfahim796 Thanks 🙂
7:50 this is a parent for all the superpom files? what?
It started ok, but then a bunch of tools and actions were happening without a specific reason to me. Moving on to another more simple tutorial here :(
Thanks for the feedback
Xclnt Xplanation.
Thank you :)
Complete maven tutorial video in eclipse???!