Project

General

Profile

Actions

How to Access a Maven Repository » History » Revision 4

« Previous | Revision 4/26 (diff) | Next »
Henning Blohm, 11.12.2013 14:14


Maven Repos Support

The main idea behind this concept is to hook existing Maven repositories in as component repositories. At first this is most useful for libraries, later this may be extended to other archetypes.

Maven repository suppport can be implemented in z2-base and does not require core changes.

Name mappings

Artefacts in Maven repos have a fully qualified name of the form

<groupId>:<artifactId>:<version>

where <groupId> is something like org.acme, <artefactId> is something like mylibrary and <version> is a fully structured major.minor.micro style version or a version that has an appended "-SNAPSHOT" qualifier indicating an non-well-defined version that may receive intermediate updates.

When exposed via a Z2 component repository Maven artefacts will be addressed by their fully qualified name as module name and with an archetype specific in-module component name.

E.g. a library of packaging jar, will translate to

<groupId>:<artefactId>:<version>/jar

In order to simplify management of version vectors, the smart_props approach may be utilized.

Dependencies of Maven repo artefacts get mapped to Java dependencies, for the case of the jar archetype after parsing a corresponding POM file.

Updated by Henning Blohm about 11 years ago · 4 revisions