When I started my project, I wasn't aware of Maven.. I realized the importance of it after the project had already grown to a pretty large size. At that time I was really into rapid development, hence I didn't really want to break the flow. So, I deferred plugging maven into the project. Now I have a little breathing space, so I'd like to add maven into the project.
What do your suggest I do or should I even do it? I have Spring, Struts, Log4J, Hibernate and JAX-RS in the project.
Simply, just add the pom. xml file under your root (context) project folder. This will make your project as Mavenize project. Once you have added the pom file, then you can execute maven build life cycle commands from IDE terminal.
Ok.. I did eventually shift the project to maven. Here's what I did.
In case you have a multi module project, then convert the other modules to maven as described above and add the dependent module to pom.xml of the other module.
If you have custom jars which aren't maven based, you can add them in the src/main/resources folder and then add the jars to build path.
There you go! Easy peasy!
I have a skeletal project setup for Spring + Maven + EC2. You can use that for creating, configuring maven and automating deployment process.
https://github.com/varunachar/maven-release
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