Top "Maven-2" questions

Apache Maven is a software project management and comprehension tool.

Exclude all transitive dependencies of a single dependency

In Maven2, to exclude a single transitive dependency, I have to do something like this: <dependency> <groupId&…

maven-2 dependencies
How do I get my Maven Integration tests to run

I have a maven2 multi-module project and in each of my child modules I have JUnit tests that are named …

java maven-2 testing surefire
How do I install Maven with Yum?

I'm trying not to learn much about either yum or maven. I've inherited this code and I don't want to …

maven-2 yum
Add a dependency in Maven

How do I take a jar file that I have and add it to the dependency system in maven 2? I …

java macos maven-2 dependencies
Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

I have install maven in my machine. I have properly set the class-path and maven home folder. Every time I …

maven maven-2 maven-3 maven-plugin maven-release-plugin
Warning - Build path specifies execution environment J2SE-1.4

I create a Maven project in Eclipse Helios. It works fine for a day, but then this warning shows up: …

java eclipse maven-2
Specify system property to Maven project

Is there a way ( I mean how do I ) set a system property in a maven project? I want to …

maven-2 system-properties
How can I download a specific Maven artifact in one command line?

I can install an artifact by install:install-file, but how can I download an artifact? For example: mvn download:download-file …

maven-2
How do I set the eclipse.ini -vm option?

I installed the Maven plugin for Eclipse, and then I got an error like below: please make sure the -vm …

eclipse maven-2 maven eclipse-plugin m2eclipse
Retrieve version from maven pom.xml in code

What is the simplest way to retrieve version number from maven's pom.xml in code, i.e., programatically?

java maven-2 version