maven-2

Spring ContextLoader fails to find applicationContext.xml

I've been working alone on a project for a long time and now another developer joined so I wanted to set up the project on his machine from SVN. We are both using very similar set-ups: OS X Snow Leopard Latest Eclipse WTP m2eclipse Maven Plugin Subversive SVN Plugin Tomcat 6.0.24 The Spring version used is 2.5.6. I set up the proje...

How to start and stop a JBoss server from Maven, bound to a different address than localhost?

Hi, I am working on a legacy Java Enterprise server project, and currently I am trying to set up nightly builds. We are using Maven 2, JBoss 4.2 and Bamboo. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can't use s...

create swing application using maven 2

I was trying to start new swing application using maven 2 so I started searching on maven documentation but (frustratingly) found no clue so I'm asking: what is the archtype used? what are the dependances? how to build swing app in maven [is there is plugin to do so ]? ...

How do I find out Apache Buildr/Maven 2 repo names

I'm just starting to use Apache Buildr and I'm constantly running into the problem of not knowing what repo urls and versions are available for me to use. For example I want to use Scala 2.8 in a build file, the id i previously used was: 2.8.0-SNAPSHOT But now this is not found. I also want to use the latest version of Apache POI. If...

How to set springframework @Transactional with AspectJ.

Hi. I want to use spring-aspects to make my methods transactional but without using spring AOP (spring AOP works just fine with: <tx:annotation-driven/> ). I'm using maven to manage my project. Is there a way to do compile time weaving on my project classes so "they are Transactional". I was trying to use this plugin: http://mojo.code...

Maven maven-exec-plugin multiple execution configurations

Is it possible to invoke a maven-exec-plugin (or any other plugin's) execution by its id from the command line? Let's say my pom.xml file looks like this: <project> [...] <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <id>foo</id> ...

Maven 2.2.1 project inheritance: necessary to use packaging 'pom' even without the use of project aggregation (multimodule)?

I want to inherit the dependencies of a (parent) pom.xml in a child project i.e. use Project Inheritance. It seems it is necessary to change the default packaging type from 'jar' to 'pom' in this case. But doesn't tell the Maven2 documentation that the packaging type 'pom' is necessary for Project Aggregation i.e. multimodule projects w...

Hudson doesn't recognize that I executed any tests after build - any ideas why?

I'm using Hudson to build a Java project w/ Maven. The project includes two different sets of unit tests: (1) a plain-old Surefire plugin execution that includes unit & database integration tests, and (2) a profile-activated suite of tests that are necessarily invoked using the JUnit ant task*. I can understand why Hudson does not recog...

Version control for multiple projects extending a single project

Hi, I'm currently working with a collection of projects which are all their own specific branches / extensions of a generic core project and I am looking for a way to manage the way the projects collaborate. I understand the following is a little vague, I only have a little experience with version control beyond the basic needs of a si...

eclipse plugin maven integration

Hi, I'm looking for a solution which does not have to be nice. For a simple Showcase I need to add a dependency from project a to project b (a needs b). Project a is managed by maven and gets dependencies from maven, project b is an eclipse plugin project and has depencies to other plugin projects. In project a I need everything from pro...

Questions to Determine Maven Knowledge

I requested Maven training at work, and the bosses want to hire someone who knows Maven to come work with us as a consultant so that we'll learn Maven from a real-world perspective instead of a training perspective. I've been tasked with coming up with questions of various difficulty to ask potential hires in order to ascertain their Ma...

How to configure MAVEN?

I am a newbie to maven and i gone through the configuration steps given in Apache site, but still i cant configure it. So anyone please help me with simple steps to configure MAVEN in windows. Thanks in advance. EDITED C:\Documents and Settings\arselv>mvn install [INFO] Scanning for projects... [INFO] ----------------------------------...

How can I setup dependencies for Axis2 / Axiom on Maven2

I've tried the following settings on pom.xml to use Axis2 wsdl2code: <dependencies> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2</artifactId> <version>1.5.1</version> </dependency> </dependencies> ... <build> <plugins> <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-ws...

How to handle missing ExpressionFactory#newInstance() method in api downloaded by maven?

According to java ee 5 api ExpressionFactory provides a method #newInstance. I'm using the official javaee-api available in maven: Java EE 5 APIs now in a Maven repository... But this jar does not provide this method. So I get compiler errors. How can I get a compilable version without using javaee implementations like e.g. glassfish, ...

Question about maven

Hello everyone, I read some useful posts here on SO about previous maven questions, I'm currently very interested in learning maven(cause I like it and because my boss requires me to). I'm currently reading [this][1] book and I'm working my way trough examples. Its a straightforward book but its has some errors inside(trivial ones), yet ...

reference maven value in profile

<profile> <id>test</id> <activation> <property> <name>environment</name> <value>linux-host</value> </property> </activation> </profile> How can I reference "linux-host" inside the profile? ...

How to tell M2Eclipse to install jar file as a maven dependency

I want to add jpoller.jar as a maven dependency, so I edited my pom.xml file to include it: <dependency> <groupId>org.sadun</groupId> <artifactId>jpoller</artifactId> <version>1.5.2</version> </dependency> Now, as expected, when I compile from the command line I get an error because jpoller isn't in any of the repositories...

Config Maven 2 to print out javac commands during compile phase

Is there any way to force Maven 2 (>2.0.10) to print the actual javac commands it's executing. We keep running out of memory even though we've bumped up the max using MAVEN_OPTS. I'd like to be able to see the actual command being executed that is running out of memory. I've tried using the verbose setting below in the pom file's plugin...

How do I make a Maven module not export a jar?

I have a Maven build with three modules. Module A exports a jar. Module B depends on A and exports a jar. Module C is a set of regression tests that depend on A and B. The reason the regression tests aren't just part of module B is that they should be able to run against multiple versions of A and B to ensure backwards compatibility....

How to use Maven to handle a cross-platform (Windows + Linux) Java Native Interface Project?

I am currently trying to develop a cross-platform solution that will make some UI components that are not already part of the java standard library available to my java code. I am writing xlib code for X11 and using the relevant win32 api's for windows. Is it possible (or even recommended?) to setup a java and c code build system using ...