Extension:MavenRepository

Description
MavenRepository is an extension of MediaWiki to retreive files and informations from a Maven repository.

Example: http://www.janus-project.org/index.php/Download

Installation

 * 1) Download MavenRepository,
 * 2) Unpack the archive in your Mediawiki directory
 * 3) add require_once('extensions/MavenRepository/MavenRepository.php'); in your LocalSettings.php.

Configuration
MavenRepository extension uses several global variables which may be set in LocalSetting.php:
 * Defines the paths to the Maven repositories. It is an associative array of.
 * Defines the paths to the Maven repositories. It is an associative array of.

Usage
MavenRepository provides several parser functions, explained below. In all the following explanations MID represents a standard Maven group-artefact pair: a group identifier, a column character, and an artifact identifier.

Reports group identifier from the given module identifier. For example: Gives: org.arakhne.afc

Reports artifact identifier from the given module identifier. For example: Gives: arakhneVmutils

Reports the version of the maven module. For example: Gives: 1.0-SNAPSHOT

Reports the distribution date of the maven module. For example: Gives: 03 Aug 2010 07:04:39

Reports the URL of the last release of the maven module. For example: Gives: http://download.tuxfamily.org/arakhne/maven/org/arakgne/afc/arakhneVmutils/1.0-SNAPSHOT/

Reports the URL of the last release of the maven module. For example: Gives: Label

Reports the path to the Jar of the last release of the maven module. For example: Gives: org/arakgne/afc/arakhneVmutils/1.0-SNAPSHOT/arakhneVmutils-1.0-SNAPSHOT-sources.jar

Reports the name to the Jar of the last release of the maven module. For example: Gives: arakhneVmutils-1.0-SNAPSHOT-sources.jar

Reports the size to the Jar of the last release of the maven module. For example: Gives: 1.7 GB

Reports the hyperlink to the Jar of the last release of the maven module. For example: Gives: arakhneVmutils-1.0-SNAPSHOT-sources.jar

Reports a list of the hyperlinks to the Jar files of the last release of the maven modules inside the given group. For example, because,  , and   are artifacts in group  : Gives:
 * arakhneLogger
 * arakhneRefs
 * arakhneVmutils

Changes

 * 1.2 : is added. It is expanded to the size of the jar file in the Maven repository.
 * 1.1 : is introduced. It permits to output a list of links to jars for all artifacts inside a group..
 * 1.0 : First Public Release on Mediawiki website.