{"id":29643072,"url":"https://github.com/ultimatedogg/xsd2java","last_synced_at":"2026-05-21T05:02:09.157Z","repository":{"id":305739978,"uuid":"54225860","full_name":"UltimateDogg/xsd2java","owner":"UltimateDogg","description":"Generate java source code from xsd-shemas.","archived":false,"fork":false,"pushed_at":"2016-03-18T20:47:51.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T20:02:52.094Z","etag":null,"topics":["gradle","gradle-plugin","xjc","xsd2java"],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UltimateDogg.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,"zenodo":null}},"created_at":"2016-03-18T19:16:37.000Z","updated_at":"2017-03-06T22:01:57.000Z","dependencies_parsed_at":"2025-07-21T20:02:53.579Z","dependency_job_id":"371bf43c-80d9-4d3f-a4d1-9bdd3851f8b4","html_url":"https://github.com/UltimateDogg/xsd2java","commit_stats":null,"previous_names":["ultimatedogg/xsd2java"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/UltimateDogg/xsd2java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltimateDogg%2Fxsd2java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltimateDogg%2Fxsd2java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltimateDogg%2Fxsd2java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltimateDogg%2Fxsd2java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UltimateDogg","download_url":"https://codeload.github.com/UltimateDogg/xsd2java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UltimateDogg%2Fxsd2java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266398442,"owners_count":23922461,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["gradle","gradle-plugin","xjc","xsd2java"],"created_at":"2025-07-21T23:02:31.625Z","updated_at":"2026-05-21T05:02:09.139Z","avatar_url":"https://github.com/UltimateDogg.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Work in progress, not uploaded to bintray/jcenter yet\n\nxsd2java gradle plugin\n=========\n\nGradle plugin for generating java from xsd schemas\n\n### Issues\nIf you have any issues with the plugin, please file an issue at github, https://github.com/nilsmagnus/wsdl2java/issues\n\n### Contribution\nContributions are welcome as long as they are sane.\n\n#### Contributors\n- Nils Larsgård , https://github.com/nilsmagnus\n- Mats Faugli, https://github.com/fowlie\n- Thorben Schiller, https://github.com/thorbolo\n- Stefan Kloe, https://github.com/Pentadrago\n- Mattias Rundgren, https://github.com/matrun\n- \"s-doering\", https://github.com/s-doering\n\n### CXF\nThis plugin uses the xjc tool to do the actual work.\n\n### Tasks\n\n| Name | Description | Dependecy |\n| ---- | ----------- | --------- |\n| xsd2java | Generate java source from wsdl-files | CompileJava depends on xsd2java |\n| deleteGeneratedXsdSources | Delete all generated sources | Clean depends on deleteGeneratedXsdSources |\n\n## Usage\n\nTo use this plugin, you must\n- modify your buildscript to have dependencies to the plugin\n- apply the plugin\n- set the properties of the plugin\n- add the generated sources to your sourceset\n\n### Applying the plugin\n\n    buildscript{\n        repositories{\n            jcenter()\n            mavenCentral()\n        }\n        dependencies {\n            classpath 'no.nils:xsd2java:0.6'\n        }\n    }\n    apply plugin: 'no.nils.xsd2java'\n\n### Plugin options\n\n| Option | Default value | Description |\n| ------ | ------------- | ----------- |\n| jaxbVersion | \"+\" | Controls the JAXB version used to generate code.\n| deleteGeneratedSourcesOnClean | true | If you want to keep the generated sources under version control, set this option to false. |\n\n\nExample of specifying another JAXB version:\n\n    xsd2javaExt {\n        jaxbVersion = \"0.11.0\"\n    }\n\n\nExample of retaining the generated sources on clean:\n\n    xsd2javaExt {\n        deleteGeneratedSourcesOnClean = false\n    }\n    \n### Options for xsd2java\n| Option | Default value | Description |\n| ------ | ------------- | ----------- |\n| generatedXsdDir | \"generatedsources/src/main/java\" | Destination directory for generated sources sources to be placed. |\n| xsdDir | src/main/resources | Define the xsd files directory to support incremental build. This means that the task will be up-to-date if nothing in this directory has changed. |\n| wsdlsToGenerate | empty | This is the main input to the plugin that defines the xsds to process. It is a list of arguments where each argument is a list of arguments to process a xsd-file. The xsd-file with full path is the last argument. The array can be supplied with the same options as described for the jaxb plugin(https://jaxb.java.net/2.2.4/docs/xjc.html). |\n| encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. |\n| locale | Locale.getDefault() | The locale for the generated sources � especially the JavaDoc. This might be necessary to prevent differing sources due to several development environments. |\n| stabilizeAndMergeObjectFactory| false | If multiple XSDs target the same package, merge their ObjectFactory.java classes |\n\nExample setting of options:\n\n    xsd2java {\n        generatedXsdDir = file(\"generatedsources/xsd2java\")  // target directory for generated source coude\n        xsdDir = file(\"src/main/resources/myXsdFiles\") // define to support incremental build\n        xsdsToGenerate = [   //  2d-array of xsds and xjc-parameters\n                    ['src/main/resources/xsd/firstxsd.xsd'],\n                    ['-p','no.nils.xsd2java.sample','-verbose','src/main/resources/xsd/secondxsd.xsd']\n            ]\n        locale = Locale.GERMANY\n        encoding = 'utf-8'\n    }\n\n\n\n## Complete example usage\nThis is a an example of a working build.gradle for a java project. You can also take a look at this projects submodule \"consumer\" which has a working xsd compiling.\n\n    buildscript{\n        repositories{\n            jcenter()\n            mavenCentral()\n        }\n        dependencies {\n            classpath 'no.nils:xsd2java:0.6'\n        }\n    }\n\n    apply plugin :'java'\n    apply plugin :'no.nils.xsd2java'\n\n    repositories{\n        mavenCentral()\n    }\n\n    dependencies(){\n        testCompile 'junit:junit:+'\n    }\n\n    xsd2java {\n        generatedXsdDir = file(\"generatedsources/xsd2java\")  // target directory for generated source coude\n        xsdDir = file(\"src/main/resources/myXsdFiles\") // define to support incremental build\n        xsdsToGenerate = [   //  2d-array of xsds and xjc-parameters\n                    ['src/main/resources/xsd/firstxsd.xsd'],\n                    ['-p','no.nils.xsd2java.sample','-verbose','src/main/resources/xsd/secondxsd.xsd']\n            ]\n        locale = Locale.GERMANY\n        encoding = 'utf-8'\n    }\n\n### A notice on multi-module projects\n\nInstead of referring to absolute paths in your build-file, try using $projectDir as a prefix to your files and directories. As shown in the \"Complete example usage\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultimatedogg%2Fxsd2java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultimatedogg%2Fxsd2java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultimatedogg%2Fxsd2java/lists"}