-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This project is a maven plugin that generates an XML catalog used to resolve URIs that reference resources inside dependencies.
Since 2018-02-20, you should not use anymore releases 1.X. Release 2 changes URI patterns, and declares a URI scheme dependency://
that denotes a resource inside a dependency.
This plugin allows to generate a catalog based on dependency declarations. It maps URIs to jar files, allowing to access a resource via its URI.
URIs are like dependency://<artifact>/path/to/resource.txt
where
<artifact>
may be :
-
compact :
artifactId
-
standard :
groupId+artifactId
-
full :
groupId+artifactId$version
artifact format is defined with uriPatterns configuration entry
path for generated file. It is a path, relative to ${project.basedir}
URI forms that will be processed by catalog.
Possible values are :
-
compact
:dependency://artifactId/path/to/res.txt
-
standard
:dependency://groupId+artifactId/path/to/res.txt
-
full
:dependency://groupId+artifactId$version/path/to/res.txt
If not defined, standard
is used.
the catalog entries to generate.
Possible values are :
public
rewriteSystem
rewriteURI
system
uri
If not defined, rewriteURI
and rewriteSystem
are used.
If defined, all catalog entries will be rewritten to this protocol. Usually, if defined, the value is cp:/
, and generated artifact will be used with cp-protocol.
Allows to include the project's artifact in generated catalog. Default is false
.
A list a <nextCatalog />
catalog entries.
List of artifacts to exclude from generate. artifacts must be specified as groupId:artifactId
. Both groupId
and artifactId
can be replaced by *
. excludes
and includes are exclusives, and must not be used together.
If excludes
is defined, all dependencies are used, except the ones that match excludes
. Project's artifact is never concerned by excludes.
List of artifacts to include. Each artifact must be specified as groupId:artifactId
. Both groupId
and artifactId
can be replaced by *
. includes
and excludes are exclusives, and must not be used together.
If includes
is specified, all dependencies that match includes are used. Project's artifact is processed neither by excludes nor includes
Allows to add <delegatePublic/>
entries to generated catalog
Each entry should be as :
<delegateEntry>
<startString>publicIdStartString</startString>
<catalog>catalog</catalog>
</delegateEntry>
Allows to add <delegateSystem/>
entries to generated catalog
Each entry should be as :
<delegateEntry>
<startString>publicIdStartString</startString>
<catalog>catalog</catalog>
</delegateEntry>
Allows to add <delegateURI/>
entries to generated catalog
Each entry should be as :
<delegateEntry>
<startString>publicIdStartString</startString>
<catalog>catalog</catalog>
</delegateEntry>
Samples are available, with all configuration options.