Questions tagged [maven]
Apache Maven is a build automation and project management tool used primarily for Java projects. This tag is for questions that don't relate to a specific Maven version. Use the gradle tag instead for questions relating to Gradle.
maven
9,216
questions
1654
votes
35
answers
1.7m
views
How to add local jar files to a Maven project?
How do I add local jar files (not yet part of the Maven repository) directly in my project's library sources?
71
votes
1
answer
42k
views
Maven Shade JavaFX runtime components are missing
I'm trying to create a JFX11 self-containing jar using maven dependencies. From the research I've done, it seems the best way to do this is through the maven shade plugin. However, When I run it, I ...
18
votes
1
answer
33k
views
How to properly install and configure JSF libraries via Maven?
I'm trying to deploy a JSF based application to Tomcat 6. The way my build system is setup, the WAR itself doesn't have any libraries in it, because this server is serving a total of 43 apps. Instead, ...
906
votes
12
answers
767k
views
How do I tell Maven to use the latest version of a dependency?
In Maven, dependencies are usually set up like this:
<dependency>
<groupId>wonderful-inc</groupId>
<artifactId>dream-library</artifactId>
<version>1.2.3</...
400
votes
24
answers
783k
views
How do I load a file from resource folder?
My project has the following structure:
/src/main/java/
/src/main/resources/
/src/test/java/
/src/test/resources/
I have a file in /src/test/resources/test.csv and I want to load the file from a ...
158
votes
8
answers
190k
views
Building a fat jar using maven
I have a code base which I want to distribute as jar. It also have dependency on external jars, which I want to bundle in the final jar.
I heard that this can be done using maven-assembly-plug-in, ...
1011
votes
32
answers
1.3m
views
How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds
I am trying to work with Spring Data and Neo4j. I started by trying to follow this guide linked to by the main site. In particular I based my pom.xml off of the "Hello, World!" example file. Here is a ...
17
votes
2
answers
42k
views
Adding external library to artifact jar in IntelliJ IDEA
How can I add an external library to a project in IntelliJ IDEA so that when I build an artifact it still has access to the classes in the library?
I have created a new Jar artifact from Project ...
1081
votes
15
answers
447k
views
Differences between dependencyManagement and dependencies in Maven
What is the difference between dependencyManagement and dependencies?
I have seen the docs at Apache Maven web site.
It seems that a dependency defined under the dependencyManagement can be used in ...
929
votes
26
answers
1.3m
views
How to force maven update?
I imported my already working project on another computer and it started to download dependencies.
Apparently my internet connection crashed and now I get the following:
>Build errors for ...
329
votes
5
answers
220k
views
What is pluginManagement in Maven's pom.xml?
This is a snippet of my pom file.
...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-...
11
votes
2
answers
63k
views
Intellij IDEA Maven Import problems
I wanted to switch to IntelliJ for forge modding (minecraft). When I do what they are saying to do on internet, I get a maven error...
Unindexed remote maven repositories found. Disable......
1108
votes
15
answers
511k
views
What exactly is a Maven Snapshot and why do we need it?
I am a bit confused about the meaning of a Maven SNAPSHOT and why we build one?
381
votes
7
answers
151k
views
What is an uber JAR file?
I am reading Maven documentation and came across the name uber-jar.
What does an uber-jar mean and what are its features/advantages?
2
votes
1
answer
940
views
Run a scala code jar appear NoSuchMethodError:scala.Predef$.refArrayOps
My code can run normally in idea by local mode, When I printed it into a jar package and uploaded it to the SPARK server I deployed to run, NoSuchMethodError: scala. Predef $. refArrayOps appeared.
...