You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/09/16 15:52:36 UTC

[maven] branch master updated: [MNG-6358] improved licenses sources for inclusion

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

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


The following commit(s) were added to refs/heads/master by this push:
     new ed8bc6b  [MNG-6358] improved licenses sources for inclusion
ed8bc6b is described below

commit ed8bc6bc0e90f0c37b53a68fea3e6d7c61a8e243
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Sep 16 17:52:34 2018 +0200

    [MNG-6358] improved licenses sources for inclusion
---
 .../src/main/appended-resources/META-INF/LICENSE.vm      | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/apache-maven/src/main/appended-resources/META-INF/LICENSE.vm b/apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
index b85aaf0..f2fa41b 100644
--- a/apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
+++ b/apache-maven/src/main/appended-resources/META-INF/LICENSE.vm
@@ -24,19 +24,25 @@ subject to the terms and conditions of the following licenses:
 
 #set ( $apacheLicenseNames = [ "Apache License, Version 2.0", "The Apache Software License, Version 2.0",
     "ASLv2", "Apache Public License 2.0", "Apache 2.0" ] )
+#set ( $MITLicenseNames = [ "MIT License", "MIT license", "The MIT License" ] )
 #foreach ( $project in $projects )
 #**##foreach ( $license in $project.licenses)
-#*  *##if ( !$apacheLicenseNames.contains( $license.name) )
+#*  *##if ( !$apacheLicenseNames.contains( $license.name ) )
 #*    *##set ( $artId = $project.artifact.artifactId )
-#*    *##set ( $lf = $locator )
 #*    *##set ( $url = $license.url )
-#*    *### glass fish URL is now invalid, use a fixed one
+#*    *### glassfish URL is now invalid, use a fixed one
 #*    *##if ( $url == "https://glassfish.dev.java.net/public/CDDLv1.0.html" )
-#*      *##set ( $url = 'https://glassfish.java.net/public/CDDLv1.0.html' )
+#*      *##set ( $url = 'https://repository.jboss.org/licenses/cddl.txt' )
+#*    *##end
+#*    *##if ( $MITLicenseNames.contains( $license.name ) )
+#*      *##set ( $url = 'https://repository.jboss.org/licenses/mit.txt' )
+#*    *##end
+#*    *##if ( $url == "http://www.eclipse.org/legal/epl-v10.html" )
+#*      *##set ( $url = 'http://www.eclipse.org/org/documents/epl-1.0/EPL-1.0.txt' )
 #*    *##end
 #*    *##if ( $url )
 #*      *##set ( $licFile = 'lib/' + $artId + '.license' )
-#*      *##set ( $downloaded = $lf.getResourceAsFile( $url, "licenses/${licFile}" ) )
+#*      *##set ( $downloaded = $locator.getResourceAsFile( $url, "licenses/${licFile}" ) )
 #*    *##end
 
 - $project.name#if ( $project.url ) ($project.url)#end $project.artifact