This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit ead1b188dfc9f8b57aba75739a8bd426e057c640
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri May 22 15:41:14 2026 +0200

    examples: use Jakarta EE 11 API and drop obsolete endorsed-dirs setup
    
    - Bump jakartaee-api 10.0 -> 11.0.0-SNAPSHOT in rest-sse-example,
      polling-client, tomee-jersey-eclipselink and mp-jsonb-configuration.
    - datasource-definition: remove the geronimo-property-plugin / endorsed
      dirs machinery and the pre-Jakarta geronimo-annotation_1.3_spec
      dependency. The endorsed-dirs mechanism was removed in Java 9+ and
      java.endorsed.dirs prevents JVM startup on Java 17; the 
@DataSourceDefinition
      annotation is provided by jakartaee-api.
---
 examples/datasource-definition/pom.xml         | 46 --------------------------
 examples/mp-jsonb-configuration/pom.xml        |  2 +-
 examples/polling-parent/polling-client/pom.xml |  2 +-
 examples/rest-sse-example/pom.xml              |  2 +-
 examples/tomee-jersey-eclipselink/pom.xml      |  2 +-
 5 files changed, 4 insertions(+), 50 deletions(-)

diff --git a/examples/datasource-definition/pom.xml 
b/examples/datasource-definition/pom.xml
index c0bd1b94e4..86e2faa33b 100644
--- a/examples/datasource-definition/pom.xml
+++ b/examples/datasource-definition/pom.xml
@@ -29,31 +29,6 @@
   <build>
     <defaultGoal>install</defaultGoal>
     <plugins>
-      <plugin>
-        <groupId>org.apache.geronimo.buildsupport</groupId>
-        <artifactId>geronimo-property-plugin</artifactId>
-        <version>3.0.1</version>
-        <configuration>
-          <propertyName>annotations.endorsed</propertyName>
-          <listFiles>false</listFiles>
-          <classpath>
-            <dependency>
-              <groupId>org.apache.geronimo.specs</groupId>
-              <artifactId>geronimo-annotation_1.3_spec</artifactId>
-              <version>1.0</version>
-            </dependency>
-          </classpath>
-        </configuration>
-        <executions>
-          <execution>
-            <id>set-endorsed-property</id>
-            <phase>initialize</phase>
-            <goals>
-              <goal>set-property</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
@@ -62,22 +37,8 @@
           <source>17</source>
           <target>17</target>
           <release>17</release>
-          <compilerArguments>
-            <endorseddirs>${annotations.endorsed}</endorseddirs>
-          </compilerArguments>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>3.5.3</version>
-        <configuration>
-          <systemPropertyVariables>
-            <java.endorsed.dirs>${annotations.endorsed}</java.endorsed.dirs>
-          </systemPropertyVariables>
         </configuration>
       </plugin>
-      
     </plugins>
   </build>
   <repositories>
@@ -94,13 +55,6 @@
       <version>11.0.0-SNAPSHOT</version>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <!-- for the plugin to endorse the build -->
-      <groupId>org.apache.geronimo.specs</groupId>
-      <artifactId>geronimo-annotation_1.3_spec</artifactId>
-      <version>1.0</version>
-      <scope>provided</scope>
-    </dependency>
     <dependency>
       <groupId>com.h2database</groupId>
       <artifactId>h2</artifactId>
diff --git a/examples/mp-jsonb-configuration/pom.xml 
b/examples/mp-jsonb-configuration/pom.xml
index bc2230a49e..032d6b3314 100644
--- a/examples/mp-jsonb-configuration/pom.xml
+++ b/examples/mp-jsonb-configuration/pom.xml
@@ -23,7 +23,7 @@
   <packaging>war</packaging>
   <name>TomEE :: Examples :: Microprofile JSONB Configuration</name>
   <properties>
-    <version.jakartaee-api>10.0</version.jakartaee-api>
+    <version.jakartaee-api>11.0.0-SNAPSHOT</version.jakartaee-api>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <tomee.version>11.0.0-SNAPSHOT</tomee.version>
   </properties>
diff --git a/examples/polling-parent/polling-client/pom.xml 
b/examples/polling-parent/polling-client/pom.xml
index 99a33a5ccb..864c272970 100644
--- a/examples/polling-parent/polling-client/pom.xml
+++ b/examples/polling-parent/polling-client/pom.xml
@@ -78,7 +78,7 @@
           <dependency>
             <groupId>org.apache.tomee</groupId>
             <artifactId>jakartaee-api</artifactId>
-            <version>10.0</version>
+            <version>11.0.0-SNAPSHOT</version>
           </dependency>
           <dependency>
             <groupId>net.sourceforge.serp</groupId>
diff --git a/examples/rest-sse-example/pom.xml 
b/examples/rest-sse-example/pom.xml
index db4d700331..2906a26166 100644
--- a/examples/rest-sse-example/pom.xml
+++ b/examples/rest-sse-example/pom.xml
@@ -87,7 +87,7 @@
     <dependency>
       <groupId>org.apache.tomee</groupId>
       <artifactId>jakartaee-api</artifactId>
-      <version>10.0</version>
+      <version>11.0.0-SNAPSHOT</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
diff --git a/examples/tomee-jersey-eclipselink/pom.xml 
b/examples/tomee-jersey-eclipselink/pom.xml
index dc57f3d5f1..0f9ad36435 100644
--- a/examples/tomee-jersey-eclipselink/pom.xml
+++ b/examples/tomee-jersey-eclipselink/pom.xml
@@ -33,7 +33,7 @@
     <dependency>
       <groupId>org.apache.tomee</groupId>
       <artifactId>jakartaee-api</artifactId>
-      <version>10.0</version>
+      <version>11.0.0-SNAPSHOT</version>
       <scope>provided</scope>
     </dependency>
     <dependency>

Reply via email to