Skip to content

camilolopes/archetype-webapps-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Maven Archetype-webapps-module

webapps module archetype maven for creating web application with Hibernate, Spring, Jersey, DBUnit and Util Java API separated by modules back/front-end.

###Required

  • Maven installed

###Features

  • DAO Generic implemented;
  • Service Generic implemented;
  • Structure for DBUnit done;
  • back/front end separated in modules: webapps-core and webapps-web
  • flyway plugin setup for db migration;

###How to Install local?

Step 1

git clone git@github.com:camilolopes/archetypewebappsmodule.git

Step 2

  • Go to the folder and execute:
mvn clean install 

Step 3

  • create new maven project via Eclipse ;
  • in Catalog choose All Catalogs;
  • in filter type: br.

Now its is expected you see in group id: br.com.its.archetypes

  • choose the archetype and go ahead clicking in next

Step 4 Resolving dependency in module webapps-web

This module has dependency of webapps-core. The archetype has default configuration, but you must update according to your project. Check the steps:

Steps

  • import maven project webapps-core and webapps-web for your IDE;
  • open webapps-web/pom.xml ;
  • remove webapps-core 1.0.0 of dependency (its default of archetype and it does not work for your custom structure);
  • click in add;
  • type webapps;
  • Choose webapps-core according to groupId that was defined when you created the project;

Testing

If you did not change any default configuration in pom.xml of the modules, now we can test.

  1. go to parent module and execute:
mvn clean install 
  1. now starting apps
mvn tomcat:run
  1. Access http://localhost:8080/webapps-web/

Conclusion

webapps-module archetype is flexible to change and to be customatized according to your project. Feel free and improve it and send pull request.

About

webapps module archetype maven for creating web application with Hibernate, Spring, Jersey, DBUnit and Util Java API separated by modules back/front-end.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%