- Notifications
You must be signed in to change notification settings - Fork0
Nordes/demo-multimodule
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Starter for Spring 5 + Api + Dynamic plugin (demo project)
Following the guide from:http://websystique.com/maven/creating-maven-multi-module-project-with-eclipse/?fbclid=IwAR2CIXUHUeVESvqkNSURb7rLufA3HNJw0TEVspVEIcjJ8S985U2BUoxXono
And then the following resource:https://howtodoinjava.com/maven/maven-parent-child-pom-example/
> mvn archetype:generate"-DgroupId=com.honosoft.demo.multimodule""-DartifactId=demo-multimodule">cd demo-multimodule
From there, you can delete thesrc
folder. It won't be of any uses for us.
Edit the pom file and set the packaging topom
<packaging>pom</packaging>
> mvn archetype:generate"-DgroupId=com.honosoft.demo.multimodule""-DartifactId=demo-multimodule-plugin-api"
Don't forget to edit thepom
file and be sure it's a JAR packaging. And also that the parent is marked as a relative path (pom)
<relativePath>../pom.xml</relativePath>
> mvn archetype:generate"-DgroupId=com.honosoft.demo.multimodule""-DartifactId=demo-multimodule-plugin-twitter"
If not there you will have issue so please edit your settings.xml (maven folder)
<profile> <id>spring-mvc-quickstart</id> <repositories> <repository> <id>spring</id> <url>http://kolorobot.github.io/spring-mvc-quickstart-archetype</url> </repository> </repositories> </profile>
After you can run this
> mvn archetype:generate`"-DarchetypeGroupId=pl.codeleak"`"-DarchetypeArtifactId=spring-mvc-quickstart"`"-DarchetypeVersion=5.0.0"`"-DgroupId=com.honosoft.demo.multimodule"`"-DartifactId=demo-multimodule-rest"`"-DarchetypeRepository=http://kolorobot.github.io/spring-mvc-quickstart-archetype"`"-Pspring-mvc-quickstart"
> mvn clean install
> mvn package
(From the project itself)
> mvn -pl demo-multimodule-rest tomcat7:run
Access your website at:http://localhost:8080
Nordès Ménard-Lamarre
MIT?