maven-2

Passing the Maven Debug Flag from Hudson

I'm having an issue with a maven build in hudson. This issue would be fairly easy to resolve if I could see the output of maven with the -X flag passed in. However I can't find a way to do this. If I specify "-X" in the "Goals and options" field of the "Build" section in the job configuration my console output looks exactly the same a...

Generating WAR files from a multiproject Maven configuration

I have a Maven project, with 4 components Web, Persistence, Common and Other. The relevant stuff off my POM files: Parent POM: <groupId>com.test</groupId> <artifactId>test</artifactId> <packaging>pom</packaging> <version>0.0.1-SNAPSHOT</version> <modules> <module>components/TestWeb</module> <module>components/TestOther</module...

JPA 2.0 API maven artifact

Hi all, I am using JPA 2.0 and my persistence provider is Hibernate; however, I'd like to just include a standard API from javax, but in central, there is no 2.0 artifact. I am currently using the Hibernate JPA 2.0 artifact, but I'd like to use something more standard. Is this possible? Thanks, Walter ...

Ask for maven archetype properties with defaults.

I'm putting together a maven archetype that has a bunch of custom properties that are used to filter the various archetype resources. I have these specified with defaults in the archetype-metadata.xml e.g. <requiredProperties> <requiredProperty key="application-name"> <defaultValue>Some Application</defaultValue> </requiredPrope...

Which is the best Maven2 plugin for Intellij?

What is the best Maven2 plugin for IntelliJ? There are a lot of them now, and I don't have the time to play with them all. It would be very helpful to get opinions and a feature synopsis on existing plugins. Here is what I am looking for: a) it keeps my paths and repositories synched to change in the pom file; and b) it doesn't keep ...

Where should I put the main implementation in a multi module Maven project?

I have a small (4 module) maven project with the root pom in pom packaging. Right now, I have a impl module that contains the main methods and setup. This does lead to some issues, eg building a single jar for the entire project, (possible) huge dependency list containing all modules, and confusion trying to trace back to the main method...

How can I get my sub projects to inherit dependency versions from the super project in a multi module Maven project?

I have a multi module Maven project and I want the sub projects to inherit the versions for third party dependencies which I have specified in the parent project. This is so I don't need to replicate version numbers everywhere. It's not working though and when I leave out the version number on the children I get the error: dependencie...

Create a war file from a mercurial repository with maven

Hi, I have a mercurial repository on my server. I want to create a script to deploy the project as a war file to a tomcat server. Is it possible to tell maven to get the latest revision of my project from the repository and create a war file. Thanks ...

Custom compiler with maven

Hi! I'm trying to make Maven2 to compile coffeescript to javascript. As far as I'm concerned there is no plugin which provides compiling coffeescript. Is there a compiler-plugin for maven which can be parameterized with a compiler (for any programming language)? ...

How to start and stop jetty with maven

I would like to start and stop jetty with maven. This is my setup http://nopaste.info/61ef12198d.html With mvn jetty:run my jetty starts locally but when I want to run jetty in test-phase with mvn -Pselenium test jetty doesn't run. ...

Jaxb2 : create seperate directorie per namespace

Hi, im using maven-jaxb2-plugin to generate from a 1.0xsd file: <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <executions> <execution> <id>generate-modelesV1.0</id> <goals> <goal>generate</goal> </goals> <configuration> <schem...

wsdl2code not founded

Hello, I'm trying to generate webservice client with axis2 and maven so i followed some tutorials and put some code lines in my pom.xml : <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <version>1.5.1</version> <executions> <execution> <goals> ...

how to put dependency in maven not in WEB-INF/lib

Is there a way to put dependency of a war not in WEB-INF/lib but in out custom folder? I'm using Maven 2 Hi, what i need is that from list of dependencies of a war only one artifact should be placed not in WEB-INF/lib but in WEB-INF/bundles/ and others dependencies should be places in WEB-INF/lib thx THX to everybody, i can't update ...

How to get Hibernate + javax.persistence via Maven2 pom.xml

Hello! I am a newbie with Maven2 and I write a pom.xml. Now I want to get Hibernate and javax.persistence to resolve this: import javax.persistence.Entity; ... import org.hibernate.annotations.Fetch; ... What needed to be done? I wrote in my pom.xml: <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifa...

How to instruct surefire plugin to run just one test, using command line?

Is it possible to instruct maven-surefire-plugin to run just one unit test? And of course I want to do it from command line. ...

maven-eclipse-plugin with Velocity plugin

Hi, I wonder if anyone have come across a problem with that when using maven-eclipse-plugin together with velocity plugin for Mave generate a random dependency which causes build error because of missing the artifacts of some irrelevant modules within the build? I could not find any explicit clue of how that problem causing dependenc...

Maven: How to change path to target directory from command line?

Maven: How to change path to target directory from command line? (I want to use another target directory in some cases) ...

How to copy dependencies to gae war/WEB-INF/lib? (take 2)

Have same challenge as this guy: http://stackoverflow.com/questions/3421826/how-to-copy-dependencies-to-gae-war-web-inf-lib Applying his solution's pom segment for copy-dependencies and running "mvn package" did nothing. Seems that the goal doesn't ever get run. Help! Pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns...

Spring in Action 3 example of AOP causing problems

I am working my way through Spring in Action 3 and there is an example in there of using AOP with the around aspect. This is the Aspect class: package com.xetius.springIdol; import org.aspectj.lang.ProceedingJoinPoint; public class Audience { public void watchPerformance(ProceedingJoinPoint joinpoint) { try { System.out....

Custom properties in Maven based on command line switch

[reduced for simplicity] I have a project with several Maven modules A module has a properties files whose contents are filtered during build There are sets of properties that can be grouped Only one group of properties exists in a given build All groups have the same properties, only their values change between groups parent +- pom.xm...