Questions tagged [maven-jar-plugin]

This plugin provides the capability to build and sign jars.

The Maven Jar Plugin provides the capability to build and sign jars. This is one of the most common plugins used in Maven.

If the packaging of your project is set to jar, this plugin is executed whenever it passes the package phase, according to default Maven bindings.

Goals Overview

From the official documentation :

  • jar:jar create a jar file for your project sources.
  • jar:test-jar create a jar file for your project test classes.

Check the official usage page for a first look at this plugin.

171 questions
0
votes
3 answers

Maven jar dependencies and relations

I tried to search for existing questions but cant find any - feels like my question is quite simple but probably because it's quite specific I cant find the answers anywhere. Anyways - I have 2 projects with Maven where the second depends on/needs…
slowessam
  • 115
  • 1
  • 3
  • 10
-1
votes
1 answer

How to append folder to each classpath entry using maven dependency and jar plugin?

I am trying to append folder before for all classpath entries in manifest file. As you can see in pom file below, I am using jar plugin to add classpath entries to manifest. With dependency plugin I am copying dependencies to…
Wortig
  • 963
  • 2
  • 11
  • 37
-1
votes
1 answer

Is it possible to generate a client jar that also includes classes from dependency jars if they are being used in any of the Interfaces?

I am using maven-ejb-plugin with generateClient property set to true, I tried maven-assembly-plugIn but that includes all the libraries that are being used. I only want the classes that are being used from dependency jars in the Interfaces to be…
-1
votes
1 answer

How to include .class files from dependency project maven?

I have two maven projects: This is the framework project and has the dependency classes in the src/main/java This is the project that contains my test scripts in the src/test/java I want to build a jar where both the class files are included from…
aadhi00
  • 1
  • 1
-1
votes
1 answer

maven-jar-plugin:3.1.3 failed to execute goal

The project need to update the maven-jar-plugin from 2.3.x version to the current newest version (3.1.2), it failed to execute goal after updating The pom file before updating is shown below
SLN
  • 4,772
  • 2
  • 38
  • 79
-1
votes
1 answer

XML files not moving to META-INF folder of jar

I am creating a jar out of my codebase with selectes packages. Also i need the xml files to be moved to META-INF folder. But i dont see that happening though my jar gets created.
harimper
  • 1
  • 2
1 2 3
11
12