maven-plugin

Maven Grails Building with 'mvn clean install' doesn't work

Hi, I've built a Maven Grails project which can be build fine using command mvn grails:war. However, using the standard mvn install fails to work - I get exceptions complaining that a util Java class (held under the grails-app/util folder) can't compile because it can't find one of the domain classes. I'm not using any package structu...

Is it possible to create an "uber" jar containing the project classes and the project dependencies as jars with a custom manifest file ?

I'm trying to create a executable jar(using maven) that contains the project classes and it's dependencies with a manifest file that has the entry for the main class and the class path entry that points to the dependencies packed in the root of the jar;something like this : Manifest File: ..... Main-Class : com.acme.MainClass Class-Pa...

Maven: How to get all transitive dependencies programatically in a MOJO

Possible Duplicate: How to get access to Mavens dependency hierarchy within a plugin. The dependency:tree plugin:goal has an option 'verbose' which displays all conflicts & duplicates in the dependency tree. I am trying to reuse that information in my own mojo to generate reports, however - I can't seem to figure out exactly how...

Compile scala classes with debug info through Maven

I have a scala project that I use Maven and the maven-scala-plugin to compile. I need to include debug information in the compiled classes and I was wondering is there a way to ask Maven or the scala plugin to do this. I found this page that makes it sound possible but it's not clear where to put the params in the pom.xml. If possible I...

converting GWT1.7 application to GWT2.0

I am developing a web application in GWT 1.7.Now I am planning to move to GWT 2.0. I am using maven build tool and intellij idea IDE.Can any one tell me the maven plugin for GWT2.0 and how to run/debug using intellij idea IDE?RIght now I am using GWT Mojo plugin http://mojo.codehaus.org/gwt-maven-plugin/ ? ...

How can I configure Maven to commit to a Mercurial repository when I install:install

Maven's SCM plug-in doesn't appear to provide a "commit" goal. scm:checkin performs a commit AND push. I need to avoid the push. I'm simply interested in doing an hg commit during install:install. I'm not using the release plugin and don't need it yet. I'm simply working locally in a multi-module environment and want to ensure that my s...

Jalopy to format return/throw statements

Hi all, I would like Jalopy to format my return and throw statements such that they look like a method call since they are: return(true); throw(new IllegalArgumentException("You can't do that, what we you thinking?")); I have the rest of the code formatted exactly the way I want so this is the icing on the cake. Also as an aside, I...

How to generate JPA mapping file from the JPA annotated entity classes?

I am using openjpa runtime of JPA specification. At development time I am using annotations to configure jpa entities. At Integration, Pre-Production and and Production environment, I am using orm mapping files to configure entities. Please suggest a tool which can generate mapping files from jpa annotations, so that these mapping files ...

send a mail from java5 and java6

I know similar questions have been asked many times befor, but I think this one slitly different :) I'm writing a maven report plugin which will send emails to a list of users. I now have the problem, that the code seems to be working fine when I run it with java5, but failes with java6. Actualy the plugin is writen in Groovy and uses t...

How to execute tasks conditionally using the maven-antrun-plugin?

I need to execute some ant commands depending on an environment variable passed in as a parameter to the maven build command. At the moment I have 3 tasks blocks and only the tasks block with no condition is being executed. <tasks name="isProdCheck"> <condition property="isProd"> <equals arg1="${environment}" arg2="PROD" /> </c...

Change output directory for apt-maven-plugin

I am using apt-maven-plugin to process some Beehive Netui annotations before building a war. The output of the apt processing is a _pageflow directory which contains struts config files (xml text) and the like. The problem is that it is being output in whatever directory I run maven from, not in the ${project.build.directory}/classes d...

Signing Applet with Maven jar plug-in and Bouncy Castle

I have a problem with a signed Java applet - specifically, why it is not signed using my certificate. I'm using Maven in Eclipse. The applet (a) allows the user to choose a local file or directory, (b) encrypts the file(s), and (c) uploads the file(s) to the a PHP based web page. The applet is signed, presumably using my certificate - i...

Transitive dependencies in maven plugins

Are dependencies in Maven plugins supposed to resolve their transitive dependencies or do they have to be manually added to the plugin dependencies? ...

Maven 2 assembly with dependencies: jar under scope "system" not included.

Hello, I am using maven-assembly plugin to create a jar of my application, including its dependencies as follows: <assembly> <id>macosx</id> <formats> <format>tar.gz</format> <format>dir</format> </formats> <dependencySets> <dependencySet> <includes> <include>*:jar</incl...

Maven plugin for gathering source code statistics

Our project is based on J2EE and we would like to know if there is a open source maven-plugin which either integrates with cloc (Refer http://stackoverflow.com/questions/1353631/source-code-statistics) or other tools? ...

making maven work with eclipse

Hello I'm trying to install maven plugin with eclipse and I have a following problem, more in picture below : So my question is, is this supposed to take this long or I did something wrong? I'm using eclipse galileo , I went to the window-> install new software -> typed in http://m2eclipse.sonatype.org/update/ website and name ma...

How do I get Hudson to generate a Findbugs report without failing due to an exception?

Update As of Hudson Findbugs plug-in version 4.3 this is no longer an issue End Update As an example of my problem, I'm trying to build the following project http://www.sonatype.com/books/mvnex-book/reference/multimodule.html I added the following to simple-parent/pom.xml <reporting> <plugins> <plugin> <groupId>org.codeh...

Using Maven to Deploy to Weblogic Clusters

org.codehaus.mojo weblogic-maven-plugin 2.9.1 We're currently using the weblogic maven plugin successfully to deploy to our local WebLogic 9.2 instances. When we try to deploy to a remote environment we have a problem. We use a two machine cluster, with the admin server and managed server on one machine, and another managed server on a...

Modifying POM settings from plugin code.

Hi, I've just recently started writing Maven plugins and was wondering if there is a common way to modify the values within the pom.xml file e.g. changing an artifacts version number. With the exception of the line being modified I would want the remaining formatting within the xml file to be preserved. I'm just about to start manually...

Add mojo to custom lifecycle defined by another maven plugin

I'm using a maven plugin that defines a custom packaging type and lifecycle for my projects. Lets call this packaging "foo", defined by the "foo-plugin". I have no control over said plugin, but I want to extend it's lifecycle definition in my plugin. I am writing another plugin, lets call this one the "bar-plugin". I want a certain goal...