Author: fgiust
Date: Sun Oct 22 13:55:39 2006
New Revision: 466875

URL: http://svn.apache.org/viewvc?view=rev&rev=466875
Log:
add license details to standard eclipse artifacts

Modified:
    
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/MakeArtifactsMojo.java

Modified: 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/MakeArtifactsMojo.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/MakeArtifactsMojo.java?view=diff&rev=466875&r1=466874&r2=466875
==============================================================================
--- 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/MakeArtifactsMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/MakeArtifactsMojo.java
 Sun Oct 22 13:55:39 2006
@@ -36,6 +36,7 @@
 import org.apache.maven.artifact.metadata.ArtifactMetadata;
 import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.model.Dependency;
+import org.apache.maven.model.License;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
 import org.apache.maven.plugin.AbstractMojo;
@@ -241,6 +242,16 @@
             model.setName( name );
             model.setVersion( version );
             model.setPackaging( "eclipse-plugin" );
+
+            if ( groupId.startsWith( "org.eclipse" ) )
+            {
+                // infer license for know projects, everything at eclipse is 
licensed under EPL
+                // maybe too simplicistic, but better than nothing
+                License license = new License();
+                license.setName( "Eclipse Public License - v 1.0" );
+                license.setUrl( 
"http://www.eclipse.org/org/documents/epl-v10.html"; );
+                model.addLicense( license );
+            }
 
             if ( deps.length > 0 )
             {


Reply via email to