maven-2

How can I deploy artifacts from a Maven build to the SourceForge File Release System?

I am using SourceForge for some Open Source projects and I want to automate the deployment of releases to the SourceForge File Release System. I use Maven for my builds and the standard SFTP deployment mechanism doesn't seem to work unless you do some manual preparation work. I have come across some old postings on other forums suggestin...

Repository layout for large Maven projects

I have a large application (~50 modules) using a structure similar to the following: Application Communication modules Color communication module SSN communication module etc. communication module Router module Service modules Voting service module Web interface submodule for voting Vote collector submodule for voting etc. for vot...

How do I profile a Maven Application in Netbeans?

I've got a project using Maven 2 as the build tool. I use Netbeans 6 as my IDE and really want to be able to use the profiler. How can I get this to work? ...

How do I tell Maven to use the latest version of a dependency?

In Maven, dependencies are usually set up like this: <dependency> <groupId>wonderful-inc</groupId> <artifactId>dream-library</artifactId> <version>1.2.3</version> </dependency> Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is there any way to ...

In Maven 2, how do I know from which dependency comes a transitive dependency ?

I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory. To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to know which dependency in my pom.xml brings that. ...

Hudson can't build my Maven 2 project because it says artifacts are missing from the repository? (they aren't)

I'm using Hudson and Maven 2 for my automated build/CI. I can build fine with maven from the command line, but when I run the same goal with Hudson, the build fails complaining of missing artifacts. I'm running Hudson as a windows XP service. ...

How to reference javadocs to dependencies in Maven's eclipse plugin when javadoc not attached to dependency

I use Eclipse, Maven, and Java in my development. I use Maven to download dependencies (jar files and javadoc when available) and Maven's eclipse plug-in to generate the .project and .classpath files for Eclipse. When the dependency downloaded does not have attached javadoc I manually add a link for the javadoc in the .classpath file so ...

Maven2 Eclipse integration

There seem to be two rival Eclipse plugins for integrating with Maven: m2Eclipse and q4e. Has anyone recently evaluated or used these plugins? Why would I choose one or the other? ...

jtds No Suitable Driver Exception when running a maven built project

We have a simple spring-hibernate application(console app) where in we have set the classpath in manifest file of the executable jar file. And the app connects to the database using jtds driver, Everything works as expected on windows machine and jdk1.6. But on Linux, the app is unable to find the driver, We are running the program usin...

Can I add maven repositories in the command line?

I'm aware I can add maven repositories for fetching dependencies in ~/.m2/settings.xml. But is it possible to add a repository using command line, something like: mvn install -Dmaven.repository=http://example.com/maven2 The reason I want to do this is because I'm using a continuous integration tool where I have full control over the c...

Can Maven be made less verbose?

I'm sometimes forced to use Maven (eww). It spews out far too many lines of output to my taste (I like the Unix way: no news is good news). The lines I want to get rid of are marked [INFO], but I couldn't find any mention of an argument or config settings that controls the verbosity of Maven. Is there no LOG4J-like way to set the log ...

Missing aar file in maven2 multi-project build

I'm trying to use maven2 to build an axis2 project. My project is configured as a parent project with AAR, WAR, and EAR modules. When I run the parent project's package goal, the console shows a successful build and all of the files are created. However the AAR file generated by AAR project is not included in the generated WAR project...

persistence.xml not found during maven testing

I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run. javax.persistence.PersistenceException: No Persistence provider for EntityManager named aimDatabase It looks like it...

Maven or Ant?

Back up your claim with some actual benefits. ...

Where can I find a good introduction to maven?

Hi folks, I have a sufficient amount of experience with ant so far, but I am interested in learning more about maven. It seems really opaque. Can you recommend a good introduction to maven -- I'm looking for as much clarity and simplicity as possible. I suppose I'm looking specifically for information on maven 2 if it comes down to it....

Maven Jdepend report contains no data

I'm running the jdepend maven plugin on my project and whether I run "mvn site:site" or "mvn jdepend:generate" the report that gets generated says "There are no package used." There are no errors in the maven output. Other plugins (cobertura, findbugs, etc.) run fine. My pom is configured like this: <reporting> <plugins> <p...

Why does mvn release:prepare fail while tagging?

With my multiproject pom I get an error while running release:prepare. There is nothing fancy about the project setup and every release-step before runs fine. The error I get is: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] -------------------------------------...

Maven plugins for javascript

Javascript code can be tough to maintain. I am looking for tools that will help me ensure a reasonable quality level. So far I have found JsUNit, a very nice unit test framework for javascript. Tests can be run automatically from ant on any browser available. I have not found yet some javascript equivalent of PMD, checkstyle, Findbug... ...

Maven2 Multiproject Cobertura Reporting Problems During mvn site Build

We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We're using mvn 2.0.8. I've tried running "mvn ...

force Maven2 to copy dependencies into target/lib

Hi, How do I get my project's runtime dependencies copied into the target/lib folder? As it is right now, after 'mvn clean install' the target folder contains only my project's jar, but none of the runtime depencies. Thanks, Michael ...