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

How can I package a specific version with maven?

I'd like to call mvn clean install -Dsomeproperty=1.2.3-20110526-1836 to get artifact-1.2.3-20110526-1836.jar instead of artifact-1.2.3-SNAPSHOT.jar How can I pass that timestamp to maven ??
Bastl
  • 1,431
  • 3
  • 14
  • 15
5
votes
2 answers

Source of org.hibernate.validator.engine.ConfigurationImpl

OK, I'm trying to get a validator working with a jsp form.. Have just started using maven, so it's all a bit new... what's the best way of locating which repository I should be selecting for the above class? I already have the following entries for…
ohp
  • 121
  • 2
  • 10
5
votes
1 answer

How to generate Java from an XSD using MOXy under Maven-3?

What's the easiest/best way to generate Java from an XSD using MOXy under Maven-3? The reference JAXB interface has a nice Maven plugin, but it doesn't appear to support MOXy. Does anyone have anything concrete to offer? (I know I can write…
Ed Staub
  • 15,480
  • 3
  • 61
  • 91
5
votes
2 answers

Cannot skip repackage goal of spring-boot-maven-plugin

I have a multi-module Maven project that contains an application consisting of several Spring Boot services. I am trying to set up integration and end-to-end tests for the services and am using a combination Maven plugins to orchestrate this. I have…
Joseph Gagnon
  • 1,731
  • 3
  • 30
  • 63
5
votes
1 answer

generate wsdl file and webservice client based on wsdl file in maven

I am working on a project where I have a webservice module, and a webmodule. I want a client to be generated based on the wsdl file of the webservice, and I want the wsdl file to be generated when I build the webservice module. I have found the…
Runar Halse
  • 3,528
  • 10
  • 39
  • 59
5
votes
1 answer

maven appassembler plugin does not include the current artifact, if called iterative

[Update] The original question (below) is solved. I need to call mvn package appassembler:assemble instead of mvn package mvn appassembler:assemble Question: Why is there a difference? [Original] I am trying to use the maven appassembler plugin…
openCage
  • 2,735
  • 1
  • 18
  • 24
5
votes
1 answer

Maven Central is which exactly repository?

Are https://mvnrepository.com/repos/central and http://central.maven.org/maven2/ the same maven repository (called Maven Central)? Also there is https://repo.maven.apache.org/maven2/ which also calles itself a Central Repository. I use…
Code Complete
  • 3,146
  • 1
  • 15
  • 38
5
votes
2 answers

Using Maven for project distribution

I have an Project that I distribute by sending out large packages. I'd like to know if there is a user friendly way of using Maven to distribute updates of the project? I'd need something like what is done for updating softwares like Firefox or…
Thomas
  • 2,095
  • 18
  • 24
5
votes
1 answer

In maven child pom dependencies are not taking version from parent pom dependencies if they are mentioned in a profile

I have a multi-module project, and I am using profiles in the parent pom , which have specific dependencies mentioned in them. The issue here is that, if in a child pom , I am overriding the dependency element, and mentioning one of the dependencies…
Neeraj
  • 8,408
  • 8
  • 41
  • 69
5
votes
3 answers

Maven child modules not being built

I have a relativey simple multi module maven buid with a parent pom. This includes the 2 child modules as follows: WebApp WebService When I run mvn clean install on the top level pom…
andyfinch
  • 1,312
  • 2
  • 19
  • 34
5
votes
3 answers

Spring Hibernate maven POM

I used Hibernate a while back, but it's way rusty. I want to get up and running again with this, used with Spring and annotations. Using current versions of all the dependencies obviously. I am going to do this by writing some JUnit tests and with…
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
5
votes
1 answer

How to override configuration of maven-compiler-plugin. (build directory, I want to change by using profile)

I want to ignore some build errors at a specific directory by using maven's profile. I tried to do like below but it did not work. Any help will be appreciated? ============================================ [executed command] mvn -P test clean…
zono
  • 8,366
  • 21
  • 75
  • 113
5
votes
4 answers

Spring MVC Annotations

I've been over Spring's documentation a couple times, but I don't seem to be able to get @Controller, etc annotations to work. I am loading the dependencies and repositories in my POM (... are my specific values):
mathlovingkitten
  • 168
  • 1
  • 3
  • 9
5
votes
4 answers

How to enable Java assertions in jetty-maven-plugin?

How to enable assertions in jetty-maven-plugin? By default they are disabled.
yegor256
  • 102,010
  • 123
  • 446
  • 597
5
votes
3 answers

exec-maven-plugin goal is not started during build

Hallo, I try to run a main method during my maven build process. Hence, I added the exec-maven-plugin and the following snippet to my pom.xml
andreas
  • 1,483
  • 1
  • 15
  • 36
1 2 3
99
100