Linked Questions
10 questions linked to/from Local jars are not included in class path (`<scope>system</scope>`)
274 votes
10 answers
427k views
Maven: add a dependency to a jar by relative path
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 ...
72 votes
7 answers
87k views
Maven 2 assembly with dependencies: jar under scope "system" not included
I am using maven-assembly plugin to create a jar of my application, including its dependencies as follows: <assembly> <id>macosx</id> <formats> <format>...
37 votes
4 answers
51k views
Having a 3rd party jar included in Maven shaded jar without adding it to local repository
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 ...
26 votes
6 answers
25k views
maven-assembly-plugin doesn't add dependencies with system scope
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....
28 votes
5 answers
169k views
Maven: add a folder or jar file into current classpath
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 ...
8 votes
1 answer
11k views
Maven assembly plugin and adding system dependencies to the classpath
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 ...
1 vote
2 answers
8k views
Unable to add classpath in MANIFEST.MF in maven2
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> &...
0 votes
2 answers
9k views
Add jar (dependency with scope system) in an Ear build
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> <...
-1 votes
1 answer
2k views
Maven Missing artifact of local JAR installed using maven install plugin
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 ...
-2 votes
2 answers
659 views
Install library jar in pom maven
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 ...