Skip to content
Advertisement

Tag: maven-2

Maven: compile aspectj project containing Java 1.6 source

Primary Question What I want to do is fairly easy. Or so you would think. However, nothing is working properly. Requirement: Using maven, compile Java 1.6 project using AspectJ compiler. Note: Our code cannot compile with javac. That is, it fails compilation if aspects are not woven in (because we have aspects that soften exceptions). Update 2/21/2011: There are two

Excluding classes in Maven Checkstyle plugin reports

I have a Maven 2 project and I want to configure my Checkstyle report plugin so that only some of my classes are analysed. I have found the maven.checkstyle.excludes property, but despite passing this as a command line parameter (using -D=maven.checkstyle.excludes=…) I can’t get it to work. I can’t find anything on the Plugin documentation page. Ideally I want to

“Cannot get the revision information from the scm repository”

I get maven error : Any idea how to solve this? Answer A quick search on Google seems to indicate that this error is related to the buildnumber-maven-plugin. However, I couldn’t reproduce the error on the command line on my machine (Maven 2.2.1, Java 1.6.0_16, svn 1.6.5 on GNU/Linux): From what I can see on Google, possible causes of problem

Detecting cyclic dependencies with Maven

In my application I’m using an external library (Batik 1.7) that is made up of several modules. The modules have multiple cyclic dependencies between themselves. This doesn’t influence the build, but some tools (e.g. the M2Eclipse Dependency Graph, or the Dependencies report) will not work anymore. Is there a good way to diagnose what cycles are there, and an easy

How do I get my Maven Integration tests to run

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 execute: mvn test all of the JUnit tests *Test.java within the child modules are executed. When I execute mvn test -Dtest=**/*Integration none of the Integration.java tests get execute

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: The reason I want to do this is because I’m using a continuous integration tool where I have full control over the command line options it uses to call maven, but managing the settings.xml for

Advertisement