MediaWiki Extension MavenRepository

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($IP.'/extensions/MavenRepository/MavenRepository.php');
    in your LocalSettings.php.

Configuration

$wgMvnRepoPaths
Defines the paths to the Maven repositories. It is an associative array of (repository_local_path => repository_url).

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.

{{#mvngroupid:MID}}

Reports group identifier from the given module identifier.

WikitextRendering
{{#mvngroupid: org.arakhne.afc:arakhneVmutils}}org.arakhne.afc

{{#mvnartifactid:MID}}

Reports artifact identifier from the given module identifier.

WikitextRendering
{{#mvnartifactid: org.arakhne.afc:arakhneVmutils}}arakhneVmutils

{{#mvnversion:MID[:type]}}

Reports the version of the maven module.

WikitextRendering
{{#mvnversion: org.arakhne.afc:arakhneVmutils | '*'}}1.0-SNAPSHOT

The type permits to specify the type of the module:

{{#mvndate:MID[:type]}}

Reports the distribution date of the maven module.

WikitextRendering
{{#mvndate: org.arakhne.afc:arakhneVmutils | '*'}}03 Aug 2010 07:04:39

The type permits to specify the type of the module:

{{#mvnrepository:MID[:type]}}

Reports the URL of the last release of the maven module.

WikitextRendering
{{#mvnrepository: org.arakhne.afc:arakhneVmutils | '*'}}http://download.tuxfamily.org/arakhne/maven/org/arakgne/afc/arakhneVmutils/1.0-SNAPSHOT/

The type permits to specify the type of the module:

{{#mvnrepositorylink:MID[:type][:label]}}

Reports the hyperlink of the last release of the maven module.

WikitextRendering
{{#mvnrepositorylink: org.arakhne.afc:arakhneVmutils | '*' | Label}}Label

The type permits to specify the type of the module:

{{#mvnjar:MID[:type][:modifier]}}

Reports the path to the Jar of the last release of the maven module.

WikitextRendering
{{#mvnjar: org.arakhne.afc:arakhneVmutils | '*' | modiorg/arakgne/afc/arakhneVmutils/1.0-SNAPSHOT/arakhneVmutils-1.0-SNAPSHOT-modi.jar

The type permits to specify the type of the module:

The modifier permits to specify the specifical version to output.

{{#mvnjarname:MID[:type][:modifier]}}

Reports the name of the Jar of the last release of the maven module.

WikitextRendering
{{#mvnjarname: org.arakhne.afc:arakhneVmutils | '*' | modiarakhneVmutils-1.0-SNAPSHOT-modi.jar

The type permits to specify the type of the module:

The modifier permits to specify the specifical version to output.

{{#mvnjarlink:MID[:type][:modifier]}}

Reports the hyperlink to the Jar of the last release of the maven module.

WikitextRendering
{{#mvnjarlink: org.arakhne.afc:arakhneVmutils | '*' | modiarakhneVmutils-1.0-SNAPSHOT-modi.jar

The type permits to specify the type of the module:

The modifier permits to specify the specifical version to output.

{{#mvnjarlist:GID[:type][:modifier]}}

Reports a wiki list of hyperlinks to the Jar of the last release of the maven modules inside the given group.

WikitextRendering
{{#mvnjarlist: org.arakhne.afc | '*' | modi

The type permits to specify the type of the module:

The modifier permits to specify the specifical version to output.

Details