{"id":18029352,"url":"https://github.com/dharmit/wildfly-swarm-with-che","last_synced_at":"2025-06-19T23:35:34.693Z","repository":{"id":148119247,"uuid":"82169044","full_name":"dharmit/wildfly-swarm-with-che","owner":"dharmit","description":"Simple WildFly Swarm example to run on Eclipse Che. Taken from","archived":false,"fork":false,"pushed_at":"2017-03-17T10:05:30.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T05:29:15.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/wildfly-swarm/wildfly-swarm-examples/tree/master/jaxrs/jaxrs","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dharmit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-16T10:30:19.000Z","updated_at":"2017-02-16T10:38:41.000Z","dependencies_parsed_at":"2023-05-19T04:45:38.883Z","dependency_job_id":null,"html_url":"https://github.com/dharmit/wildfly-swarm-with-che","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/dharmit%2Fwildfly-swarm-with-che","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmit%2Fwildfly-swarm-with-che/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmit%2Fwildfly-swarm-with-che/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmit%2Fwildfly-swarm-with-che/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dharmit","download_url":"https://codeload.github.com/dharmit/wildfly-swarm-with-che/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249545,"owners_count":20908212,"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-10-30T09:08:56.995Z","updated_at":"2025-04-04T21:12:30.740Z","avatar_url":"https://github.com/dharmit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAX-RS .war With Swagger Enabled Example\n\nThis example takes a normal JAX-RS build, and wraps it into\na `-swarm` runnable jar with `swagger` enabled on the resources.\n\n\u003e Please raise any issues found with this example in our JIRA:\n\u003e https://issues.jboss.org/browse/SWARM\n\n## Project `pom.xml`\n\nThis project is a traditional JAX-RS project, with maven packaging\nof `war` in the `pom.xml`\n\n    \u003cpackaging\u003ewar\u003c/packaging\u003e\n\nThe project adds a `\u003cplugin\u003e` to configure `wildfly-swarm-plugin` to\ncreate the runnable `.jar`.\n\n    \u003cplugin\u003e\n      \u003cgroupId\u003eorg.wildfly.swarm\u003c/groupId\u003e\n      \u003cartifactId\u003ewildfly-swarm-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e${version.wildfly-swarm}\u003c/version\u003e\n      \u003cexecutions\u003e\n        \u003cexecution\u003e\n          \u003cgoals\u003e\n            \u003cgoal\u003epackage\u003c/goal\u003e\n          \u003c/goals\u003e\n        \u003c/execution\u003e\n      \u003c/executions\u003e\n    \u003c/plugin\u003e\n\nTo define the needed parts of WildFly Swarm, a dependency is added\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.wildfly.swarm\u003c/groupId\u003e\n        \u003cartifactId\u003ejaxrs\u003c/artifactId\u003e\n        \u003cversion\u003e${version.wildfly-swarm}\u003c/version\u003e\n    \u003c/dependency\u003e\n\nThis dependency provides the JAX-RS APIs to your application, so the\nproject does *not* need to specify those.\n\nTo enable the `swagger` fraction, another dependency is added\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.wildfly.swarm\u003c/groupId\u003e\n        \u003cartifactId\u003eswagger\u003c/artifactId\u003e\n        \u003cversion\u003e${version.wildfly-swarm}\u003c/version\u003e\n    \u003c/dependency\u003e\n\nThis dependency will cause the WildFly Swarm `swagger` fraction to\nenable swagger with zero configuration. You can browse the swagger.json\nat http://localhost:8080/swagger.json.\n\nAdditional application dependencies (in this case `joda-time`) can be\nspecified and will be included in the normal `.war` construction and available\nwithin the WildFly Swarm application `.jar`.\n\n## Run\n\n* mvn package \u0026\u0026 java -jar ./target/example-jaxrs-war-swarm.jar\n* mvn wildfly-swarm:run\n* From your IDE, run class `org.wildfly.swarm.Swarm`\n\n## Use\n\nSince WildFly Swarm apps tend to support one deployment per executable, it\nautomatically adds a `jboss-web.xml` to the deployment if it doesn't already\nexist.  This is used to bind the deployment to the root of the web-server,\ninstead of using the `.war`'s own name as the application context.\n\n    http://localhost:8080/\n\nBe aware that you will notice an exception in the logs when accessing the page.\nThis is simply an overly verbose message from WildFly that the 'favicon.ico' file couldn't be found.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharmit%2Fwildfly-swarm-with-che","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdharmit%2Fwildfly-swarm-with-che","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharmit%2Fwildfly-swarm-with-che/lists"}