Maven Plugins

Description

Maven Plugins provides common Maven 2 plugins used in our projects for any interested party.

The artifacts are identified in the following form : com.mysema.maven:<plugin>:<version>

Bookmark with: del.icio.us   digg   Mister Wong   YahooMyWeb   Reddit   Furl   Spurl   blogmarks

Overview

plugin
description
goals
latest version
maven-apt-plugin
Plugin for JDK6 APT based code generation
process
0.3.1
    test-process  
maven-version-plugin
Plugin for version update of POM
increment
0.1.0
    set (-Dversion=<version>)
 
dbmaintain-maven-plugin
Plugin for dbmaintain usage in maven
  1.0.4

maven-apt-plugin

maven-apt-plugin provides Maven integration of the Java 6 APT functionality.

The supported goals are

  • process
  • test-process

Here is an example of a configuration

<plugin>
	<groupId>com.mysema.maven</groupId>
	<artifactId>maven-apt-plugin</artifactId>
	<version>0.3.1</version>
	<executions>
		<execution>
			<goals>
				<goal>process</goal>
			</goals>
			<configuration>
				<outputDirectory>target/generated-sources/java</outputDirectory>
				<processor>com.mysema.rdfbean.query.BeanAnnotationProcessor</processor>
			</configuration>
		</execution>
	</executions>
</plugin>

maven-version-plugin

To use maven-version-plugin include the following configuration in your POM :

      <plugin>
        <groupId>com.mysema.maven</groupId>
        <artifactId>maven-version-plugin</artifactId>
        <version>0.1.0</version>
      </plugin> 

Now you can update the version of your POM and of all the children via

mvn version:set -Dversion=<NEW VERSION HERE>

dbmaintain-maven-plugin

dbmaintain-maven-plugin is a thin wrapper for dbmaintain Maven integration. The supported goals are

  • checkScriptUpdates
  • checkScriptUpdates
  • clearDatabase
  • createScriptArchive
  • disableConstraints
  • markDatabaseAsUpToDate
  • updateDatabase
  • updateSequences

The semantics are the same as the methods with the same name in the org.dbmaintain.launch.DbMaintain class.

Here is an example of a configuration

<plugin>
	<groupId>com.mysema.maven</groupId>
	<artifactId>dbmaintain-maven-plugin</artifactId>
	<version>1.0.4</version>
	<configuration>
		<configFile>${basedir}/src/main/sql/dbmaintain/dbmaintain.properties</configFile>
                <properties>
                    <!-- place overrides here -->
                </properties>
	</configuration>
	<dependencies>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.6</version>
		</dependency>
	</dependencies>
</plugin>

FAQ

Where do I get releases?
here

Where do I get snapshots?
here

In a nutshell

Name Maven Plugins
State Stable
License LGPL v2.1
Version Control on Mysema Source
Maven repo on Mysema Source
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.