maven-2

How can I include test classes in exploded war for integration testing using Maven, Jetty & Spring?

I am trying to get integration tests going with Spring, Maven and Jetty. I have got a Jetty server to start up running my app before the integration tests start using the Maven Jetty plugin and a run-exploded pre-integration-test goal. This works well for testing using net.sourceforge.jwebunit.junit.WebTestCase. What I need to do now i...

m2eclipse - child projects suddenly cant see each other...

Not a very good title, I'll try and explain. This has worked for months, then today for some unknown reason, eclipse cant resolve any of the imports from siblings (peer projects), when nothing has changed (really!). No eclipse or eclipse plugin updates, no source code changes, no config changes. I have a fairly standard project struct...

Open Source Project - Is it important to sign jars?

I have open sourced several of my projects and have published artifacts on sonatype.org. Is it important to sign your artifacts, does JBoss and other open source publishers sign their code? ...

accessing a web service using axis and maven

Im trying to figure out how to access Web Services in Java using Axis. As far as I understand, Here's what I need to do : Use WSDL File + Axis tools to generate Java files. Compile and package generated Java files and then consume those objects by using connection methods on these. In trying to do this, here's where I'm stuck: I pi...

Can maven-exec-plugin fail the build?

I have a maven execution that runs a javascript compressor as a command line program, however, this tool also does some jslint checks as well. If these jslint checks fail so should my build. These errors are output as a parseable string to stdout. If this maven plugin cannot solve this problem, I'm happy to use any other suggested. ...

Selenium RC testing with Maven

I'm trying to run a series of selenium tests using maven and I get this error: Running com.myapp.web.selenium.MySeleniumTest WARN [SocketListener0-1] HttpConnection - POST /selenium-server/driver/ HTTP/1.1 java.lang.RuntimeException: Firefox refused shutdown while preparing a profile at org.openqa.selenium.server.browserlaunche...

Can I change the alias of my key?

I signed my JWS application MemorizEasy with a key whose alias is: memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/modules/ext/emma.jar I don't remember why I chose such a long alias. I suspect it was memo only, but in my project settings I have: jnlp.signjar.alias=memofile.reference.emma.jar=/Users/simpatico/.netbeans/6.8/mo...

Maven: System dependency pointing to multiple jars

Is it possible to define a dependency in the pom such that it has the scope of system but points to multiple jars? I'm sure this is quite unorthodox, however, I was just wondering whether this was even possible. So something like: <dependency> <groupId>foo</groupId> <artifactId>foo</artifactId> <version>1.0</version> <scope>sy...

Looking for spring-hibernate3-2.0.8 sources

I'm looking for the sources jar of spring-hibernate3-2.0.8 Jarvana only has the details to the jar with the compiled classes http://jarvana.com/jarvana/archive-details/org/springframework/spring-hibernate3/2.0.8/spring-hibernate3-2.0.8.jar Any idea where I could find it? I also tried mvn dependency:sources, but it couldn't find the so...

I want to execute shell commands from maven's pom.xml

I want to execute linux shell commands with maven. Here is what I tried: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <executions> <execution> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> ...

Custom maven assembly

I'm starting to work with Maven but am not yet successfully thinking in Maven's terms. I have a specific requirement and the docs aren't giving me enough clues, so I could use a bit of help: I'd like to create an assembly that builds a jar-with-dependencies like the "standard" target of this name, but excluding a couple of the resourc...

Get maven modules from repository instead of relative file path.

I have parent project with: <modules> <module>../module1</module> <module>../module2</module> <module>../module3</module> </modules> and modules with <parent> <groupId>com.cc</groupId> <artifactId>parent</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> Can I somehow specify, that if there are no src ...

Maven include file contents from one module in another

I have a maven application that looks like this application_name/ module1 src/main/resources file_snippet.xml module2 src/main/resources file_snippet.xml module3 src/main/resources file.xml file.xml should be like this <workflow> <action> <%= module1/src/main...

how do things like maven-cli-plugin / mvnsh speed up the maven build?

sorry for being dumb here, but I failed to see why these tools can speed up the build. for example (if I understand it correctly), maven-cli requires you to do a build once: clean, compile, install, then it speeds up your build by caching the clean and compile phrase, so you can execute the install phrase only over and over. at my firs...

Maven created WEB-INF, but GAE can't see it

I'm trying to follow a tutorial on setting up Spring MVC to work on Google App Engine. For the purposes of this question I'm using Eclipse, Maven, and a Ubuntu development environment. I'm able to successfully build my application, as the following snippet shows : INFO] Building war: /home/james/workspace/springappengine/target/spring...

Generate Web Application Project for Eclipse using Maven.

Hi, I'm new to this approach. I've used Maven, Tomcat and Eclipse for my web application. But I'm trying the approach where you create a maven project using an archetype. My goal is to create a Web Application Project for eclipse using maven that can then be imported into Eclipse. I'm pretty sure there is a super-easy way to do this ...

Finding out the licenses of jar libraries

I use Maven to build my web app projects, when I add some dependent library to the pom file, it again adds some more dependent jars to the project recursively. Is there a way to find out or restrict that only jars having a certain type of license - say Apache License, BSD etc should be included. Or is there a way to find out that a jar f...

Classifiers not working in Maven Snapshot repo for IVY

So I have got my Maven build deploying both Java5 and Java6 versions to my snapshot repo (Nexus). I do this with build profiles and classifiers. All is good in the Maven side of things. However, if I try to resolve the Java5 dependency from my IVY based project it will not work if the most recent Maven deploy was for the Java6 profile/...

Setting environment variable with maven 2.x

Is it possible to set environment variable with maven (OS: Linux)? I already have user-defined properties (in the pom and in profiles.xml)....my problem is, how to execute following from Maven export GGA_FRE=/path So will be possible, that every developer can set his own path for the GGA_FRE. ...

Resolving a Maven dependency differently if the JVM in use is x86 or x64?

Hi, I have a Maven repository set up to host some dlls, but I need my Maven projects to download different dlls depending on whether the JVM in use is x86 or x64. So for example, on a computer running an x86 version of the JVM I need ABC.dll to be downloaded from the repository as a dependency, but on another computer running an x64 ve...