🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin › plugin-info.html
Plugin Documentation – Apache Maven JAR Plugin
Apache Maven JAR Plugin/ Plugin Documentation · | Last Published: 2025-11-11 · Version: 3.5.0 · This report describes goals, parameters details, requirements and sample usage of this plugin.
Plugins
To see the most up-to-date list ... org/apache/maven/plugins subdirectory. (Plugins are organized according to a directory structure that resembles the standard Java package naming convention) ... There are also some sandbox plugins into our source repository. Previous archived versions of plugins ...
Extensions
Maven is - at its heart - a plugin execution framework; most work is done by plugins. However, with extensions it is possible to hook into Maven, e.g.
Creating an Executable JAR File
Class-Path: lib/org/codehaus/p...-lang-2.1.jar ... At times, you may have dependency archives in a custom format within your own archive, one that doesn't conform to any of the above classpath layouts. If you wish to define a custom layout for dependency archives within your archive's manifest classpath, try using the <classpathLayoutType> element with a value of 'custom', along with the <customClasspathLayout> element, like this: <project> ... <build> <plugins> <plugin> <artifactId>maven-war-plugi...
Manifest Customization
Starting with version 2.1, the maven-jar-plugin uses Maven Archiver 3.6.5. This means that it no longer creates the Specification and Implementation details in the manifest by default. If you want them you have to say so explicitly in your plugin configuration.
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.maven.plugins › maven-jar-plugin
Maven Repository: org.apache.maven.plugins » maven-jar-plugin
November 15, 2025 - Builds a Java Archive (JAR) file from the compiled project classes and resources. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service spring sql starter testing tools ui web webapp
🌐
Maven Central
central.sonatype.com › artifact › org.apache.maven.plugins › maven-jar-plugin
org.apache.maven.plugins:maven-jar-plugin - Maven Central
--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugins</artifactId> <version>45</version> <relativePath /> </parent> <artifactId>maven-jar-plugin</artifactId> <version>3.5.0</version> <packaging>maven-plugin</packaging> <name>Apache Maven JAR Plugin</name> <description>Builds a Java Archive (JAR) file from the compiled project cla
🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin › plugins.html
Project Plugins – Apache Maven JAR Plugin
November 11, 2025 - Apache Maven JAR Plugin/ Project Plugins · | Last Published: 2025-11-11 · Version: 3.5.0
🌐
GitHub
github.com › apache › maven-jar-plugin › releases
Releases · apache/maven-jar-plugin
November 15, 2025 - [MJAR-278] - Update plugin (requires Maven 3.2.5+) (#19) @cstamas ... [MJAR-275] - Fix outputTimestamp not applied to module-info; breaks reproducible builds (#43) @jorsol · [MJAR-290] - Update Plexus Utils to 3.4.2 (#48) @jorsol ... (doc) Updated create-test-jar.apt.vm removing 'and' in Maven site Create Test JAR documentation (#34) @focbenz
Author   apache
🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin › dependency-info.html
Maven Coordinates – Apache Maven JAR Plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.5.0</version> </plugin>
🌐
Maven Central Repository
search.maven.org › org.apache.maven.plugins › maven-jar-plugin › 3.2.0
maven-jar-plugin
--> <project xmlns="http://mav... <groupId>org.apache.maven.plugins</groupId> <version>33</version> <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath> </parent> <artifactId>maven-jar-plugin</artifactId> <version>3.2.0</version> <packaging>maven-plu...
🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin
Introduction – Apache Maven JAR Plugin
This plugin provides the capability to build jars. To sign jars, use the Maven Jarsigner Plugin.
🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin › usage.html
Usage – Apache Maven JAR Plugin
November 11, 2025 - If the JAR manifest contains Main-Class ... so in order to add the additional attributes and to verify the modular descriptor Maven should be run with JDK version 9 or newer....
Find elsewhere
Top answer
1 of 2
22

The chances are mostly of an incompatible maven-plugin version in your module. You could try to update the plugin configuration in the parent module to the following and test:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.7.0</version>
            <configuration>
                <source>1.9</source>
                <target>1.9</target>
                <jdkToolchain>
                    <version>9</version>
                </jdkToolchain>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>3.0.2</version>
        </plugin>
    </plugins>
</build>

For the list of compatible versions of all the plugins, do refer to Maven#Java9+Jigsaw

2 of 2
0

I had the latest maven version 3.6.3. But I realized there is a mismatch in the java version set in my environment path config to the one installed in my IDE (IntelliJ).

I configured to the latest JDK version (for 1.8) in my IDE to 1.8.0_265

I set my environment path to the same version

You can configure JAVA_HOME, JRE_HOME, JDK_HOME here. Also, make sure the path is added.

Reference on how to set environment variables: https://stackoverflow.com/a/26640589/2889297

Maven homepage gives you a high-level idea on what should be the compatible java version https://maven.apache.org/install.html

Note: After updating the environment path and before running mvn clean install, make sure the version is correctly reflected in the IDE terminal. You will have to close and reopen your IDE for the changes to be reflected.

🌐
Maven Central
central.sonatype.com › artifact › org.apache.maven.plugins › maven-jar-plugin › 3.4.1
Maven Central: org.apache.maven.plugins:maven-jar-plugin:3.4.1
--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugins</artifactId> <version>42</version> <relativePath /> </parent> <artifactId>maven-jar-plugin</artifactId> <version>3.4.1</version> <packaging>maven-plugin</packaging> <name>Apache Maven JAR Plugin</name> <description>Builds a Java Archive (JAR) file from the compiled project cla
🌐
Javadoc.io
javadoc.io › doc › org.apache.maven.plugins › maven-jar-plugin › latest › index.html
maven-jar-plugin 4.0.0-beta-1 javadoc (org.apache.maven.plugins)
Latest version of org.apache.maven.plugins:maven-jar-plugin · https://javadoc.io/doc/org.apache.maven.plugins/maven-jar-plugin · Current version 4.0.0-beta-1 · https://javadoc.io/doc/org.apache.maven.plugins/maven-jar-plugin/4.0.0-beta-1 · package-list path (used for javadoc generation ...
🌐
Apache Maven
maven.apache.org › plugins-archives › maven-jar-plugin-3.1.2 › dependency-info.html
Apache Maven JAR Plugin – Dependency Information
May 8, 2019 - <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.2</version> <type>maven-plugin</type> </dependency> 'org.apache.maven.plugins:maven-jar-plugin:maven-plugin:3.1.2' <dependency org="org.apache.maven.plugins" name="maven-jar-plugin" rev="3.1.2"> <artifact name="maven-jar-plugin" type="maven-plugin" /> </dependency> @Grapes( @Grab(group='org.apache.maven.plugins', module='maven-jar-plugin', version='3.1.2') ) compile 'org.apache.maven.plugins:maven-jar-plugin:3.1.2' libraryDependencies += "org.apache.maven.plugins" % "maven-jar-plugin" % "3.1.2" [org.apache.maven.plugins/maven-jar-plugin "3.1.2"]
🌐
GitHub
github.com › apache › maven-jar-plugin › blob › master › pom.xml
maven-jar-plugin/pom.xml at master · apache/maven-jar-plugin
<artifactId>maven-plugins</artifactId> ... <name>Apache Maven JAR Plugin</name> <description>Builds a Java Archive (JAR) file from the compiled project classes and resources.</description> ·...
Author   apache
🌐
Apache Maven
maven.apache.org › plugins › maven-jar-plugin › summary.html
Project Summary – Apache Maven JAR Plugin
Apache Maven JAR Plugin/ Project Summary · | Last Published: 2025-11-11 · Version: 3.5.0
🌐
GitHub
github.com › apache › maven-jar-plugin
GitHub - apache/maven-jar-plugin: Apache Maven JAR Plugin · GitHub
This way you can make sure you're not wasting your time on something that isn't considered to be in Apache Maven's scope. Submit a ticket for your issue, assuming one does not already exist. Clearly describe the issue, including steps to reproduce when it is a bug. Make sure you fill in the earliest version that you know has the issue.
Starred by 88 users
Forked by 81 users
Languages   Java 72.9% | Groovy 26.4% | Shell 0.7%
🌐
MojoHaus
mojohaus.org › versions › versions-maven-plugin › plugin-updates-report.html
Plugin Updates Report – Versions Maven Plugin
This report summarizes newer versions that may be available for your project's various plugins.