2024-08-13 | Noble Numbat |
2024-06-21 | Maven 3.9.8 |
2024-02-02 | Maven 3.9.6 |
2023-10-11 | P2 repository deleted |
2023-10-10 | Maven 3.9.5 |
2023-08-21 | Maven 3.9.4 |
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
- Download MavenRepository,
- Unpack the archive in your Mediawiki directory
- add
require_once($IP.'/extensions/MavenRepository/MavenRepository.php');
in yourLocalSettings.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.
Wikitext | Rendering |
---|---|
{{#mvngroupid: org.arakhne.afc:arakhneVmutils}} | org.arakhne.afc |
{{#mvnartifactid:MID}}
Reports artifact identifier from the given module identifier.
Wikitext | Rendering |
---|---|
{{#mvnartifactid: org.arakhne.afc:arakhneVmutils}} | arakhneVmutils |
{{#mvnversion:MID[:type]}}
Reports the version of the maven module.
Wikitext | Rendering |
---|---|
{{#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.
Wikitext | Rendering |
---|---|
{{#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.
Wikitext | Rendering |
---|---|
{{#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.
Wikitext | Rendering |
---|---|
{{#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.
Wikitext | Rendering |
---|---|
{{#mvnjar: org.arakhne.afc:arakhneVmutils | '*' | modi | org/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.
Wikitext | Rendering |
---|---|
{{#mvnjarname: org.arakhne.afc:arakhneVmutils | '*' | modi | 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.
{{#mvnjarlink:MID[:type][:modifier]}}
Reports the hyperlink to the Jar of the last release of the maven module.
Wikitext | Rendering |
---|---|
{{#mvnjarlink: org.arakhne.afc:arakhneVmutils | '*' | modi | 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.
{{#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.
Wikitext | Rendering |
---|---|
{{#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.
Details
- Main authors: GALLAND Stéphane
- License: GPL
- Implementation: Php
- Stable Version: 1.2