maven-2

maven jdepend fail build with cycles

Is there way to use the jdepend plugin in maven to fail a build when package cycles exist? I know you can do it fairly easily with ant, but I haven't figured out how to do it with maven. thanks, Jeff ...

How can i display a message in Maven

How can i display a message in Maven? In ant, we do have "echo" to display a message, but in maven, how can i do that? ...

Logging a Jetty SSL Client Certificate Issue

I am trying to configure Jetty (via the jetty-maven-plugin) to use client certificates. I have it working (somewhat) without the client certificate, but with the set to yes, absolutely nothing happens. What I need to know is how to configure Jetty to log its startup and operation to try to figure out the issue. Can anyone assist? ...

How do you keep Hudson from giving Maven the -B option for builds?

When Hudson goes to build my project, it executes Maven as follows: Executing Maven: -B -f /path/to/root/pom.xml clean install This works fine on most projects. (The -B is for "batch" or "non-interactive mode", BTW). But for this one project that uses AndroMDA (which I can't recommend for future projects, it's really a pain-in-the-b...

How to avoid double compilation and testing with cobertura:check?

I'm using maven-cobertura-plugin in order to calculate code coverage in my project. As I understand, this plugin starts a new/forked build cycle in order to compile and test the code base. When it's done the plugin calculates code coverage. As I understand, this is the only approach the plugin can use, and it's fine for me. The problem ...

How to copy dependencies to gae war/WEB-INF/lib

I'm coming from Ant perspective, so pardon me. I realise there are quite a few questions here already on how to maven dependencies, but none of them seem to tell how to do what need to do. Question 1: Currently, in conjunction with using maven-war-plugin, when I run mvn war:war, it creates a war folder in target folder. However, I wish...

Maven - pass argument to use in exec-maven-plugin

Hi, in my pom I've added the exec-maven-plugin to call a java class which will generate a file. This class requires some parameters to be passed to the main method, one of those is the location of an input file (outside the project). Until now I've been using a relative path for this which works fine: <plugin> <gr...

Maven Site Plugin: How does menu inheritance work?

If I have a multi-module project, how can I inherit a menu from my parent POM? The project layout is: main <-- main project which just contains modules parent <-- parent POM ext <-- 3rd party code I tried this in my parent's site.xml: <menu name="Projects"> <item name="Main Project" href="${web-root}/" collapse="false...

Intellij IDEA: multiple goals, multiple projects, one button

Hi! I find myself often running the same goals (clean install) of different, interdependent maven projects in Intellij IDEA one after another. Does anyone know of a way to configure something like a maven goal combination, ideally such that you configure a button in IDEA's task bar that you can hit to execute these goals in sequence? ...

Create project from maven archetype via Apache Ivy

If you want to create project with a Maven archetype you type mvn archetype:generate -DarchetypeGroupId=... -DarchetypeArtifactId=... \ -DarchetypeVersion=... -DgroupId=... -DartifactId=... \ -Dversion=... How this line would change if you are using Ivy? ...

copy files from my project with maven

Is it possible that I copy folders from my project to a certain location during some maven phase? and does anybody know how? ...

Testing against Java EE 6 API

I write an addition to JAX-RS and included the Java EE 6 API as a Maven dependency. <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> <scope>provided</scope> </dependency> Then I have a little test case: @Test public void testIsWriteable() { class SpecialViewable...

Best way to get maven dependencies

I only need to use this class org.apache.commons.io.FileUtils, and yet I'm downloading all commons Classes which I actually don't need, is there a way to say to maven download just FileUtils class? Not whole commons like from dependency below <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <versio...

How would I use Maven to install the JCE Unlimited Strength Policy files?

Some code I have requires the JCE unlimited Strength Policy Files. I'd like to add this dependency into the Maven Pom file so the other developers on my team don't have to individually each apply this to their systems. I realize that the systems this is eventually deployed to will need to have the JCE files manually installed. This is ...

How to make wicket's quickstart maven archetype for 1.4.9 available in Eclipse?

Hi. I'm using Eclipse 3.6 with the m2Eclipse plugin. Up until now I've been using Wicket's web based quickstart, but I just realised that m2Eclipse allows me to create Maven projects from archetypes within Eclipse. The problem is that the wicket-archetype-quickstart is version 1.4.7, but the newest version of Wicket is 1.4.9. Is it pos...

maven duplicated groupId, artifactId and versions in submodules

We're optimizing our Maven configuration (from previously using ant) and I've just read the Maven by Example book from Sonatype. Duplicating configurations has gotten us in trouble in the past, so I absolutely want to avoid even the tiniest bit of this. The above book mentions to use the built-in project.groupId and project.version pro...

Recommendable Maven repository search engines?

mavensearch.net doesn't know current versions in many cases, mvnrepository.com is a bit more up to date but doesn't show repositories from where a package can be downloaded, what I would find very useful. What Maven respository search engines do you use and like? ...

How can i config module and application name for JNDI Lookups

In EJB 3.1 JNDI Lookups can be made with different Lookup-Names: java:global[/<app-name>]/<module-name>/<bean-name>!<fully-qualifiedbean interface-name> java:global[/<app-name>]/<module-name>/<bean-name> java:app/<module-name>/<bean-name>!<fully-qualified-bean-interface-name> java:app/<module-name>/<bean-name> java:module...

Maven archtype plugin doesn't exist error

I have Maven 2.2.0, JDK 6 on Mac OS X 10.6 with the system firewall is set to on. I'm trying to create a web application via maven archtype: mvn archtype:generate But I got this error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:m...

How should I trust Apache Maven?

Hey, I just faced this bug with Maven: http://jira.codehaus.org/browse/ARCHETYPE-304?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel And it looks that it is not solved yet. How should I trust Maven and adopt it as our build tool? ...