maven-2

Do you know alternatives to Buildix ?

Buildix is a complete development server (by ThoughtWorks) for Continuous Integration I'm looking for a pre-configured server with Maven, Subversion, Sonar, Nexus... ...

How do I get my Maven Integration tests to run

Hello; I have a maven2 multi-module project and in each of my child modules I have JUnit tests that are named *Test.java and *Integration.java for unit tests and integration tests respectively. When I exeucte: mvn test all of the JUnit tests *Test.java within the child modules are executed. When I execute mvn test -Dtest=**/*...

Plugin similar to dashboard

I'm looking for a plugin that will aggregate various reports from our maven project (which consists of many modules). I was using dashboard maven plugin but it doesn't seem to be updated lately and I have troubles with the reports it generates (mainly it makes only surefire reports, no pmd, findbugs, cobertura as it should). So I'm lo...

Using Maven to build separate JAR files for unit testing a custom class loader

As part of my current project I've created a custom class loader. Part of the unit tests for the custom loader involves using some JAR files to demonstrate the proper behavior of the loader. I'd like to build the test JAR files from Java sources ahead of running the actual unit tests. Further, the test JAR files cannot be on the class p...

Using Maven for deployment

I have this task for the project with 4 nested subprojects using Maven: For each child: jar-up resource directory including project dependencies Move up to the parent project With a single command extract all created archives into various remote destinations (full install), that may include http server, app server, file server, etc. (m...

Recomended solution for splitting up Maven projects?

What is the best way to split up a large enterprise project in Maven? It's easy enough to understand how to partition things vertically like this... You have a DAO project The DAO project is a dependency of the Service project The Service project is a dependency of the web project. Does anybody have input on best practices...

Creating an archive of all jars and source jars for a multi-module project

I'm building a Maven project which has half a dozen modules. I'm fine with importing it myself using either Maven or Ivy, but other teams would like to use those jars as well, but their practice is to commit the jars and source jars to version control. I'd like to generate a zip/tar assembly of all modules and their sources which they ...

Nexus supports Mass upload of artifacts?

Hi, I wanted to know if we can have mass upload of artifacts to the repository in Nexus. ...

JavaRebel with a Multi-module Enterprise Project in Maven

Does anybody have experience working with JavaRebel, specifically for a large web application built using Maven? There is a JavaRebel plugin for Maven that seems under-documented, does anybody have comments on how it works, can you really update one class in a Multi-module Enterprise Project and have it "automagically" change on your Se...

How to setup bundle development environment (Eclipse Equinox Maven)

Hi, I'am trying to setup eclipse environment to develop bundles (With maven-bundle-plugin-bnd) and run & debug that bundles equinox from eclipse I created sample bundles with org.apache.felix maven-bundle-plugin and can install and start that bundles from eclipse equinox, but every time i need to run "install file:C:\path\bundle1.ja...

How to force maven to download poms for offline use

Hi, my problem with maven is that if the maven repository is not responding, one cannot build. It seems to fetch every "mvn package" time some poms, which won't change, because they are of the same version. How can I say to maven that please don't look them up from server, and instead download them permanetly to offline repository? Tha...

Eclipse+Maven compile problem

Hello, currently, I am developing web-apps using Eclipse. The build is done using Maven. The problem is that during compile time Eclipse is showing a lot of errors since there are a lot of missing jars. The final result is OK since the Maven is responsible for fetching these jars. How can make the eclipse not fail the compilation? I kn...

cobertura on maven multi module project

Hello everybody, i have a maven project with 4 modules - 3 of them contain code and some tests (testing equals and hashcode of the classes) whereas the 4th module is for testing the 3 other modules. Now i want to run the cobertura code coverage tool to get an overview which classes are well tested and which are not. I did some investig...

how to configure <manifest> only once in pom.xml in a desktop application

Hi all, I'm making a swing application with maven and I try to keep the pom.xml under tight reins (this file tends to become a pile of junk after pasting there whatever we find in google). My pom is with jar and I use the maven-assembly-plugin with "jar-with-dependencies" descriptor. So I need to define twice the part of my project (...

Is there a way I can use Maven repositories to add dependencies to Ant?

I was wondering if anybody has seen a technique for adding Maven dependencies to Ant. I thought that Ivy was meant to do this but then I realized that it is only an Ant-style tool for dependency management. It seems to me that if somebody extended Ant to be able to reference Maven dependencies (perhaps only for open source libraries) A...

Maven - built jar using maven-assembly-plug in not always deployable

I can build a deployable jar just fine on my local machine, but when trying to use jar built off our server, even if I explicitly invoke the command by hand, the jar will not run. At first, it appeared that it wasn't including files I'd had in my classpath/Resources directory, but after adding the builder-helper plug in, it's now includi...

Maven-2: avoid default packaging?

Possible Duplicate: Maven-2: avoid default packaging? On executing mvn install , I'm getting App1.jar , App2.jar and default packaging jar. <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-2</version> <executions> <execution> <i...

How do I create a new packaging type for Maven?

I have a requirement to create jar files with Maven, but they need to be installed to the repository with a "foobar" extension , and it would be nice if they could have their own packaging type so we can identify those artifacts by the packaging. Can I set up a new packaging type to do this? ...

How do I execute a set of goals before my Maven plugin runs?

I'm writing a Maven plugin (Mojo) that needs to execute a standard set of other plugin executions before it is run. Is there a mechanism to declare all the goals within my plugin so I don't have to rely on the user defining them all in their POM? ...

Spring - Ways to include a jar which itself is using Spring in a Spring project

I need to use some 3rd party jar in my project. The project is a Spring project and the jar is also using Spring. Is there a way by which I can include the 3rd party jar in my project? I am finding it difficult to find each and every dependency of the 3rd part jar and inject it. ...