referencing resources in Maven Artifacts - highsource/jaxb-tools GitHub Wiki
The URI syntax for Maven artifact resources is as follows:
maven:groupId:artifactId:type:classifier:version!/my/schema.xsd
-
groupIdis required. -
artifactIdis required. -
typeis optional, defaults tojar. -
classifieris optional, default to none. -
versionis optional if artifact is defined in project dependencies or dependency management. -
!/is used as resource delimiter.
A few examples:
-
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a!/a.xsd-a.xsdfrom the mainmaven-jaxb2-plugin-tests-episodes-aJAR. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a:jar!/a.xsd- equivalent to above. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a:jar:!/a.xsd- equivalent to above. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a:jar::!/a.xsd- equivalent to above. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a:::!/a.xsd- equivalent to above. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a:::0.8.1!/a.xsd- using a specific version, type is defaulted tojar. -
maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-episodes-a::sources!/a.xsd-a.xsdfrom the sources JAR.