Skip to content

PavlivAndriy/AgileSoftware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating a project

  1. Create in IntelliJ Maven based application based on maven-archetype-webapp Archetype groupId is com.softserverinc.edu artifactId agiledev

  2. Modify pom.xml file for Spring MVC with no web.xml configuration

  3. Issue command Maven->Reimport

  4. Delete web.xml file

  5. Create directories

    src/main/webapp/WEB-INF/resoures src/main/webapp/WEB-INF/layouts src/main/webapp/WEB-INF/views

  6. Put files in above directories. These files are responsibile for web interface

  7. Put file logback.xml in resources directory

  8. In main directory create packages java.com.softserverinc.edu

  9. In edu package create packages config

  10. Make directory java as Sources Root

  11. In config package create classes WebAppInitializer WebConfig

  12. Delete file src/main/webapp/index.jsp

  13. Create local server Tomcat

    1. Add Deployment agiledev:war exploded
    2. Remove a folder there if it exists
    3. Add in Before lunch: Build agiledev:war exploded artifact
  14. Go to in main menu File->Project Structure->Artifacts. Click right on agiledev:war exploded Double click right on WEB-INF folder to open it than on + sign and choose Directory Content and choose WEB-INF folder. This will include WEB-INF subfolders in war file

    Working with DBmaintain

    Database

    In a Database will be user with admin rights, e-mail: admin@ss.com, and password: admin

    Developing

    Database

    For creating empty tables, please, issue command from project root dir

    mvn dbmaintain:updateDatabase@db-update-create

    For creating tables and populating them with some reference data, please, issue command from project root dir

    mvn dbmaintain:updateDatabase@db-update-refdata

    For dropping a database is a Maven command issued from project root dir

    mvn dbmaintain:clearDatabase

    For removing the data of all database tables

    mvn dbmaintain:cleanDatabase

    Troubleshooting

    In case a Tomcat will give you a warning like org.apache.catalina.webresources.Cache.getResource Unable to add the resource ... to the cache because there was insufficient free space

    Please, In your $CATALINA_BASE/conf/context.xml add block before

    <Resources cachingAllowed="true" cacheMaxSize="100000" />

About

Agile tools for software teams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published