Audience: developers building or changing this repository. Integrators should use README.md and Maven Central coordinates. See SECURITY.md before committing.
- JDK 8+ with
JAVA_HOMEset (seemaven.compiler.releaseinpom.xml). - Maven 3.6+ on
PATH.
Dependencies resolve from Maven Central unless you are installing a local SNAPSHOT (below). This POM has no sibling Maven modules.
The first number of au.gov.nehta:mhr-wsdl is the Java SE version that this types JAR targets. 8.0.0 is javax with 12 Service stubs; 11.0.0.1 and later are Jakarta with 12 stubs. See README.md.
Consumers that pin mhr-wsdl to ${project.version} (including mhr-b2b-client) must use the same version as this pom.xml.
From the project root:
mvn -B "-Dgpg.skip=true" clean verify
This line (8.0.0) compiles committed types - it does not run wsimport.
| Goal | Command |
|---|---|
| Compile + attach sources/Javadoc | mvn -B "-Dgpg.skip=true" clean verify |
| Skip tests | mvn -B "-Dgpg.skip=true" clean verify "-DskipTests=true" |
| Install SNAPSHOT to the local Maven repository | mvn -B "-Dgpg.skip=true" clean install |
GPG signing is skipped by default (-Dgpg.skip=true). Release builds: -Dgpg.skip=false.
- Compile:
javax.xml.bind:jaxb-api2.3.1,javax.xml.ws:jaxws-api2.3.1, andjavax.jws:javax.jws-api1.1. - Runtime SOAP stack:
com.sun.xml.ws:jaxws-rt2.3.7 in consuming applications (this JAR does not ship it). maven-enforcer-pluginrejects Metrowebservices-*andjakarta.*XML API coordinates on the classpath.
mvn install here is enough for any unpublished consumer of au.gov.nehta:mhr-wsdl at ${project.version}. Integrators using GA versions from Maven Central do not need a source checkout.
Maintainer notes: MAINTAINERS.md.
Generated Java under src/main/java (outside wsdls/) is committed. The root pom.xml does not run wsimport.
To refresh types after a WSDL change on this line:
- Regenerate from the WSDL/XSD in this repository (
src/main/resources/wsdl/,src/main/java/wsdls/) usingwsimporton Java 8 /javax. - Preserve public API: same class names, packages, and
mhr_overridexmldsig layout. - Fix known JAXB Javadoc issues (for example replace
{@link byte[]}with{@code byte[]}inmhr_override/). - Run
mvn -B "-Dgpg.skip=true" clean verifyand update CHANGELOG.md.
Type regeneration for new MHR releases on Jakarta lines is on 11.0.0.1 and later.
- Do not commit keystores, production MHR URLs, populated
settings.xmlwith release credentials, orlocal.propertieswith secrets. See SECURITY.md. 8.0.0: generated Java undersrc/main/javais frozen - this POM has nowsimport/ XJC profile.- Line endings: the repository uses LF (see
.gitattributes). On Windows, rungit config core.autocrlf falsein your clone before committing.