Arakhnê.org / Web Tools / MavenRepository

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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

{{#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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

{{#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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

{{#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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

{{#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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

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:

  • "snapshot" for snapshots,
  • "release" for no-snapshots, ie. releases,
  • "*" or "all" for either snapshot or release.

The modifier permits to specify the specifical version to output.

AuthorsStéphane GALLAND
Licenses
Operating SystemsOS Independent
ImplementationPHP

RssRecent releases

PackageVersion
MavenRepository1.2

No-screenshot

Project Spotlight

TeX-UPmethodology

A LaTeX style which permits to create Unified Process methodology (UP or RUP) based documents (document version, history, authors, validators, specification, task management, helping tools...).

No-screenshot

Project Spotlight

tinyMAS

A very small platform which permits to implement and run agent-based systems.