I would like to make my plugin require a license to run similar to the maven clover plugin. Is there some utility out there that I can generate licenses with that will also allow me to integrate that into the plugin?
I need to do the following steps.
Modify the existing plugin to validate the license file
Generate the license file on...
How to remove generated build artefacts from Maven's target directory? Maven generates a jar or war file to target directory. I'd like to remove that file after maven has installed the jar/war file to local repository (that is, after maven has executed the 'install' goal). The remove could happen either at install goal or separate goal I...
I am wondering if there is a way through the maven site plugin to have it automatically create a link to some JavaDoc structure (like a class) within the html it generates.
As an example of what I mean, Doxygen provides a way to do this through using the doxy protocol. You can create an anchor like such:
<a href="doxy://class/ExampleC...
I have written a Maven plugin to grab the machine IP address and would like to be able to create a property so that the IP address gets filtered into a file (via ${ipaddress}) when archetype generation happens.
I have not been able to find how to do this. Does anyone know?
...
Does anybody know if there is a Maven 2 plugin for including Ohloh statistics/widgets as a report?
...
I followed the instructions here, and it worked but only if it was mapped to a directory other than the default.
Here's a sample that I tried:
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<!-- the below works when uncommented and does exclude...
I'm a lone Emacs user in a group that's hung up on Eclipse. Time and again, code diffs are made larger by imports that have been "organized" or "cleaned up" by Eclipse.
I don't have a strong opinion on the subject of import style in Java, but I do want to minimize our diffs. What can I do?
We use Maven2 for builds; is there a plugin th...
As part of my pom.xml I copy some extra resources to the target directory as follows.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<id>copy-package-doc</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>...
I'm writing a Maven plugin and I am using default values for all parameters such as this:
/**
* The file with the site structure.
*
* @parameter expression="${generateSite.siteFile}" default-value="${basedir}/src/oda/site.xml"
*/
private File siteFile;
Now I am adding a new parameter which is a collection. Is there a way to set d...
I'm trying to run jetty without building the whole project, but simply point jetty to a folder under the target folder. Reason behind doing this is that I wish to use jetty as a static content server while i build application for glassfish. i don't want to redeploy all the time when i make a little change to a css file, for example.
Whe...
I have created a webapp using maven2 archetype in netbeans 6.7.
when I do plain build(removing all the plugin configuration), it copies all the required files including the '_svn' folders. But I don't want those files, how can I clean _svn folders/files from the *.war file and from the exploded target folder which contains the 'src/main...
I have a multimodule project that I want to deploy a site for, but it seems like my site deployment configuration is not being inherited by subproject child modules.
parent
moduleA
moduleB
On the filesystem they are located relative to each other:
/parent/
/moduleA/
/moduleB/
When I run:
mvn site-deploy -P documentation
My...
I use maven to build a multi module project. My module 2 depends on Module 1 src at compile scope and module 1 tests in test scope.
Module 2 -
<dependency>
<groupId>blah</groupId>
<artifactId>MODULE1</artifactId>
<version>blah</version>
<classifier>tests</classifier>
<scope>test</scope>
</...
I am using Maven 2.0.9 to build a multi module project. I have defined the assembly plugin in my parent pom. I can get my assemblies built using
mvn install assembly:assembly
This command runs the tests twice, once during install phase and another during assembly. I tried assembly:single but it throws an error. Any help to get my asse...
Hi folks,
I’m new to maven and my first task is writing a Mojo. We are running a integration test tool which loads some classes of the build output and runs some tests on them. I managed to write a maven pom for the test library, so I can include it wherever I want. My Problem is now to write a plugin which runs the tests automatically....
Is there a maven plugin which automatically calculates and updates serial version uid for all java class files implementing the Serializable interface?
...
For unit tests, demonstrations and Hibernate tasks I would like to use a small and simple Java database like Derby / Java DB or HSQLDB, which can be called from within Maven.
So far I have not found a Maven plugin which can download and launch Java DB (which is my favorite at the moment) or something similar.
...
I have a Maven project that is a child project. It has many sibling projects and the job of this project is to get resources from the siblings and package them in a zip file using the antrun plugin.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://...
I have a simple pom and added an ant-run to the compile but it only executes then when I do the following:
mvn install antrun:run
mvn install -- doesn't process the ant-run
mvn antrun:run -- doesn't process the ant-run
I thought that be linking the plugin to the lifecyce phase that the plugin would be executed when I try to achieve t...
In the Ant task of the Hibernate Tool hbmtemplate, it is possible to use *.hbm.xml files as input instead of reading table descriptions over JDBC.
Is there a way to do the same in the hbmtemplate goal of the Hibernate3 Maven plugin from codehaus?
In Ant, I can do this by adding a fileset to the configuration:
<configuration configur...