---
name: "mh_linkrepojar"
section: "1"
platform: "linux"
package: "maven-repo-helper"
version: "1.11"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mh_linkrepojar"
---

# mh\_linkrepojar(1)

Creates a link from a jar already installed in /usr/share/maven-repo.

## NAME

Maven - Creates a link from a jar already installed in /usr/share/maven-repo.

## SYNOPSIS

**mh\_linkrepojar** \[*option*\]... \[*pom*\] \[*link*\]...

## DESCRIPTION

Create symlinks from the jar in the Maven repository to any location, usually to a file located in */usr/share/java*.

Where

-

  \[pom\] is the location of the POM associated with the jar to install.

-

  GroupId, artifactId and version will be extracted from this file.

-

  \[link\] is a link to the jar to install, usually there should

-

  be a link to usr/share/java/$jar.jar and usr/share/java/$jar-$version.jar to comply with the Java packaging guidelines. Note that there is no need to specify those particular links if the **--java-lib** option is used.

## OPTIONS

**-h** **--help**: show this text

**-V** **--version**: show the version

**-p**\<package\> **--package=**\<package\>: package to act on

**-r**\<rules\> **--rules=**\<rules\>: gives the location of the rules file for

-

  special properties. Optional, the default location is debian/maven.rules

**-c**\<classifier\> **--classifier=**\<classifier\>: Optional, the classifier for

-

  the jar in the Maven repository. Empty by default.

**-v** **--verbose**: show more information while running

**-n** **--no-act**: don't actually do anything, just print the results
