Apache Maven JAR Plugin

org.apache.maven.plugins : maven-jar-plugin

Builds a Java Archive (JAR) file from the compiled project classes and resources.

Jan 08, 2022
19 usages
27 stars

Add dependency in Maven / Gradle

<!-- https://jmaven.com/dependency/org.apache.maven.plugins/maven-jar-plugin --> 
<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>3.2.2</version>
</dependency>

1. Add dependency to a Maven project

Maven: Add the org.apache.maven.plugins:maven-jar-plugin library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <version>3.2.2</version>
</dependency>
</dependencies>

To install org.apache.maven.plugins:maven-jar-plugin library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.apache.maven.plugins:maven-jar-plugin library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.apache.maven.plugins:maven-jar-plugin:3.2.2'
}

Gradle Kotlin DSL: Add the org.apache.maven.plugins:maven-jar-plugin library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.apache.maven.plugins:maven-jar-plugin:3.2.2")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.apache.maven.plugins:maven-jar-plugin library to your build.sbt file:

libraryDependencies += "org.apache.maven.plugins" % "maven-jar-plugin" % "3.2.2"

4. Add dependency to a Grape project

Grape: Add an annotation org.apache.maven.plugins:maven-jar-plugin library to your groovy script file:

@Grapes(
    @Grab('org.apache.maven.plugins:maven-jar-plugin:3.2.2')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (1)

Test Dependencies (3)

Recommended for You

JPSE (Java PowerShell Executor) - Library to easialy execute Powershell scripts and commands from Java.

4 stars

An implementation of the Java Preferences API (java.util.prefs) to store preferences in an XML file, in a subdirectory of a Java program's working directory

4 stars

Exchange rates and gold quotations NBP (Narodowy Bank Polski) API for Java

0 stars

开箱即用的微信和支付宝的支付工具

2 stars

More from Group

Signs the project artifacts with GnuPG.

139 usages

The Apache Maven Javadoc Plugin is a plugin that uses the javadoc tool for generating javadocs for the specified project.

82 usages
43 stars

Provides utility goals to work with dependencies like copying, unpacking, analyzing, resolving and many more.

78 usages

The Compiler Plugin is used to compile the sources of your project.

71 usages
101 stars

The Maven Source Plugin creates a JAR archive of the source files of the current project.

67 usages
© 2022 JMaven.com