Questions tagged [maven-2]

Apache Maven is a software project management and comprehension tool. This is a tag for Maven related questions that are specific to Maven versions 2.x.

About Maven:

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

For questions that are not version-specific, use , for Maven 3.x - specific questions, use

Please be aware of Maven 2 End Of Life

Maven Releases History, with documentation

5702 questions
5
votes
3 answers

Different configuration file for dev and prod using Maven

I have to different log4j.xml and property files which are to be used in Dev and Production. I am using maven for building and packaging. Is there a way I can let maven choose dev or prod by a configurable maven property in POM or passing a run time…
Abhishek
  • 6,862
  • 22
  • 62
  • 79
5
votes
3 answers

Why maven compilation doesn't work with "pom" packaging type

I don't know why my maven build doesn't generate target/classes in current pom setting, the packaging type must be "pom" in my case, please advise what is wrong... Thanks!
Even
  • 287
  • 2
  • 8
  • 21
5
votes
3 answers

SVN as Maven Repo

We are using SVN to store maven dependencies (organization restriction couldn't use nexus or artifactory maven repository as now). SVN runs on a webserver with https protocol. Currently if a new dependency is added all developers have to update…
Arunkumar
  • 61
  • 2
5
votes
4 answers

When to run my own maven repository?

I'm working on a small project with one other developer. We are using libraries that are all available in public maven repositories. We have a single, multi-module maven project but build all of the modules every time in our build server and…
digitaljoel
  • 26,265
  • 15
  • 89
  • 115
5
votes
4 answers

How do I configure an additional context path for tomcat-maven-plugin?

I'm using Maven 3.0.3 with the Tomcat plugin. Using Maven and Tomcat, I would like to deploy an embedded instance of the site. My question is how do I configure an additional context path in my embedded Tomcat server? Below is my Tomcat…
Dave
  • 8,667
  • 25
  • 72
  • 90
5
votes
1 answer

Spring Framework - Unit testing design

I'm writing to try and initiate a bit of a discussion regarding Spring Unit testing and in particular Transactional unit tests. We currently have around 441 tests in a variety of classes annotated like…
eggsy84
  • 1,059
  • 1
  • 14
  • 26
5
votes
3 answers

Maven RPM Plugin fails to find rpm command in intellij

I have a module I am trying to package as an RPM using Maven RPM plugin. When I run mvn package from the command line, it generates the rpm as expected. When I try to run the package phase from within Intellij, it seems unable to find the rpm…
Jason
  • 421
  • 1
  • 4
  • 13
5
votes
3 answers

Cryptic jetty-maven-plugin error message 'ERROR: PWC6117: File "null" not found'

I have a Maven Webapp producing a WAR file. I've just upgraded my Jetty plugin to the 7.4.2.v20110526 (from 6.x). I have the following set up: org.mortbay.jetty
carlspring
  • 31,231
  • 29
  • 115
  • 197
5
votes
2 answers

Create a GWT Maven Project

I'm trying to create a new project with Eclipse in order to create GWT application under maven 2 system. I have create the project with the follow mvn command mvn archetype:generate -DarchetypeRepository=repo1.maven.org…
user822791
  • 51
  • 1
  • 1
  • 2
5
votes
3 answers

maven test report format

When I run the tests In my Java/Groovy Maven project, the test reports are stored in target/surefire-reports. For each test class that is run a .txt and .xml file is created showing the output of that class. All in all, this is a remarkably…
Dónal
  • 185,044
  • 174
  • 569
  • 824
5
votes
4 answers

per-user Maven properties

In my Maven build I would like to be able to define default values (e.g. for database connection) in pom.xml, but I would like the user to be able to override these without having to modify pom.xml directly. By way of example, in an Ant build you…
Dónal
  • 185,044
  • 174
  • 569
  • 824
5
votes
2 answers

Getting Checkstyle custom rule to work in Hudson/Jenkins

I'm having problems trying to get checkstyle to work properly in Hudson/Jenkins. I created a custom checkstyle rule with very minimal rules in it (just to see if it works) and place it in some server:-
limc
  • 39,366
  • 20
  • 100
  • 145
5
votes
2 answers

Where is my java directory?

In Maven2 I've created the maven-archetype-webapp. I see the webapp and resource directory, but where is my java directory? Do I create it manually, and if so, would I need to configure the pom.xml to recognize that this new java directory is…
help
  • 297
  • 2
  • 5
  • 14
5
votes
1 answer

Difference between (plain) Classworlds and Plexus Classworlds?

Can anyone please explain the difference between plexus-classworlds and (plain) classworlds? These two are confusing and can't see the difference. Plexus classworlds contains almost no description. Apparently, a maven-based Java project uses both,…
ravana
  • 157
  • 1
  • 2
  • 9
5
votes
2 answers

Pick up native JNI files in Maven test (lwjgl)

I'm creating a program with LWJGL and Maven, and I'm writing unit tests for the graphical code. My problem is getting Maven to put the native binaries on the classpath so that the tests can pick it up. I can't get past the…
Ron Romero
  • 9,211
  • 8
  • 43
  • 64
1 2 3
99
100