maven-2

Where is a good place to find maven archetypes?

I'm aware of the archetype list in codehaus. Are there any other good places to find Maven archetypes out there? ...

Maven: Commit single artifact to svn repository

How can I commit a single artifact like a file or a directory to an arbitrary location in a svn repository in the deploy lifecycle phase? With repository I mean a plain Subversion repository here, not a Maven repository held in a Subversion repository! I have already evaluated the wagon-svn but it seems it can just be used to commit a w...

mvn release:prepare doesn't catch that I have modified files?

Running on a Windows system, against a locally hosted VisualSVN server instance. I have C:\Program Files\VisualSVN Server\bin on my PATH variable so that I can simply run svn commands from the command line. I'm attempting to prepare and perform a release on my Windows workstation, and I've noticed that release:prepare seems to miss the ...

How do you import main classes in test classes in Maven?

I have generated a new Scala project with Maven and it created a folder structure with a src/main/scala and a src/test/scala folder. I have some code in src/main/scala and wanted to write some tests, the problem is that I can't import the classes from src/main/scala. How do I do that? ...

Maven2: Best practice for Enterprise Project (EAR file)

Hello everyone, I am just switching from Ant to Maven and am trying to figure out the best practice to set up a EAR file based Enterprise project? Let's say I want to create a pretty standard project with a jar file for the EJBs, a WAR file for the Web tier and the encapsulating EAR file, with the corresponding deployment descriptors. ...

How do I package multiple WAR files in one Maven project?

I am writing an application that integrates Geoserver with a custom component, intended to be hosted on a single servlet engine. Both are Maven based projects, and I would like to stay in Maven land to package it all into a nice distributable. The general idea I have is to add another module to my application that packages the applicatio...

javadoc for package-info.java only

I have a situation where I'd like to execute javadoc in a project that has no classes. It only has package-info.java for one package. When executing javadoc, the following error is given: An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - No public or protected classes found to document. Is there any w...

Ignoring an entire directory and subdirectories on CVS commit

How does one ignore the entire contents of the a directory with name target in using a .cvsignore file. I currently use eclipse IDE I have tried to use target but it does not seem to work. Should i rather be using target/* or target*. This would be very important especially for Maven projects. ...

netbeans 6.7 maven code coverage

Hi, How can I configure netbeans 6.7 to enable code coverage for maven2 projects? I tried tinkering with the following http://sharebear.co.uk/blog/2009/01/21/code-coverage-maven-projects-netbeans/ though had no luck Thanks ...

maven classpath container refresh job

I get stuck with m2eclipse and maven. After adding some dependency (hibernate 3.4, but I guess that doesn't really matter) eclipse got stuck with a message like in the title. Removing the dependency from pom file didn't help either. Restarting eclipse, checking out this as a clean project from repo neither. Alwyas gets stuck on refreshin...

Maven vs. AspectJ - Example?

MY aspect works great from Eclipse with AspectJ plugin, however if I try to use it with Maven I get .... nothing. I tried this http://mojo.codehaus.org/aspectj-maven-plugin/includeExclude.html I add loggin in my aspect and I try to test it with junit test, but when I run mvn clean mvn test I get... [INFO] [aspectj:compile {execut...

Using maven for multiple deployment environment (production/development)

I have a web app in maven, with the default directory structure. No problem there. The default directory structure has some files, property files that point to my localhost db. currently i create an ant script to create different war files, one for production, one for development, using these commands ant deploy-dev ant deploy-prod and...

Integrating Maven reporting plugins

I need to setup Maven plugins. I have downloaded the JARs. Can anyone please tell me what do I do next in order to integrate or setup the plugins with Maven? Should I copy the JARs into the parent directory or do I need to edit any file? The plugins are: Java2HTML JDepend Checkstyle Clover Cobertura EMMA Findbugs JavaNCSS PMD QALab Xr...

Maven jetty plugin - delay when starting in background mode

I start a jetty server on linux using nohup mvn jetty:run & to run it in background and to stay when I quit from the console. Usually (mvn jetty:run) it starts in seconds, but in this case it takes about minute to start. What can be the cause of such a delay? Thanks. ...

How does Maven2 know where to find plugins?

I'm using Maven2 and I can't seem to find any plugins in my repository. I'm getting errors like repository metadata for: 'org.apache.maven.plugins' could not be found on repository: myrepo where myrepo is the name of my repository. My question is how does Maven know where to find plugins? There's a reference in my error to met...

Maven, Jetty, JOTM

Hi all, I have been unable to configure JOTM ontop of Jetty inside a Maven build environment. The exception I get when I try to run my application is the following: 2009-07-21 19:47:23.499::WARN: Config error at <New id="UserTransaction" class="org.mortbay.jetty.plus.naming.Transaction"><Arg> <Ref id="ut"/> </Arg><...

Why use Gradle instead of Ant or Maven?

What does another build tool targeted at Java really get me? If you use Gradle over another tool, why? (See also Why use Buildr instead of Ant or Maven) ...

Maven: How to include jars, which are not available in reps into a J2EE project?

Hello, in my J2EE project I've a couple of dependencies, which are not available in any Maven repository, because they're proprietary libraries. These libraries need to be available at runtime, so that have to be copied to target/.../WEB-INF/lib ... Right now, I'm listing them as system dependency in my POM, but with this method the pr...

Invoke QTP Test Suits automatically from Hudson?

We need to integrate QTP with hudson to automatically invoke test suites against the code deployed in hudson.The build process is based on Maven. Is there any plugin or something to achieve this?We heard about groovy plugin for hudson can we be able to execute it with groovy script? Please guide. ...

Why do my tests fail to run when migrating from maven2 to buildr?

I have a straightforward maven2 java project (JMS relaying system). After we released the first version, we found that we spent more time configuring maven than actually coding. For the next release we wanted to clean up the build process and someone suggested migrating to builder. So I was tasked with doing just that. I setup buildr...