Being a beginner in Java SE development, I am quite interested in using Maven to manage and organize my project properly.
However, though I am more than willing to learn how to use it, I don't want to spend more time understanding Maven than actually coding. Yes, I know about Maven's perks and drawbacks, I am only worried about the learning curve.
This project will last 5 months, with a single developer — yet more people might have to maintain it later. I know larger projects are very successful with it, but is using Maven worth it in my case, or is it a waste of time?
The Need for Maven Maven is chiefly used for Java-based projects, helping to download dependencies, which refers to the libraries or JAR files. The tool helps get the right JAR files for each project as there may be different versions of separate packages.
Can Maven Be Used For Non-Java Projects? Yes. There are hundreds of archetypes for Maven, ranging from Java web application development to eBook publishing.
To run the maven project, select it and go to “Run As > Java Application”. In the next window, select the main class to execute. In this case, select the App class and click on the Ok button. You will see the “Hello World” output in the Console window.
But if I ask why would you prefer Maven based Java project over simple Java project? Many may give just a normal answer like “Maven has the ability to download dependencies automatically based on the dependencies block you put in respective maven project's pom.
Maven looks complicated at first, but it really is a huge time saver once you know the basics. Starting is not that hard, and the experience will be really useful for any other future java project of pretty much any size. I'd go for it. Do you have 5 minutes? ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With