Skip to main content

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
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?
Praneel PIDIKITI's user avatar
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?
meisam's user avatar
  • 11.7k
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 ...
hguser's user avatar
  • 35.7k
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 ...
Andrew White's user avatar
  • 53.2k
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 ...
M4ks's user avatar
  • 12k
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</...
Anders Sandvig's user avatar
823 votes
26 answers
1.1m views

When maven says "resolution will not be reattempted until the update interval of MyRepo has elapsed", where is that interval specified?

With maven, I occasionally hit an artifact that comes from some 3rd-party repo that I haven't built or included in my repository yet. I'll get an error message from the maven client saying that an ...
cprice404's user avatar
  • 8,239
817 votes
11 answers
164k views

Dealing with "Xerces hell" in Java/Maven?

In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem to indicate that almost all Maven users ...
Justin Garrick's user avatar
783 votes
66 answers
830k views

IntelliJ inspection gives "Cannot resolve symbol" but still compiles code

Platform: IntelliJ Community Edition 10.0.3 SDK: jdk1.6.0_21 OS: Windows 7 So I have a strange situation with IntelliJ that has me completely stumped. I setup a Maven project and add log4j as a ...
Kevin Sitze's user avatar
  • 8,250
725 votes
38 answers
1.5m views

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

I'm compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this: Windows-->preferences-->installed jres--> jdk1.7.xx path But this is showing an error [ERROR] ...
Sai prateek's user avatar
  • 11.8k
718 votes
14 answers
505k views

Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn't seem to work.
BillMan's user avatar
  • 9,774
645 votes
26 answers
1.1m views

Maven Install on Mac OS X

I'm trying to install maven through the terminal by following these instructions. So far I got this: export M2_HOME=/user/apple/apache-maven-3.0.3 export M2=$M2_HOME/bin export PATH=$M2:$PATH export ...
Edgardo Roldan's user avatar
552 votes
35 answers
492k views

Maven does not find JUnit tests to run

I have a maven program, it compiles fine. When I run mvn test it does not run any tests (under TESTs header says There are no tests to run.). I've recreated this problem with a super simple setup ...
Aaron Silverman's user avatar
545 votes
23 answers
584k views

Maven package/install without test (skip tests)

I am trying to package my project. But, it automatically runs the tests previous do performing the packaging. The tests insert some content in the database. This is not what I want, I need to avoid ...
vks's user avatar
  • 6,891
519 votes
7 answers
378k views

How can I configure encoding in Maven?

When I run maven install on my multi-module Maven project I always get the following output: [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! ...
Ethan Leroy's user avatar
  • 16.2k

15 30 50 per page
1
2 3 4 5
5930