All Projects → ethlo → eclipselink-maven-plugin

ethlo / eclipselink-maven-plugin

Licence: Apache-2.0 License
Eclipselink JPA Maven plugin, supporting static weaving, canonical model generation, and DDL generation.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to eclipselink-maven-plugin

light-jpf
Lightweight Java Plugin Framework
Stars: ✭ 19 (-20.83%)
Mutual labels:  maven-plugin
gradle-git-versioning-plugin
This extension will set project version, based on current Git branch or tag.
Stars: ✭ 44 (+83.33%)
Mutual labels:  maven-plugin
aspectj-maven-plugin
www.mojohaus.org/aspectj-maven-plugin/
Stars: ✭ 77 (+220.83%)
Mutual labels:  maven-plugin
serviceloader-maven-plugin
Maven plugin for generating java serviceloader files
Stars: ✭ 46 (+91.67%)
Mutual labels:  maven-plugin
keep-changelog-maven-plugin
Maven plugin to help creating CHANGELOG by keeping one format and solving merge request conflicts problem by extraction of new CHANGELOG entries to seperate files.
Stars: ✭ 22 (-8.33%)
Mutual labels:  maven-plugin
native-build-tools
Native-image plugins for various build tools
Stars: ✭ 168 (+600%)
Mutual labels:  maven-plugin
docs-maven-skin
Minimalist HTML5 and Bootstrap based Maven Skin for using Maven Site as a documentation site.
Stars: ✭ 31 (+29.17%)
Mutual labels:  maven-plugin
maven-wrapper-plugin
Apache Maven Wrapper Plugin
Stars: ✭ 14 (-41.67%)
Mutual labels:  maven-plugin
aws-maven-plugin
Deploys resources to AWS using maven
Stars: ✭ 25 (+4.17%)
Mutual labels:  maven-plugin
oga-maven-plugin
🧩 Old GroupIds Alerter - A Maven plugin that checks for deprecated groupId+artifactId (e.g. did you know that graphql-spring-boot-starter moved from com.graphql-java to com.graphql-java-kickstart?).
Stars: ✭ 22 (-8.33%)
Mutual labels:  maven-plugin
RapidMavenPushPlugin
A Gradle plugin : Upload Artifacts to Multi Maven Repository
Stars: ✭ 21 (-12.5%)
Mutual labels:  maven-plugin
build-helper-maven-plugin
Build Helper Maven Plugin
Stars: ✭ 77 (+220.83%)
Mutual labels:  maven-plugin
xml-maven-plugin
XML Maven Plugin
Stars: ✭ 18 (-25%)
Mutual labels:  maven-plugin
webstart
www.mojohaus.org/webstart/
Stars: ✭ 27 (+12.5%)
Mutual labels:  maven-plugin
cyclonedx-maven-plugin
Creates CycloneDX Software Bill of Materials (SBOM) from Maven projects
Stars: ✭ 103 (+329.17%)
Mutual labels:  maven-plugin
jaxws-maven-plugin
www.mojohaus.org/jaxws-maven-plugin/
Stars: ✭ 18 (-25%)
Mutual labels:  maven-plugin
wagon-maven-plugin
www.mojohaus.org/wagon-maven-plugin/
Stars: ✭ 23 (-4.17%)
Mutual labels:  maven-plugin
scalafix-maven-plugin
Enables automatic refactoring and linting of Maven projects written in Scala using Scalafix.
Stars: ✭ 15 (-37.5%)
Mutual labels:  maven-plugin
bck2brwsr
Bck2Brwsr VM to transpile Java bytecode to JavaScript
Stars: ✭ 93 (+287.5%)
Mutual labels:  maven-plugin
elasticsearch-maven-plugin
A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build
Stars: ✭ 78 (+225%)
Mutual labels:  maven-plugin

eclipselink-maven-plugin

Maven Central Hex.pm Build Status Codacy Badge

Eclipselink JPA maven plugin made to simplify life of the Eclipselink JPA developer.

Features

  • No need to setup special APT processor for canonical model generation, just use goal modelgen.
  • Allows you to get rid of the persistence.xml file as the classes are detected automatically and a persistence.xml file is generated.
  • If the persistence.xml file already exists, missing <class>...</class> entries are added automatically. This allows you to have a basic configuration, but you do not have to manually add class entries.

Test project

A simple test project can be found here

Usage

Static weaving:

<plugin>
	<groupId>com.ethlo.persistence.tools</groupId>
	<artifactId>eclipselink-maven-plugin</artifactId>
	<version>${eclipselink-maven-plugin.version}</version>
	<executions>
		<execution>
			<phase>process-classes</phase>
			<goals>
				<goal>weave</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Meta-model generation:

<plugin>
	<groupId>com.ethlo.persistence.tools</groupId>
	<artifactId>eclipselink-maven-plugin</artifactId>
	<version>${eclipselink-maven-plugin.version}</version>
	<executions>
		<execution>
			<phase>generate-sources</phase>
			<goals>
				<goal>modelgen</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Both weave, DDL and meta-model generation and setting basePackages:

<plugin>
	<groupId>com.ethlo.persistence.tools</groupId>
	<artifactId>eclipselink-maven-plugin</artifactId>
	<version>${eclipselink-maven-plugin.version}</version>
	<executions>
		<execution>
			<id>weave</id>
			<phase>process-classes</phase>
			<goals>
				<goal>weave</goal>
			</goals>
		</execution>
		<execution>
			<id>ddl</id>
			<phase>process-classes</phase>
			<goals>
				<goal>ddl</goal>
			</goals>
			<configuration>
				<databaseProductName>mysql</databaseProductName>
			</configuration>
		</execution>
		<execution>
			<id>modelgen</id>
			<phase>generate-sources</phase>
			<goals>
				<goal>modelgen</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<basePackages>
			<basePackage>org.my.projectA</basePackage>
			<basePackage>org.my.projectB</basePackage>
		</basePackages>
	</configuration>
</plugin>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].