Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Java demo with multi module and dynamic plugins [INCOMPLETE... demo purposes]

NotificationsYou must be signed in to change notification settings

Nordes/demo-multimodule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

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/

Create the multi-project

> 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>

Create an API project (Data contract)

> 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>

Create one plugin

> mvn archetype:generate"-DgroupId=com.honosoft.demo.multimodule""-DartifactId=demo-multimodule-plugin-twitter"

Create the MVC app

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"

To compile

> mvn clean install

To package

> mvn package (From the project itself)

To run tomcat

> mvn -pl demo-multimodule-rest tomcat7:run

Access your website at:http://localhost:8080

Author

Nordès Ménard-Lamarre

License

MIT?

About

Java demo with multi module and dynamic plugins [INCOMPLETE... demo purposes]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp