https://github.com/brcolow/jaxb-schema-gen
Groovy script that generates Java classes from JAXB schemas (WSDL and XSD).
https://github.com/brcolow/jaxb-schema-gen
Last synced: 2 months ago
JSON representation
Groovy script that generates Java classes from JAXB schemas (WSDL and XSD).
- Host: GitHub
- URL: https://github.com/brcolow/jaxb-schema-gen
- Owner: brcolow
- License: mit
- Created: 2024-02-16T01:44:21.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-27T06:25:22.000Z (about 1 year ago)
- Last Synced: 2024-12-26T16:30:52.494Z (4 months ago)
- Language: Groovy
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# jaxb-schema-gen
Groovy script that generates Java classes from JAXB schemas (WSDL and XSD).
## Usage
Add `gmaven-plus-plugin` configuration to your project that will execute this projects' Groovy scripts that create the
user specified JAXB sources/services. The WSDL files are specified using `jaxb.wsdl` Maven property, XSD files are
specified using `jaxb.xsd` property, and a bindings file can be specified via `jaxb.bindings` (see example POM
configuration).## Example (Using FedEx Web Services)
```pom
${project.build.directory}/generated-sources
${project.build.directory}/generated-classes
${project.build.directory}/generated-resources
${project.basedir}/src/main/resources/bindings/bindings.jxb
${project.basedir}/src/main/resources/xsd/TrackService_v16.xsd
${project.basedir}/src/main/resources/wsdl/TrackService_v16.wsdl;${project.basedir}/src/main/resources/wsdl/RateService_v31.wsdl
com.fedex
com.fedex.FedexTrackingService
org.codehaus.gmavenplus
gmavenplus-plugin
3.0.2
generate-jaxws-sources
execute
generate-sources
file:///${project.basedir}/../jaxb-schema-gen/src/main/groovy/JaxSourcesGenerator.groovy
true
true
generate-jaxws-services
execute
prepare-package
file:///${project.basedir}/../jaxb-schema-gen/src/main/groovy/JaxServiceGenerator.groovy
org.apache.groovy
groovy-all
4.0.18
pom
runtime
org.codehaus.mojo
build-helper-maven-plugin
3.5.0
add-source
generate-sources
add-source
${jaxws.generated.sources}
```