maven-2

Including jMock 2.6.0 in Maven

Hi, I am unable to include the new jMock release as Maven dependency. Here is what I tried including: <dependency> <groupId>org.jmock</groupId> <artifactId>jmock</artifactId> <version>2.6.0</version> </dependency> I have tried various combinations with the version and artifactId but it doesn't help. Thanks, Julia. ...

Configuring Grails Plugins with Nexus Repository

Hi, I'm searching for a longer time, but without any solution. My problem: I configured my Grails project (1.2.4) with Maven and my own Nexus Repo. That seems to be working well. But can I also put the Grails plugins, which I am using, also to the Nexus Repo? At the momement the plugin dependencies are resolved over the Grails Plugin...

m2eclipse filtering test resources

I am using m2eclipse and I want to right click and run tests from inside eclipse while the test resources get filtered from Maven. How can I do this? From eclipse when I right click on a test I do not get any m2eclipse options Julia. Similar to: http://stackoverflow.com/questions/2855706/debugging-maven-junit-tests-with-filtered-resou...

How do I create a web application with embedded Axis2 dependencies with Maven?

I want to be able to run a proper Axis2 web service by just executing mvn jetty:run. Ultimately I want to produce a single war that I can deploy somewhere. I am just looking to use POJO web services but I'm curious to know what the full dependency tree looks like. Assuming everything else is correct, below are the axis2 specific depende...

How to get the current MavenSession or MavenExecutionRequest from a Plexus Component

I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like localRepository and project from the Mojo (and test cases). I was wondering if there is a way to get the MavenSession or MavenExecutionRequest from within the component without having to pass them as paramete...

Tomcat Nexus URL mapping for Maven POM

Hi, I'm running the maven repository manager Nexus on Tomcat. When I setup my pom file, my repository URLs all look something like http://myhost/nexus/repo-name. I'd like to get the word "nexus" out of the URL. We're currently transitioning from an older repository manager and now we need to update all of the URLs. However, if we had a ...

Using <fileSets> with maven assemblies

I am trying to add specific directories from maven modules into my build. I believe that are the way to go back this. I would appreciate a clear and concise way of using to obtain necessary directories from maven modules that just simply contain a directory with some necessary resources. Please and thank you. GC ...

Is there how I could revert to the code that last built/tested successfully?

Developing in NetBeans with Maven I often keep reverting back to local history and svn code as things no longer work (TDD?). Other than committing to a 'testing new idea X' branch after each successful build/test is there how I could configure Maven to do that at each build automatically? Is anyone else running into the same issue, and ...

Tomcat 6.0.26 caching Java classes

I am facing a wierd issue suddenly and I am out of wits why this would happen. My basic setup is to use maven (eclipse plugin 0.20), Tomcat 6.0.26. Until few days back i was able to start tomcat in debug mode, make changes in code while debugging and test them. Then later run prepare-package for maven, stop and start tomcat to reflect ...

java web app run in netbeans - SQLException: No suitable driver

hello, I am trying to run an application developed on another machine where it was perfectly running, so it should have something to do with the configurations on the machine I am trying to run it on now. I'm using netbeans 6.9, tomcat 6.0.26 and maven. When I try to run it, it gives me the following error: Sep 19, 2010 12:51:02 AM or...

why testing an individual junit test works, while testing them together won't?

The test that fails when tested together with mvn test (or through the ide) is called EmpiricalTest. If I test the file alone it goes through, but not otherwise. Why could that be? You can checkout the Maven source code (to test) from here. This is how I make sure the database is 'blank' before each test: abstract public class Persis...

Determining Maven execution phase within a plugin

I have a plugin which transforms the compiled classes. This transformation needs to be done for both the module's classes and the module's test classes. Thus, I bind the plugin to both the process-classes and process-test-classes phases. The problem I have is that I need to determine which phase the plugin is currently executing in, a...

Managing multiple internal projects using Maven (Switching from ant/ivy)

Let me first explain our infrastructure. My company produces two enterprise software products (which each in turn include multiple servers). Lets call them ProductA and ProductB. ProductA is made up of 40 individual projects that are branched together, but are all built separately and treated as individual units. As each of these proje...

How to use GUNIT with MAVEN ?

Given a Maven project generated by : mvn archetype:generate -B -DarchetypeGroupId=org.antlr \ -DarchetypeArtifactId=antlr3-maven-archetype \ -DarchetypeVersion=3.2 \ -DgroupId=com.yourcompany \ -DartifactId=yourproject \ -Dversion=yourversion \ -Dpackage=com.yourcompany.package.path cf : http://www.antlr.org/wiki/display/...

maven2: excluding directory from WAR

I tried this to exclude whole directory (${basedir}/src/main/webapp/webscripts) from my WAR file but it failed. What is wrong? this doesn't work: <configuration> <webResources> <resource> <directory>${basedir}/src/main/webapp/webscripts</directory> <excludes> <exclude>**/*.*</exclude> </excludes> ...

Maven, configure specific goal

Hello! I want to configure "exploded" goal of the maven-war-plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <executions> <execution> <goals> <goal>exploded</goal> </goals> <configuration> <webappDirectory>war</webappDirectory> </con...

Does licensing matter for Maven artifacts that are runtime or test scoped?

My company is very concerned about entaglements that could result from the use of copy-left (e.g. GPL) code in our product. Because of this we have no compile scope Maven artifacts with copy-left licenses. However, with runtime or test scoped artifacts, does the same requirement apply? I wouldn't think so, but am very interested in he...

Hiding non-java classes from findbugs

I have a mixed scala/java project - mostly java. I would like to use Findbugs on my java code, but the scala classes are giving it trouble. So I'd like to exclude them from Findbugs. So far I've tried listing the scala classes in an exclude filter, but that's not helping. I'm using the maven codehaus findbugs plugin version 2.3.1. The e...

ClassNotFoundException when starting Maven 2 RCP application

Hi, I've started a very basic Eclipse (Helios) RCP application with the "Hello RCP" template. I enabled Maven dependency management and added Spring 3 to the POM. After that I created a view and added the following code to my view. @Override public void createPartControl(Composite parent) { RestTemplate restTemplate = new RestTempla...

Partition a large Hibernate model to manage schema dependencies

We are considering splitting our hibernate tables into packages or domains (invoicing, sales, ..etc), primarily for dependency management issues. It doesn't break neatly of course, so we aren't sure how to handle relationships that cross domains. It would be nice to have a new entity annotation for this, but meanwhile one idea is to ma...