Maven JDBC Plugin

A maven plugin that supports artifact generation off of a database schema.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

za.co.no9
ArtifactId

ArtifactId

jdbc-8-maven-plugin
Last Version

Last Version

8.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven JDBC Plugin
A maven plugin that supports artifact generation off of a database schema.
Project URL

Project URL

https://github.com/graeme-lockley/jdbc-8-maven-plugin
Source Code Management

Source Code Management

https://github.com/graeme-lockley/jdbc-8-maven-plugin.git

Download jdbc-8-maven-plugin

How to add to project

<plugin>
    <groupId>za.co.no9</groupId>
    <artifactId>jdbc-8-maven-plugin</artifactId>
    <version>8.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
commons-io : commons-io jar 2.2
org.apache.commons : commons-lang3 jar 3.3.2
org.apache.maven : maven-plugin-api jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

test (3)

Group / Artifact Type Version
com.h2database : h2 jar 1.3.175
junit : junit jar 4.11
za.co.no9 : jfixtures jar 1.4

Project Modules

There are no modules declared in this project.

jdbc-maven-plugin

I am very interested in the DRY principle and how this principle can be applied across numerous use-cases. Specifically this project is in support of applying this principle within the context of relational databases.

This project is a JDBC maven plugin which allows handlers to be invoked to generate specific artifacts off of a database. The intention is that the handlers would interrogate the database's schema and produce either a software artifact or an artifact for human consumption. Two projects that illustrate how to use this plugin are:

  • schemadoc-8-handler: generates a schema diagram based on the underlying tables and foreign key structures. An example project that uses this handler can be found at schemadoc-8-example.
  • jsqldsl-8-handler: generates Java classes to describe the table structure and foreign key relationships to support a type-safe JDBC interface into the associated database.

Versions

Version
8.0