{"id":19209915,"url":"https://github.com/orende/jsp-tomcat-maven-example","last_synced_at":"2025-06-28T04:32:57.517Z","repository":{"id":214338344,"uuid":"736277475","full_name":"orende/jsp-tomcat-maven-example","owner":"orende","description":"An simple JSP app, WAR-packaged, Tomcat-deployed, Maven-built.","archived":false,"fork":false,"pushed_at":"2024-03-02T11:23:57.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T16:39:45.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"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/orende.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":"2023-12-27T13:15:58.000Z","updated_at":"2024-03-02T11:13:22.000Z","dependencies_parsed_at":"2024-01-02T14:26:58.004Z","dependency_job_id":"ecde7907-078d-46ce-9d49-2431788c919a","html_url":"https://github.com/orende/jsp-tomcat-maven-example","commit_stats":null,"previous_names":["orende/jsp-tomcat-maven-example"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orende%2Fjsp-tomcat-maven-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orende%2Fjsp-tomcat-maven-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orende%2Fjsp-tomcat-maven-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orende%2Fjsp-tomcat-maven-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orende","download_url":"https://codeload.github.com/orende/jsp-tomcat-maven-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240282179,"owners_count":19776630,"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":[],"created_at":"2024-11-09T13:33:36.466Z","updated_at":"2025-02-23T07:22:39.860Z","avatar_url":"https://github.com/orende.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example JSP project with Tomcat and Maven\n\nA simple JSP project to introduce working with Maven.\nThe project is packaged as a war file and deployed onto a dockerized Tomcat server.\n\n## Building\n\nThe below command removes the target folder, compiles the code, runs the tests and creates a WAR file.\n\n`mvn clean install`\n\n## Running locally\n\nThe below command compiles the code, runs the tests, creates a WAR file and deploys it onto an in-memory Jetty web server.\n\n`mvn install jetty:run`\n\nYou can now access the app with a brower at http://localhost:8080. You can also send HTTP requests to the REST API at\nhttp://localhost:8080/rest/hello.\n\n### Deploying to Tomcat\n\nTo deploy the code onto a dockerized Tomcat server, use the following commands:\n\n```shell\nmvn clean install\ndocker run \\\n-it --rm \\\n-v $PWD/target/tomcatjspexample-1.0-SNAPSHOT.war:/usr/local/tomcat/webapps/ROOT.war \\\n-p 8080:8080 \\\ntomcat:9.0\n```\n\n### Using a Docker container for the database\n\nTo setup a dockerized MySQL db and initialize it with schemas, run the following:\n```shell\n# create a MySQL docker container with a root user and db\ndocker run \\\n--name some-mysql \\\n-e MYSQL_ROOT_PASSWORD=my-secret-pw \\\n-e MYSQL_DATABASE=testdb \\\n-p 3306:3306 \\\n-d mysql:8.0\n# test the connection to the db\nmysql -h localhost -P 3306 --protocol=tcp -u root -p\n# run a flyway migration\nflyway \\\n-user=root \\\n-password=my-secret-pw \\\n-url=jdbc:mysql://localhost:3306/testdb \\\n-locations=filesystem:/$PWD/src/main/resources/db/migration \\\nmigrate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forende%2Fjsp-tomcat-maven-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forende%2Fjsp-tomcat-maven-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forende%2Fjsp-tomcat-maven-example/lists"}