1. create maven parent project,
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=pap-core -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
2. Get inside a project directory, cd pap-core
3. Edit pom.xml and add "pom "
4. Create sub-module, pap-core library
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=api-response -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
5. Edit pop.xml for sub-module, "jar "
6. Create sub-module api-application,
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=api-application -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
7. Edit pop.xml for sub api-application, "jar "
8. As the sub-module api-application is consuming api-response library, add the dependency under dependencies node,
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=pap-core -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
2. Get inside a project directory, cd pap-core
3. Edit pom.xml and add "
4. Create sub-module, pap-core library
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=api-response -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
5. Edit pop.xml for sub-module, "
6. Create sub-module api-application,
mvn archetype:generate -DgroupId=com.pap.core -DartifactId=api-application -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4
7. Edit pop.xml for sub api-application, "
8. As the sub-module api-application is consuming api-response library, add the dependency under dependencies node,
9. Build the project using, mvn clean install
Reference :
1. https://books.sonatype.com/mvnex-book/reference/multimodule-sect-intro.html
2. https://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Response.html
Comments
Post a Comment