Honestly? Similar case. They told us to use Maven, yet no one told us how to use Maven. And because they forced us to do a lot, we didn't even have the time of day to even investigate how Maven works.
I’m still new to development and have been branching out on my own in addition to my classes and I kept running across maven but didn’t understand what it did. It became unavoidable when I committed to spending the next month trying to learn spring boot. Your explanation has made it so clear and simple to me and helped my growing understanding as a programmer. Thanks
Why you don't have hundreds of thousands of subscribers I don't know. Extremely well spoken and explained. Precisely what I needed and I see you have JUnit testing too. Perfect. Thanks for the effort, it was appreciated. Not everyone can cut to the chase in a clear and concise manner. Have a super day further.
Great tutorial. Just quick points for everyone. In multimodule project we can see and the difference from normal and tags is - dependency/plugin inside management tag are managed by parent but are not inherited by children implicitly. Child need to explicitly define the dependency/plugin in their pom.xml but can omit things like version/exclusions/configuration etc. which will be managed by parent. This helps in proving the dependency to the module which needs it.
I am a full stack guy, but haven't developed anything on Java for years now. This video was a perfect way for me to get back into some open source contributions. Really appreciate this, thanks for being a part of this community.
@MarcoCodes you are a funking ROCKSTAR! I finally not only understand what maven does but know how to get the thing working. Just ran my first test thanks so much!!!!
Thank you. I understood this time finally. I would love to explore more on Maven. Recently I am supposed to push my Kotlin Multi Modules as shared libraries this video have given me those basics
Marco - Thank you for this. I was struggling with one simple step being new to IntelliJ and coming back to Maven after years of other work. This is one of the best walk throughs I've seen. +me = new Subscriber.
very clear tutorial, thanks so much. i like how you not only tell us what the most important parts of maven are, but also tell us WHY they're important. for instance, you mentioned that the pom.xml is important, gave an explanation of what it does, and then told us that since all maven projects have pom.xml, it helps with standardizing projects. thus, we can expect most maven projects to look more or less the same in structure. very useful tutorial.
I'm so new in JAVA world, I come from C# world, and your videos helped me to understand in a simple way everything. Thanks and please continue making videos. Regards from Argentina
Great tutorial, sort of one stop shop to revise maven concepts quickly before the interviews and also brush up after every few months when need to get back to basics to nail down more technical stuff around maven.
I'm a data scientist used to work with python and just started to built ML projects with Java. Awesome video, I understand enough to just start building a proper project
Dead simple explanations. Dunno how you do it. Thank you Marco. Love your website as well, such deep and comprehensive articles. I have one (1) ask 🙏🏿 Kindly consider reducing your paid courses for some of us here in Nigeria 😣🤲🏿 Thank you
Really good. Now I am learning Spring MVC on Selenium Express channel to understand Spring MVC and start from Spring Boot... by your course appeared several days ago. Thanks!
Marco thanks a lot for this comprehensive tutorial. Im hoping to learn SpringBoot and this has been a great tutorial about java package management. Keep up the good work.
Hi, Marco! Thanks a lot for all your videos. Really cool and useful stuff for newbies and sometimes for experienced fellows, who want to refresh knowledges. You're very charismatic and nice speaker. Please continue share some free stuff it's very important for community. Thanks a lot! Stay true!
If anyone is wondering why "mvn clean" does not remove the "target" directory in VS Code (which was my case), it has to do with enabled "auto build". Just go into settings, search for Java Autobuild and disable it.
Thank you for the detailed explanation really helpful - I enjoyed learning more about the version shortcuts - I'm going to dig more into those to see what else I can streamline for my maven builds. Out of curiosity, is there a reason you are using Maven with IntelliJ instead of Eclipse?
When I use the Maven tool in IntelliJ and call install:install, the error occurs: "The packaging for this project did not assign a file to the build artifact". What ist the problem?
Hi with maven, how would I add a dependency to source code I have in another project locally? I downloaded an API project, which has a testclient that import java classes from another project lib folder. Unfortunately just loading it up in IDEA or VSCode when I go to build I get build error. With VSCode it's so dumb that I need to edit a pom.xml file to add the dependency. I would like to do this manually so I understand what is going on better.
In short: You wouldn't add another source code folder project. If there are some random .jar files from a lib folder, you would follow this here: fabianlee.org/2017/02/20/maven-installing-a-3rd-party-jar-to-a-local-or-remote-repository/ and then simply reference the project from the local repo.
Yup, in IDEA that works, but in Maven you just cannot add another _source code_ (i.e. .java files) project to a pom.xml. You'll have to reference it as a dependency that comes from a local/remote repo, hence the link above. Does that make sense?
@@MarcoCodes Well, as a tutorial I would prefer you show the correct way of doing things in maven :) The fact that people rarely use it means they don't know about it or are working incorrectly regarding the mix of unit tests compared to integration tests. I do see people 90% percent of the time just run "mvn clean install" when "clean" only deletes the target which is not required 90% of the time and the "install" is also not needed since people mostly don't publish their own project as a repo locally unless they are part of the platform/framework internal team in the company.
Hi Marco, do you have any idea that why the command mvn spring-boot:run will only execute on the jar file in repo instead of the target folder in the module?
Hey @Deicide, it should actually do neither (jar in repo, target folder), instead it should run your app "in-place". That's because afaik it doesn't ever run the package/install step, i.e. there is no jar being generated.
I don't know if this is what you meant by the question, but: You just put all your images and other static resources under "src/main/resources", instead of "src/main/java". If not, let me know.
Been going back and forth between the two over the years. Slightly prefer Maven, because it's harder to shoot yourself in the foot with it, but happy to use either one.
Thank you, this was a lifesaver. For whatever reason, my university decided to completely skip explaining Maven before explaining Spring.
Glad it helped!
Honestly? Similar case. They told us to use Maven, yet no one told us how to use Maven. And because they forced us to do a lot, we didn't even have the time of day to even investigate how Maven works.
same!
Mine started using Javalin but never explained Maven.
I’m still new to development and have been branching out on my own in addition to my classes and I kept running across maven but didn’t understand what it did. It became unavoidable when I committed to spending the next month trying to learn spring boot. Your explanation has made it so clear and simple to me and helped my growing understanding as a programmer. Thanks
just have to say best tutorial i could find keep up the good work really helped md
Why you don't have hundreds of thousands of subscribers I don't know. Extremely well spoken and explained. Precisely what I needed and I see you have JUnit testing too. Perfect. Thanks for the effort, it was appreciated. Not everyone can cut to the chase in a clear and concise manner. Have a super day further.
Great tutorial.
Just quick points for everyone.
In multimodule project we can see
and
the difference from normal and tags is
- dependency/plugin inside management tag are managed by parent but are not inherited by children implicitly. Child need to explicitly define the dependency/plugin in their pom.xml but can omit things like version/exclusions/configuration etc. which will be managed by parent.
This helps in proving the dependency to the module which needs it.
I am a full stack guy, but haven't developed anything on Java for years now. This video was a perfect way for me to get back into some open source contributions. Really appreciate this, thanks for being a part of this community.
Glad you liked it!
@@MarcoCodes Im glad that your glad that he liked it
@@lemoi6462 oh guys, and I'm so glad that you all are glad he liked it!
I'm even glad-er than that!
same
The smoothest and the clearest explanation I've ever seen. Thanks, man)
Thank you :)
That sound you make right in the beginning put my cats into fight mode, haha.
Thanks for the video! Very helpful if you're new to the Java world.
Sorry about the cat! :D
Such a concise and to-the-point video. Probably the best video I have watched on this topic.
@MarcoCodes you are a funking ROCKSTAR! I finally not only understand what maven does but know how to get the thing working. Just ran my first test thanks so much!!!!
Thank you! :)
This was super helpful, I've always put off learning about Maven and now it seems way less daunting
Pro content given for free. Thanks Marco!!
Thank you. I understood this time finally. I would love to explore more on Maven. Recently I am supposed to push my Kotlin Multi Modules as shared libraries this video have given me those basics
Glad it was helpful!
Please keep going, we need more and more content about testing and best practicies
Just finished recording the next video - so....more is coming :)
@@MarcoCodes gr8 very excited
Marco - Thank you for this. I was struggling with one simple step being new to IntelliJ and coming back to Maven after years of other work. This is one of the best walk throughs I've seen. +me = new Subscriber.
Glad it helped. What was the step you struggled with?
very clear tutorial, thanks so much. i like how you not only tell us what the most important parts of maven are, but also tell us WHY they're important. for instance, you mentioned that the pom.xml is important, gave an explanation of what it does, and then told us that since all maven projects have pom.xml, it helps with standardizing projects. thus, we can expect most maven projects to look more or less the same in structure. very useful tutorial.
I'm so new in JAVA world, I come from C# world, and your videos helped me to understand in a simple way everything. Thanks and please continue making videos. Regards from Argentina
I'm in the same boat and am very surprised how complicated Java world is.
Compared to Java world, .NET world is pure heaven.
Beautifully explained. You've earned a subscriber sir! Kudos!
Great tutorial, sort of one stop shop to revise maven concepts quickly before the interviews and also brush up after every few months when need to get back to basics to nail down more technical stuff around maven.
The clearest explanation I've ever seen. Thanks
You are amazing! Thanks for this short and crisp video.
Thanks Marco. You're having amazing teaching style.
I'm a data scientist used to work with python and just started to built ML projects with Java. Awesome video, I understand enough to just start building a proper project
Glad it helped!
Dead simple explanations. Dunno how you do it. Thank you Marco.
Love your website as well, such deep and comprehensive articles.
I have one (1) ask 🙏🏿
Kindly consider reducing your paid courses for some of us here in Nigeria 😣🤲🏿
Thank you
awesome tutorial!! learning springboot with angular. I had to rebuild dependencies after adding. Learned so much more here. TY. HSG
That's a understandable, pratical and simple example from how to use maven. Congrats keep the excelent work!!
Really good. Now I am learning Spring MVC on Selenium Express channel to understand Spring MVC and start from Spring Boot... by your course appeared several days ago. Thanks!
Really good to explain and describe new things to people! You're doing an excellent job here!
Best video on Maven ever watched
I am a big fan. You are awesome. You are helping so many people
Thank you, Joseph!
Awesome !! Excellent intro to Maven. Thanks a bunch
Thank you for the short and very useful explanation. It would be good to have continuation of Maven topic with more advanced stuff
Incredible tutorial, fast and clear. Maven is a Java Swiss knife if you master it.
Wowww! That went smooooth. Really helpful video on maven.
Thank you Marco :)
I look forward to your next videos... with excitement and interest.
I'm currently doing a task related with maven. This tutorial seems so promisiing. I'll update here how my task goes.
MARCO THE G COMING AT IT AGAIN !!!! THX !!!!!!!
Thank you for the excellent content Marco. Simple & Clear.
Concepts are crystal clear😊
very good video, well explained and touching the basic concepts. thank you!
Wrapper❌ rappa✅.
Thanks buddy nice video
Marco thanks a lot for this comprehensive tutorial.
Im hoping to learn SpringBoot and this has been a great tutorial about java package management.
Keep up the good work.
loving your channel! subscribed and already told a few dev buddies to subscribe. great content
Very nice explained! Seeing Forward for more of this good stuff.
Excellent and concise tutorial, thanks!
Awesome work, sir.
Hi, Marco!
Thanks a lot for all your videos.
Really cool and useful stuff for newbies and sometimes for experienced fellows, who want to refresh knowledges.
You're very charismatic and nice speaker. Please continue share some free stuff it's very important for community.
Thanks a lot! Stay true!
Thank you!
Thanks!!! Love your teaching method
Thank you. Brilliant explanation.
WOW, thank you for such concise and clear explanation, great job! 👌🏼👌🏼
Brilliant tutorial, Thanks. Pls make more videos like this.
Thanks for making this video! Very nice!!
If anyone is wondering why "mvn clean" does not remove the "target" directory in VS Code (which was my case), it has to do with enabled "auto build". Just go into settings, search for Java Autobuild and disable it.
Thank you, thank you very very very much, You do best, Keep Going MAN
Clear explanation ...thanks sir...
Awesome tutorial!!!❤
Excellent class!
Thank you for the detailed explanation really helpful - I enjoyed learning more about the version shortcuts - I'm going to dig more into those to see what else I can streamline for my maven builds. Out of curiosity, is there a reason you are using Maven with IntelliJ instead of Eclipse?
I think IntelliJ is the much better IDE (and not just saying that because I work for JetBrains :) )
thanks for the video! you explained it really good
this was excellent. thank you!
Man, thank you for this!
Crystal 🔮 clear ❤️❤️❤️❤️ What a content.
When I use the Maven tool in IntelliJ and call install:install, the error occurs: "The packaging for this project did not assign a file to the build artifact". What ist the problem?
Only call "install", not "install:install" :)
Very valuable content. Thank you!
Bro You sound like hrithik roshan!! BTW it was out of context!! Nice work man!
Good video about Maven build tool. 👍
Amazing tutorial!! Thanks!
love your work
Please help mine isn't responding to the path when I key in mvn -v in the cmd prompt it doesn't do anything, I've been going in circle for 6 days now
Have you been able to make it work?
your hairstyle is epic.
Thanks a lot. Awesome explanation.
Marco great thanks indeed! It is amazing and really useful!
Very well explained. Thank you Macro :)
Nice tutorial. Could you please give the multi-module example project repository?
I should be a different branch in the linked source repository.
Marco can you please make a video explaining Maven Vs Gradle in a nice and easy manner?
Thank you for the wonderful tutorial
Great explanation
Hi with maven, how would I add a dependency to source code I have in another project locally? I downloaded an API project, which has a testclient that import java classes from another project lib folder. Unfortunately just loading it up in IDEA or VSCode when I go to build I get build error. With VSCode it's so dumb that I need to edit a pom.xml file to add the dependency. I would like to do this manually so I understand what is going on better.
In short: You wouldn't add another source code folder project. If there are some random .jar files from a lib folder, you would follow this here: fabianlee.org/2017/02/20/maven-installing-a-3rd-party-jar-to-a-local-or-remote-repository/
and then simply reference the project from the local repo.
@@MarcoCodes I know from IDEA, under project structure -> Libraries I can add a path to another project. How would I do this using maven?
Yup, in IDEA that works, but in Maven you just cannot add another _source code_ (i.e. .java files) project to a pom.xml. You'll have to reference it as a dependency that comes from a local/remote repo, hence the link above. Does that make sense?
awesome intro thanks!
Thank you very much!!! ❤❤❤
Hi Marco, Any reason you skipped the "verify" step?
Hey Omri, no specific reason, other than I somewhat have seen it more rarely used in projects in the past.
@@MarcoCodes Well, as a tutorial I would prefer you show the correct way of doing things in maven :)
The fact that people rarely use it means they don't know about it or are working incorrectly regarding the mix of unit tests compared to integration tests.
I do see people 90% percent of the time just run "mvn clean install" when "clean" only deletes the target which is not required 90% of the time and the "install" is also not needed since people mostly don't publish their own project as a repo locally unless they are part of the platform/framework internal team in the company.
Hi Marco, do you have any idea that why the command mvn spring-boot:run will only execute on the jar file in repo instead of the target folder in the module?
Hey @Deicide, it should actually do neither (jar in repo, target folder), instead it should run your app "in-place". That's because afaik it doesn't ever run the package/install step, i.e. there is no jar being generated.
@@MarcoCodes Thanks for you detailed explanation!
Thanks Marco!
That was cool!
Thank you
You are the best
Keep going
Do I really to learn this maven indepth as an aspiring DevOps engineer?
Maybe
Very nice, thanks 👍🏻
Thanks for the Video!
This man is crazy just for use the light theme in his IDE
No matter which theme, people complain :)
Thank you Marco! =)
the second time and i think there will be third One 👍
Fantastic.
how I build a simple module app with img resources?
I don't know if this is what you meant by the question, but: You just put all your images and other static resources under "src/main/resources", instead of "src/main/java".
If not, let me know.
@@MarcoCodes because when you do a manifest for the jar you put every image that is beign used so I thought I'll have to specify the images
Thank you! 🙌
Thank you very much!
Make same overview for Gradle, please!
nice video ma dude, now what do you use and prefer? Maven or gradle? and why?
Been going back and forth between the two over the years. Slightly prefer Maven, because it's harder to shoot yourself in the foot with it, but happy to use either one.
@@MarcoCodes thanksss
the best tutorial , tnx
amazing, thank you so much
Thank you very much!
Marco please make video on maven plugins..thanks for valuable content though
any specific questions about Maven plugins?