mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
0306f4508f
* Adds a dynamic package import so JDBC drivers on the classpath can be used * Upgrades OpenJPA from 2.4.0 to 3.2.2 * Upgrades Derby JDBC driver from 10.11.1.1 to 10.16.1.1 * Adds config.xml and ConfigurableService annotation so add-on can be configured using the UI * Adds null annotations on all classes * Prevent NPEs and some code cleanup See also: * https://openjpa.apache.org/builds/3.2.2/apache-openjpa/RELEASE-NOTES.html * https://community.openhab.org/t/jpa-with-mysql-or-mariadb/138679 Fixes #13375 Signed-off-by: Wouter Born <github@maindrain.net>
72 lines
2.6 KiB
XML
72 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.openhab.addons.bundles</groupId>
|
|
<artifactId>org.openhab.addons.reactor.bundles</artifactId>
|
|
<version>3.4.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>org.openhab.persistence.jpa</artifactId>
|
|
|
|
<name>openHAB Add-ons :: Bundles :: Persistence Service :: JPA</name>
|
|
|
|
<properties>
|
|
<bnd.importpackage>!com.ibm.*,!com.sun.*,!oracle.*,!javax.interceptor.*,!javax.enterprise.*,!javax.rmi,!org.apache.bval.*,!net.sf.cglib.*,!org.apache.commons.beanutils.*,!org.apache.geronimo.*,!org.apache.avalon.*,!org.apache.log,!org.apache.tools.*,!org.apache.xerces.*,!org.jboss.*,!org.postgresql.*,!org.slf4j.impl,!weblogic.*</bnd.importpackage>
|
|
<openjpa.version>3.2.2</openjpa.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- https://mvnrepository.com/artifact/org.apache.openjpa/openjpa-all -->
|
|
<dependency>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa-all</artifactId>
|
|
<version>${openjpa.version}</version>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.apache.derby/derby -->
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derby</artifactId>
|
|
<version>10.16.1.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa-maven-plugin</artifactId>
|
|
<version>${openjpa.version}</version>
|
|
<configuration>
|
|
<excludes>org/apache/bval/**</excludes>
|
|
<includes>**/model/*.class</includes>
|
|
<addDefaultConstructor>true</addDefaultConstructor>
|
|
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa</artifactId>
|
|
<!-- set the version to be the same as the level in your runtime -->
|
|
<version>${openjpa.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>enhancer</id>
|
|
<goals>
|
|
<goal>enhance</goal>
|
|
</goals>
|
|
<phase>process-classes</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|