Linked Questions

274 votes
10 answers
427k views

I have a proprietary jar that I want to add to my pom as a dependency. But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work ...
flybywire's user avatar
  • 276k
72 votes
7 answers
87k views

I am using maven-assembly plugin to create a jar of my application, including its dependencies as follows: <assembly> <id>macosx</id> <formats> <format>...
YuppieNetworking's user avatar
37 votes
4 answers
51k views

I already found an answer here on Stack Overflow how to include a 3rd party JAR in a project without installing it to a "local repository": Can I add jars to maven 2 build classpath without ...
Nakedible's user avatar
  • 4,198
26 votes
6 answers
25k views

This is my pom file: <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....
Macarse's user avatar
  • 93.3k
28 votes
5 answers
169k views

I am using maven-compile plugin to compile classes. Now I would like to add one jar file into the current classpath. That file stays in another location (let's say c:/jars/abc.jar . I prefer to leave ...
David's user avatar
  • 3,658
8 votes
1 answer
11k views

I have some dependencies which I am providing myself. The jars are in the resources directory. In my pom they are scoped as system and I include the path to them. However, when I jar things up using ...
pondermatic's user avatar
  • 6,633
1 vote
2 answers
8k views

I am trying to add class path in MANIFEST.MF in maven2 with following code but it is unable to add it. <build> <pluginManagement> <plugins> <plugin> &...
NareshKumar's user avatar
  • 1,719
0 votes
2 answers
9k views

I work with Maven and I want to do a build with packaging ear, i want to add a dependency with scope system and also with specifing the systemPath of the jar like follow: <dependency> <...
Rayouma's user avatar
  • 152
-1 votes
1 answer
2k views

I have a local jar that I need to add it as a dependency to my maven project to be included in the published jar of the project. It is placed in the project at "my_project/lib/external1.jar" , at ...
Ahmed Waheed's user avatar
  • 1,301
-2 votes
2 answers
659 views

I have Java Maven Project with a folder lib with all jars that must be included in my project. I don't know how I have to modify the POM to add all libraries. I want that Maven uses this libraries ...
r.diazgonz's user avatar