{"id":13805760,"url":"https://github.com/mrserverless/dropwizard-xml","last_synced_at":"2025-05-13T21:31:22.867Z","repository":{"id":13028204,"uuid":"15707819","full_name":"mrserverless/dropwizard-xml","owner":"mrserverless","description":"Dropwizard bundle for processing and validating XMLs","archived":true,"fork":false,"pushed_at":"2018-12-30T11:38:26.000Z","size":297,"stargazers_count":32,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T20:46:34.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/mrserverless.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}},"created_at":"2014-01-07T15:13:17.000Z","updated_at":"2023-01-28T11:41:50.000Z","dependencies_parsed_at":"2022-08-03T04:06:09.330Z","dependency_job_id":null,"html_url":"https://github.com/mrserverless/dropwizard-xml","commit_stats":null,"previous_names":["yunspace/dropwizard-xml"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrserverless%2Fdropwizard-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrserverless%2Fdropwizard-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrserverless%2Fdropwizard-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrserverless%2Fdropwizard-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrserverless","download_url":"https://codeload.github.com/mrserverless/dropwizard-xml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254030981,"owners_count":22002681,"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-08-04T01:01:04.602Z","updated_at":"2025-05-13T21:31:17.841Z","avatar_url":"https://github.com/mrserverless.png","language":"Java","funding_links":[],"categories":["Open Source"],"sub_categories":["Eclipse"],"readme":"# Dropwizard XML Bundle\n\n[![Build Status](https://snap-ci.com/yunspace/dropwizard-xml/branch/master/build_image)](https://snap-ci.com/yunspace/dropwizard-xml/branch/master)\n[![Download](https://api.bintray.com/packages/yunspace/dropwizard/dropwizard-xml/images/download.svg)](https://bintray.com/yunspace/dropwizard/dropwizard-xml/_latestVersion)\n\u003ca href='https://bintray.com/yunspace/dropwizard/dropwizard-xml/view?source=watch' alt='Get automatic notifications about new \"dropwizard-xml\" versions'\u003e\u003cimg src='https://www.bintray.com/docs/images/bintray_badge_color.png'\u003e\u003c/a\u003e\n\n[Dropwizard](https://github.com/dropwizard/dropwizard) extension for high performance processing and validation of XML.\n\nUses:\n* [Jackson XML Provider](https://github.com/FasterXML/jackson-jaxrs-xml-provider) Jackson XML Provider with woodstox under the hood.\n* [Hibernate Validator](http://hibernate.org/validator/) same Dropwizard validation behvaiour for XML \n\n![IntelliJ IDEA Ultimate](images/icon_IntelliJIDEA.png) Coded with IntelliJ IDEA \n\n## Status\nThis project is built using [Snap-CI](https://www.snap-ci.com/) to enable [Continuous Delivery](http://www.thoughtworks.com/continuous-delivery).\nThere are no mysterious snapshots, every time the tests pass a new release tagged and uploaded to bintray, so you know exactly what you are pulling down. \n\nUntil 0.9.0, all versions are are pegged against Dropwizard's release number and try to use the same Jackson dependency to avoid conflicts. \nSee above badges for latest version to use. The table below give an indication of dependencies:\n\n| Dropwizard-XML   | Dropwizard     | Jackson   | Woodstox | Stax  |\n| ---------------- | -------------- | --------- | -------- |------ |\n| 0.7.1-X          | 0.7.1          | 2.3.3     | 4.1.4    | 3.1.1 |\n| 0.8.0-X          | 0.8.0          | 2.5.1     |    transitive    |\n| 0.8.1-X          | 0.8.1          | 2.5.2     |    transitive    |\n| 0.9.0-X          | 0.9.0          | 2.6.3     |    transitive    |\n\nAfter 0.9.0, the Dropwizard and Jackson dependencies are no longer bundled with this library. They are specified as \ngradle `compileOnly` scope (`provided` scope in Maven). It is up to you to provide the correct Dropwizard version \nand Jackson version combination in your classpath:\n\n| Dropwizard-XML   | Provide Dropwizard | Provide Jackson  | \n| ---------------- | ------------------ | ---------------- |\n| 39               | 0.9.1, 0.9.2       | 2.6.3            | \n| 39               | 0.9.3              | 2.6.7            |\n| 41+              | 1.0.0+             | 2.7.5+           |\n\nSee [dependencies](#Dependencies) below fore more details.\n\n## Dependencies\nDropwizard XML Provider is hosted by [Bintray JCenter](https://bintray.com/bintray/jcenter).\n\nYou can add the dependency to your project by Maven:\n\n    \u003crepositories\u003e\n        \u003crepository\u003e\n            \u003cid\u003ejcenter\u003c/id\u003e\n            \u003curl\u003ehttp://jcenter.bintray.com\u003c/url\u003e\n        \u003c/repository\u003e\n    \u003c/repositories\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.yunspace.dropwizard\u003c/groupId\u003e\n        \u003cartifactId\u003edropwizard-xml\u003c/artifactId\u003e\n        \u003cversion\u003e${dropwizardXmlVersion}\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n    \n    \u003c!-- provided dependencies --\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.dropwizard\u003c/groupId\u003e\n        \u003cartifactId\u003edropwizard-core\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0-rc4\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.fasterxml.jackson.jaxrs\u003c/groupId\u003e\n        \u003cartifactId\u003ejackson-jaxrs-xml-provider\u003c/artifactId\u003e\n        \u003cversion\u003e2.7.5\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.fasterxml.jackson.dataformat\u003c/groupId\u003e\n        \u003cartifactId\u003ejackson-dataformat-xml\u003c/artifactId\u003e\n        \u003cversion\u003e2.7.5\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n    \nOr Gradle:\n\n    repositories {\n        jcenter()\n        mavenCentral()\n    }\n    dependencies {\n        compile \"com.yunspace.dropwizard:dropwizard-xml:${dropwizardXmlVersion}\"\n        compile \"io.dropwizard:dropwizard-core:1.0.0-rc4\"\n        compile \"com.fasterxml.jackson.jaxrs:jackson-jaxrs-xml-provider:2.7.5\"\n        compile \"com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.7.5\"\n    }\n    \nIf you are using versions lesser than Dropwizard `1.0.0` and Jackson `2.7.5` you need to add [jackson-datatype-jdk7](https://github.com/FasterXML/jackson-datatype-jdk7)\n\nMaven: \n\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.fasterxml.jackson.datatype\u003c/groupId\u003e\n        \u003cartifactId\u003ejackson-datatype-jdk7\u003c/artifactId\u003e\n        \u003cversion\u003e2.6.7\u003c/version\u003e\n        \u003cscope\u003ecompile\u003c/scope\u003e\n    \u003c/dependency\u003e\n\nGradle:\n\n    compile \"com.fasterxml.jackson.datatype:jackson-datatype-jdk7:2.6.7\"\n\n## Usage \n\nAdd the XMLBundle\n\n    bootstrap.addBundle(new XmlBundle());\n\nAnnotate your Resources:\n\n    @Produces(MediaType.APPLICATION_XML) @Consumes(MediaType.APPLICATION_XML)\n\nAnnotate your model POJO with jackson-dataformat-xml bindings:\n\n    @JacksonXmlRootElement @JacksonXmlProperty @JacksonXmlElementWrapper @JacksonXmlText\n\nUse validation/ignore annotations as you would normally:\n\n    @NotNull @Min @JsonIgnore\n\n## Advanced Usage\n\nYou can further custom the behaviour of your XML Mapper by passing in a JacksonXmlModule:\n\n    bootstrap.addBundle(new XmlBundle(jacksonXmlModule));\n\nOr enable various serialisation/deserialisation features\n\n    XmlBundle indentXmlBundle = new XmlBundle();\n    indentXmlBundle.getXmlMapper().enable(SerializationFeature.INDENT_OUTPUT);\n    bootstrap.addBundle(indentXmlBundle);\n\n##Sample project\nSee [dropwizard-xml-example](https://github.com/yunspace/dropwizard-xml/tree/master/dropwizard-xml-example) subproject.\n\n## TODO\nAdd support for [aalto](https://github.com/FasterXML/aalto-xml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrserverless%2Fdropwizard-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrserverless%2Fdropwizard-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrserverless%2Fdropwizard-xml/lists"}