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

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

commit 80fee4ffd6e1f93d7320c038948ca73e976c6b39
Author: Richard Zowalla <[email protected]>
AuthorDate: Thu May 5 14:56:44 2022 +0200

    TOMEE-3940 - Fix TomEE :: Examples :: JakartaMail API
---
 examples/javamail/README.adoc    |  4 ++--
 examples/javamail/README_es.adoc |  4 ++--
 examples/javamail/README_pt.adoc |  4 ++--
 examples/javamail/pom.xml        | 31 ++++++++++++++++++++-----------
 4 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/examples/javamail/README.adoc b/examples/javamail/README.adoc
index e6dbfa85f3..828de3b0e6 100644
--- a/examples/javamail/README.adoc
+++ b/examples/javamail/README.adoc
@@ -1,7 +1,7 @@
 :index-group: Unrevised
 :jbake-type: page
 :jbake-status: status=published
-= Javamail API
+= Jakarta Mail API
 
 This is just a simple example to demonstrate a very basic usage of the
 API. It should be enough to get you started using the java mail
@@ -9,7 +9,7 @@ packages.
 
 #The Code
 
-== A simple REST service using the Javamail API
+== A simple REST service using the Jakarta Mail API
 
 Here we see a very simple RESTful endpoint that can be called with a
 message to send by Email. It would not be hard to modify the application
diff --git a/examples/javamail/README_es.adoc b/examples/javamail/README_es.adoc
index 5d021c4eab..8cde776f44 100644
--- a/examples/javamail/README_es.adoc
+++ b/examples/javamail/README_es.adoc
@@ -1,12 +1,12 @@
 :index-group: Unrevised
 :jbake-type: page
 :jbake-status: status=published
-= Javamail API
+= Jakarta Mail API
 
 Este es un ejemplo simple para demostrar un uso muy básico de la API Javamail.
 Debería ser suficiente para iniciarse en el uso de los paquetes que maneja 
java para correo.
 
-== Un servicio REST simple usando la API Javamail
+== Un servicio REST simple usando la API Jakarta Mail
 
 Aquí vemos un endpoint RESTful muy simple que puede ser llamado para enviar un 
correo. No debería ser complicado modificar la aplicación
 para generar otras opciones de configuración adicionales. 
diff --git a/examples/javamail/README_pt.adoc b/examples/javamail/README_pt.adoc
index 411f8d890f..0072935ad3 100644
--- a/examples/javamail/README_pt.adoc
+++ b/examples/javamail/README_pt.adoc
@@ -1,13 +1,13 @@
 :index-group: Unrevised
 :jbake-type: page
 :jbake-status: published
-= Javamail API
+= Jakarta Mail API
 
 Este é apenas um exemplo simples para demonstrar um uso muito básico da
 API. Deve ser o suficiente para você começar a usar o java mail
 pacotes.
 
-== Um serviço REST simples usando a API Javamail
+== Um serviço REST simples usando a API Jakarta Mail
 
 Aqui vemos um terminal RESTful muito simples que pode ser chamado com uma
 mensagem a ser enviada por e-mail. Não seria difícil modificar o aplicativo
diff --git a/examples/javamail/pom.xml b/examples/javamail/pom.xml
index 747b589f43..1925dad956 100644
--- a/examples/javamail/pom.xml
+++ b/examples/javamail/pom.xml
@@ -21,9 +21,10 @@
   <groupId>org.superbiz</groupId>
   <artifactId>javamail</artifactId>
   <version>9.0.0-M8-SNAPSHOT</version>
-  <name>TomEE :: Examples :: JavaMail API</name>
+  <name>TomEE :: Examples :: JakartaMail API</name>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <tomee.version>9.0.0-M8-SNAPSHOT</tomee.version>
   </properties>
   <build>
     <defaultGoal>install</defaultGoal>
@@ -31,10 +32,10 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>3.5.1</version>
+        <version>3.10.1</version>
         <configuration>
-          <source>1.8</source>
-          <target>1.8</target>
+          <source>11</source>
+          <target>11</target>
         </configuration>
       </plugin>
       
@@ -66,14 +67,22 @@
       <version>4.13.2</version>
       <scope>test</scope>
     </dependency>
-    <!--
-    The <scope>test</scope> guarantees that non of your runtime
-    code is dependent on any OpenEJB classes.
-    -->
     <dependency>
-      <groupId>org.apache.tomee</groupId>
-      <artifactId>openejb-cxf-rs</artifactId>
-      <version>9.0.0-M8-SNAPSHOT</version>
+      <groupId>org.apache.tomee.bom</groupId>
+      <artifactId>tomee-plus</artifactId>
+      <version>${tomee.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.icegreen</groupId>
+      <artifactId>greenmail</artifactId>
+      <version>2.0.0-alpha-2</version>
+      <exclusions>
+        <exclusion>
+          <groupId>junit</groupId>
+          <artifactId>junit</artifactId>
+        </exclusion>
+      </exclusions>
       <scope>test</scope>
     </dependency>
   </dependencies>

Reply via email to