You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2020/02/10 08:59:13 UTC

[maven-changes-plugin] branch MCHANGES-403 created (now d9ef345)

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

slachiewicz pushed a change to branch MCHANGES-403
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git.


      at d9ef345  [MCHANGES-403] Run Jenkins build with default configuration

This branch includes the following new commits:

     new a33811d  [MCHANGES-403] Remove use of internal Sun SSL provider
     new d9ef345  [MCHANGES-403] Run Jenkins build with default configuration

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-changes-plugin] 01/02: [MCHANGES-403] Remove use of internal Sun SSL provider

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MCHANGES-403
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git

commit a33811de2c2479ae04a74f5d9d076aea58b4d9ae
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Feb 10 09:57:34 2020 +0100

    [MCHANGES-403] Remove use of internal Sun SSL provider
---
 .../mailsender/ProjectJavamailMailSender.java       | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java b/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java
index db7a90d..a95414d 100644
--- a/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java
+++ b/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java
@@ -19,7 +19,6 @@ package org.apache.maven.plugins.announcement.mailsender;
  * under the License.
  */
 
-import java.security.Security;
 import java.util.Date;
 import java.util.Properties;
 
@@ -85,24 +84,12 @@ public class ProjectJavamailMailSender
 
         if ( isSslMode() )
         {
-            try
-            {
-                // Try to load the SSL Provider class before we use it, it isn't present in non-Sun JVMs
-                this.getClass().getClassLoader().loadClass( "com.sun.net.ssl.internal.ssl.Provider" );
-
-                Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
+            props.put( "mail.smtp.socketFactory.port", String.valueOf( getSmtpPort() ) );
 
-                props.put( "mail.smtp.socketFactory.port", String.valueOf( getSmtpPort() ) );
+            props.put( "mail.smtp.socketFactory.class", SSL_FACTORY );
 
-                props.put( "mail.smtp.socketFactory.class", SSL_FACTORY );
-
-                props.put( "mail.smtp.socketFactory.fallback", "false" );
-            }
-            catch ( ClassNotFoundException e )
-            {
-                getLogger().error( "You can't use sslMode because your system is missing an SSL Provider.", e );
-            }
-        }
+            props.put( "mail.smtp.socketFactory.fallback", "false" );
+    }
 
         if ( isTlsEnabled() )
         {


[maven-changes-plugin] 02/02: [MCHANGES-403] Run Jenkins build with default configuration

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MCHANGES-403
in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git

commit d9ef34512f6709dabef1fb4ed7aece4989386431
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Feb 9 22:23:49 2020 +0100

    [MCHANGES-403] Run Jenkins build with default configuration
    
    ie testing with Java 12, 13 and 14 is possible now
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a549506..e9f05f7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,4 +17,4 @@
  * under the License.
  */
 
-asfMavenTlpPlgnBuild(jdk:['7','8','11'])
+asfMavenTlpPlgnBuild()