Top "Pom.xml" questions

A Project Object Model or POM is the fundamental unit of work in Maven.

How do I run a specific goal with a particular configuration in a Maven plugin when I have several configurations for that goal

See plugin config from pom.xml below. I can do: mvn myplugin:myGoal Which runs myGoal (both executions I suppose) …

maven plugins maven-2 pom.xml
How to configure Maven to run a SonarQube project analysis with two different quality profiles?

We run SonarQube analyses for our Java projects via Maven. Maven somehow does this automagically; all we did was add …

maven pom.xml sonarqube
Eclipse -- Testng references non-existing project XXX, launch configuration

When trying to run a test as a TestNG suite, I would get a very cryptic error message saying that …

java xml eclipse testng pom.xml
Reading properties file from Maven POM file

I have Maven POM file with some configuration and in the section plugins, I have maven tomcat plugin with some …

java tomcat maven-2 pom.xml properties-file
How can I use Maven to get the latest Hibernate release?

I am having trouble getting the latest release of Hibernate via Maven dependency. It appears that the latest I can …

hibernate maven-2 dependencies pom.xml
Maven complaining about parent relative path

Consider a maven project with modules consists of some utilities (jar) and some poms for others to reference to if …

maven pom.xml project-structure parent-pom
How to use POMs as a dependency in Maven?

Is there a way to add a pom type dependency to my POM and get all its modules? JavaMail is …

java maven dependencies pom.xml
How to set up an environment variable in mvn pom?

How can i set up an environment variable (in other words internally accessible by System.getenv("APP_HOME") in a …

maven pom.xml
how to add the servlet api to my pom.xml

How do I add the servlets API to my project's pom.xml mvnrepository.com has lots of servlet api and …

java maven-2 servlets pom.xml