Consider the parent bookmarks of the project and the rest of the 3 modules, security and model, referring to Spring docs . It has no dependencies, as in the Spring document, only basic setup from a multi-module point of view.
To create parent maven project in non-interactive / batch mode
mvn archetype:generate \ -DarchetypeGroupId=org.codehaus.mojo.archetypes \ -DarchetypeArtifactId=pom-root \ -DarchetypeVersion=RELEASE \ -DgroupId=bookmarks \ -DartifactId=bookmarks \ -Dversion=0.0.1-SNAPSHOT \ -DinteractiveMode=false
Create auxiliary modules in non-interactive mode / batch mode.
cd to your newly created root directory. Referring to the answer @ Chris.H
-Dpackage is the package structure. Here are the bookmarks. If not specified, it will consider the artifactId file as the default package
mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=RELEASE \ -DgroupId=model \ -DartifactId=model \ -Dversion=0.0.1-SNAPSHOT \ -Dpackage=bookmarks \ -DinteractiveMode=false
To create a new module in eclipse goto File-> new-> other-> maven-> maven module, it immediately appears in the package explorer of the eclipse workspace.
Or from cli, cd inside the parent folder, bookmarks and run the following, this will create a project, and then you should import into eclipse as a maven project or you can work from the parent, here the project bookmarks
mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DarchetypeVersion=RELEASE \ -DgroupId=security \ -DartifactId=security \ -Dversion=0.0.1-SNAPSHOT \ -Dpackage=bookmarks \ -DinteractiveMode=false
Novice Jan 15 '17 at 13:24 2017-01-15 13:24
source share