-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi,
first of all, thank you for providing this nice project!
Unfortunately we have faced some issues when updating to Spring Boot 4 and JPA 3.2 with the EclipseLink 5 (beta). The persistence.xml appears to be invalid based on the logs.
Logs
[ERROR] Failed to execute goal com.ethlo.persistence.tools:eclipselink-maven-plugin:3.0.2:weave (eclipselink-weave-model) on project project-name:
[ERROR] Exception Description: An exception was thrown while trying to load persistence unit at url: file:/projects/project-name/target/classes/
[ERROR] Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 5.0.0-B13.v202512111447-a92ecc697995fa55709edc3c28d855c9c3ac2a1d): org.eclipse.persistence.jpa.exceptions.PersistenceUnitLoadingException
[ERROR] Exception Description: An exception was thrown while processing persistence.xml from URL: file:/projects/project-name/target/classes/
[ERROR] Internal Exception:
[ERROR] (1. cvc-elt.1.a: Cannot find the declaration of element 'persistence'.)
[ERROR] -> [Help 1]
Plugin configuration
<plugin>
<groupId>com.ethlo.persistence.tools</groupId>
<artifactId>eclipselink-maven-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>eclipselink-generate-model</id>
<phase>generate-sources</phase>
<goals>
<goal>modelgen</goal>
</goals>
<configuration>
<includes>root.package.domain</includes>
<basePackage>root.package.domain</basePackage>
</configuration>
</execution>
<execution>
<id>eclipselink-weave-model</id>
<phase>process-classes</phase>
<goals>
<goal>weave</goal>
</goals>
<configuration>
<includes>root.package.domain</includes>
<basePackage>root.package.domain</basePackage>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>4.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>5.0.0-B13</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>3.2.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
<configuration>
<includes>root.package.domain</includes>
<basePackage>root.package.domain</basePackage>
</configuration>
</plugin>Generated XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence xmlns="https://jakarta.ee/xml/ns/persistence">
<persistence-unit name="persistence-unit-name">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>root.package.domain.Class1</class>
...
<class>root.package.domain.ClassN</class>
<properties>
<property name="eclipselink.weaving" value="static"/>
</properties>
</persistence-unit>
</persistence>Do you have any plans for updating the plugin to offer Spring Boot 4 and Persistence 3.2 support?
Thank you in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels