{"id":23070202,"url":"https://github.com/nordes/demo-multimodule","last_synced_at":"2025-04-03T10:14:14.601Z","repository":{"id":93504934,"uuid":"157398167","full_name":"Nordes/demo-multimodule","owner":"Nordes","description":"Java demo with multi module and dynamic plugins [INCOMPLETE... demo purposes]","archived":false,"fork":false,"pushed_at":"2018-11-13T15:03:07.000Z","size":197,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T23:27:41.746Z","etag":null,"topics":["demo","dont-use","dont-use-this-no-really","java-8","java-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nordes.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-13T15:02:34.000Z","updated_at":"2018-11-22T07:02:08.000Z","dependencies_parsed_at":"2023-03-05T08:45:28.371Z","dependency_job_id":null,"html_url":"https://github.com/Nordes/demo-multimodule","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nordes%2Fdemo-multimodule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nordes%2Fdemo-multimodule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nordes%2Fdemo-multimodule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nordes%2Fdemo-multimodule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nordes","download_url":"https://codeload.github.com/Nordes/demo-multimodule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981166,"owners_count":20863828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","dont-use","dont-use-this-no-really","java-8","java-plugin"],"created_at":"2024-12-16T06:20:17.493Z","updated_at":"2025-04-03T10:14:14.511Z","avatar_url":"https://github.com/Nordes.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create multi project\r\nStarter for Spring 5 + Api + Dynamic plugin (demo project)\r\n\r\nFollowing the guide from: http://websystique.com/maven/creating-maven-multi-module-project-with-eclipse/?fbclid=IwAR2CIXUHUeVESvqkNSURb7rLufA3HNJw0TEVspVEIcjJ8S985U2BUoxXono\r\n\r\nAnd then the following resource: https://howtodoinjava.com/maven/maven-parent-child-pom-example/\r\n\r\n## Create the multi-project\r\n```bash\r\n\u003e mvn archetype:generate \"-DgroupId=com.honosoft.demo.multimodule\" \"-DartifactId=demo-multimodule\"\r\n\u003e cd demo-multimodule\r\n```\r\n\r\nFrom there, you can delete the `src` folder. It won't be of any uses for us.\r\n\r\nEdit the pom file and set the packaging to `pom`\r\n```\r\n  \u003cpackaging\u003epom\u003c/packaging\u003e\r\n```\r\n\r\n## Create an API project (Data contract)\r\n```bash\r\n\u003e mvn archetype:generate \"-DgroupId=com.honosoft.demo.multimodule\"  \"-DartifactId=demo-multimodule-plugin-api\"\r\n```\r\n\r\nDon't forget to edit the `pom` file and be sure it's a JAR packaging. And also that the parent is marked as a relative path (pom)\r\n```xml\r\n    \u003crelativePath\u003e../pom.xml\u003c/relativePath\u003e\r\n```\r\n\r\n## Create one plugin\r\n```bash\r\n\u003e mvn archetype:generate \"-DgroupId=com.honosoft.demo.multimodule\"  \"-DartifactId=demo-multimodule-plugin-twitter\"\r\n```\r\n\r\n## Create the MVC app\r\nIf not there you will have issue so please edit your settings.xml (maven folder)\r\n```\r\n    \u003cprofile\u003e\r\n      \u003cid\u003espring-mvc-quickstart\u003c/id\u003e\r\n\r\n      \u003crepositories\u003e\r\n        \u003crepository\u003e\r\n          \u003cid\u003espring\u003c/id\u003e\r\n          \u003curl\u003ehttp://kolorobot.github.io/spring-mvc-quickstart-archetype\u003c/url\u003e\r\n        \u003c/repository\u003e\r\n      \u003c/repositories\u003e\r\n    \u003c/profile\u003e\r\n```\r\n\r\nAfter you can run this\r\n```bash\r\n\u003e mvn archetype:generate `\r\n        \"-DarchetypeGroupId=pl.codeleak\" `\r\n        \"-DarchetypeArtifactId=spring-mvc-quickstart\" `\r\n        \"-DarchetypeVersion=5.0.0\" `\r\n        \"-DgroupId=com.honosoft.demo.multimodule\" `\r\n        \"-DartifactId=demo-multimodule-rest\" `\r\n        \"-DarchetypeRepository=http://kolorobot.github.io/spring-mvc-quickstart-archetype\" `\r\n        \"-Pspring-mvc-quickstart\"\r\n```\r\n\r\n## To compile\r\n`\u003e mvn clean install`\r\n\r\n## To package\r\n`\u003e mvn package` (From the project itself)\r\n\r\n## To run tomcat\r\n```bash\r\n\u003e mvn -pl demo-multimodule-rest tomcat7:run\r\n```\r\n\r\nAccess your website at: [http://localhost:8080](http://localhost:8080)\r\n\r\n# Author\r\nNordès Ménard-Lamarre\r\n\r\n# License\r\nMIT?","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnordes%2Fdemo-multimodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnordes%2Fdemo-multimodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnordes%2Fdemo-multimodule/lists"}