{"id":23327779,"url":"https://github.com/apache/struts-archetypes","last_synced_at":"2025-08-22T21:32:12.597Z","repository":{"id":57738720,"uuid":"63399426","full_name":"apache/struts-archetypes","owner":"apache","description":"Mirror of Apache Struts Archetypes","archived":false,"fork":false,"pushed_at":"2024-12-20T13:15:54.000Z","size":1629,"stargazers_count":5,"open_issues_count":1,"forks_count":7,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-08-20T06:46:42.497Z","etag":null,"topics":["java","struts","web-framework"],"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/apache.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":"2016-07-15T07:00:06.000Z","updated_at":"2024-12-20T13:16:00.000Z","dependencies_parsed_at":"2024-01-25T23:06:20.294Z","dependency_job_id":"36b6a8da-8a2d-4d64-acfb-9613765aa3e0","html_url":"https://github.com/apache/struts-archetypes","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/apache/struts-archetypes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fstruts-archetypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fstruts-archetypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fstruts-archetypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fstruts-archetypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apache","download_url":"https://codeload.github.com/apache/struts-archetypes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apache%2Fstruts-archetypes/sbom","scorecard":{"id":201687,"data":{"date":"2025-08-11","repo":{"name":"github.com/apache/struts-archetypes","commit":"57b952cc0b5d12191d3f71e92afcd47c85edccaa"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/apache/.github/.github/SECURITY.md:1","Info: Found linked content: github.com/apache/.github/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/apache/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/apache/.github/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vv7r-c36w-3prj","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T22:56:27.377Z","repository_id":57738720,"created_at":"2025-08-16T22:56:27.377Z","updated_at":"2025-08-16T22:56:27.377Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271703784,"owners_count":24806527,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java","struts","web-framework"],"created_at":"2024-12-20T20:23:39.064Z","updated_at":"2025-08-22T21:32:10.564Z","avatar_url":"https://github.com/apache.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Struts 2 Maven Archetypes\n\nStruts 2 provides several [Maven](https://maven.apache.org/) archetypes that create a starting point for our own applications.\n\n## Quickstart\n\nA recommended way to start with Struts2 archetypes is to use `archetype:generate` goal with `filter` parameter.\n\n\n```\nmvn archetype:generate -Dfilter=org.apache:struts\n```\n\n## Available Archetypes\n\n### The Blank Convention Archetype (struts2-archetype-convention)\n\n#### Features\n\n+ Convention-based validation\n\n+ Example actions\n\n+ Package-level resource bundle\n\n+ Unit-testing\n\n+ Google AppEgine aware\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-convention\n```\n\n### The Blank Archetype (struts2-archetype-blank)\n\nThe Struts 2 Blank Archetype (“blank-archetype”) provides a minimal, but complete, Struts 2 application. It demonstrates some of the most basic Struts 2 concepts.\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-blank\n```\n\n### The Starter Archetype (struts2-archetype-starter)\n\nThe Starter archetype creates a more featured application using several common technologies used in production applications.\n\n#### Features\n\n+ Sitemesh integration\n\n+ Action example (instantiated both through Spring and Struts)\n\n+ Spring integration\n\n+ Validation example (action and action-alias level)\n\n+ Conversion example (global and action level)\n\n+ Resource bundle (both global, action and package level)\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-starter\n```\n\n### The AngularJS Archetype (struts2-archetype-angularjs)\n\n#### Features\n\n+ Convention-based Action Configuration\n\n+ Example actions with JSON Result\n\n+ Example for AngularJS and Struts2 Integration\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-angularjs\n```\n\n### The Portlet Blank Archetype (struts2-archetype-portlet)\n\nThe Portlet blank archetype creates a minimally populated JSR 168 portlet.\n\n#### Features\n\n+ View, Edit, and Help mode examples\n\n+ Simple form for preferences in Edit mode\n\n+ Can be deployed as a servlet or portlet application\n\n+ Can use Maven Jetty plugin to deploy with the pluto-embedded profile (usage 'mvn jetty:run -Ppluto-embedded', then access http://localhost:8080/\u003cartifactId\\\u003e/pluto/index.jsp)\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-portlet\n```\n\n### The Portlet Database Archetype (struts2-archetype-dbportlet)\n\nThe Portlet database archetype creates a simple JSR 168 portlet that displays the contents of a database table.\n\n#### Features\n\n+ Uses Spring and Hsql to show a real database query\n\n+ Builtin caching of query results\n\n+ View, Edit, and Help mode examples\n\n+ Simple form for preferences in Edit mode\n\n+ Can be deployed as a servlet or portlet application\n\n+ Can use Maven Jetty plugin to deploy as a servlet webapp\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myWebApp \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-dbportlet\n```\n\n### The Plugin Archetype (struts2-archetype-plugin)\n\n#### Features\n\n+ Example new result type\n\n+ Example XML-based configuration\n\n\n\n```\nmvn archetype:generate -B -DgroupId=com.mycompany.mysystem \\\n\t\t\t\t\t\t\t-DartifactId=myPlugin \\\n\t\t\t\t\t\t\t-DarchetypeGroupId=org.apache.struts \\\n\t\t\t\t\t\t\t-DarchetypeArtifactId=struts2-archetype-plugin\n```\n\n## Creating an Application Using a Maven Archetype\n\nRun the following command from your new project's parent directory. The project will be created in a sub-directory named after the  `artifactId` parameter.\n\nThe first two parameters,  `groupId` and  `artifactId`, should be set according to your needs:\n\n+  `groupId`  This should be the root package of your application, e.g., com.mycompany.myapp. \n\n+  `artifactId`  Names the project directory that will be created in the current directory.\n\n\n\n```\nmvn archetype:generate -B \\\n                       -DgroupId=tutorial \\\n                       -DartifactId=tutorial \\\n                       -DarchetypeGroupId=org.apache.struts \\\n                       -DarchetypeArtifactId=struts2-archetype-blank\n```\n\n### Staging repository\n\nIf the above command will fail because of missing archetypes in central repository, you can try to use staging repository.\n\nAdd staging repository to your settings.xml\n\n```\n\u003csettings\u003e\n  \u003cprofiles\u003e\n    \u003cprofile\u003e\n      \u003cid\u003estaging\u003c/id\u003e\n      \u003crepositories\u003e\n        \u003crepository\u003e\n          \u003cid\u003earchetype\u003c/id\u003e\n          \u003curl\u003ehttps://repository.apache.org/content/repositories/snapshots/\u003c/url\u003e\n          \u003creleases\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n            \u003cchecksumPolicy\u003efail\u003c/checksumPolicy\u003e\n          \u003c/releases\u003e\n          \u003csnapshots\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n            \u003cchecksumPolicy\u003ewarn\u003c/checksumPolicy\u003e\n          \u003c/snapshots\u003e\n        \u003c/repository\u003e\n      \u003c/repositories\u003e\n    \u003c/profile\u003e\n  \u003c/profiles\u003e\n\u003c/settings\u003e\n```\n\nUse `staging` profile in the command.\n\n```\nmvn archetype:generate -B \\\n                       -DgroupId=tutorial \\\n                       -DartifactId=tutorial \\\n                       -DarchetypeGroupId=org.apache.struts \\\n                       -DarchetypeArtifactId=struts2-archetype-blank \\\n                       -Pstaging\n```\n\n\n### Archetype Parameters\n\nThe  `-B` option runs  `archetype:generate` in batch mode; it avoids a prompt to confirm our settings.\n\n| Parameter | Description |\n|-----------|-------------|\n|groupId| The id for the group the application belongs to.  Usually is the root package for applications in your company, e.g. com.mycompany |\n|artifactId| The id for the project. The project will be created a sub-directory named after this parameter. |\n|archetypeGroupId| The group id of the archetype.  Will always be org.apache.struts for Struts archetypes |\n|archetypeArtifactId| The id of the archetype |\n\n## Command Quick Reference\n\nThese commands are used from the directory created by the archetype plugin (the project's sub-directory that was created in the previous step).\n\n+ To install\n\n\n\n```\n   mvn install\n```\n\n\n+ To run test cases\n\n\n\n```\n   mvn test\n```\n\n+ To clean up (removes generated artifacts)\n\n\n\n```\n   mvn clean\n```\n\n+ To package (creates a WAR file)\n\n\n\n```\n   mvn package\n```\n\n+ To grab necessary JAR files etc.\n\n\n\n```\n   mvn initialize\n```\n\n+ To run it with Jetty\n\n\n\n```\n   mvn jetty:run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fstruts-archetypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapache%2Fstruts-archetypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapache%2Fstruts-archetypes/lists"}