Re-Use your maven project into another maven project
Hello World, Once I needed to use one of my ongoing java+maven projects into another java+maven project as its dependency. So I decided to publish the work, that I did to solve my problem. So, just to give you a quick picture of the problem, the following is the flow/requirement: So to use your already existing java+maven project, you have to just add the reference of it in your new project's POM.xml file as follows: And, in your existed project POM file add a 'Maven Jar Plugin' under build And, Now you build/Install("mvn clean install") your existing project to get the jar in the following directory location: "path_to_m2/repository/groupID /artifactID /version /* -test-jar.jar" and you are ready to go.