On Aug 12, 2013, at 1:50 PM, Nirmal Fernando <[email protected]> wrote:

> Oh... ok... What does that element consists of?

Just this:
        <licenses>
                <license>
                        <name>Apache 2</name>
                        
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
                        <distribution>repo</distribution>
                </license>
        </licenses>

This is optional, but good practice to have. Some jar mining sites will pull 
this in searches once a release is published.

Suresh


> 
> 
> On Mon, Aug 12, 2013 at 11:08 PM, Isuru Perera <[email protected]> wrote:
> Hi Nirmal,
> 
> What I meant was the <license> tag in Maven POM file.
> 
> 
> On Mon, Aug 12, 2013 at 11:02 PM, Nirmal Fernando <[email protected]> 
> wrote:
> 
> 
> 
> On Mon, Aug 12, 2013 at 12:05 PM, Isuru Perera <[email protected]> wrote:
> Hi all,
> 
> I have added Apache Parent POM to the root pom.xml [1].
> 
> With that I added license, scm details etc. to root pom.xml.
> 
> But we still have <license> defined in some child pom.xml files. For example 
> check: 
> grep -A 3 -R '<license>' . --include=pom.xml
> 
> I think we should remove those and keep license only in root pom. Or should 
> we add it to every POM?
> 
> AFAIK we should add licensing header to each and every file in the code base. 
>  
> 
> <scm> tag is also there in some pom.xml and those are invalid. See:
> grep -A 4 -R '<scm>' . --include=pom.xml
> 
> Likewise there are many things need to be cleaned up.
> 
> Some more things to check:
> grep -A 4 -R '<issueManagement>' . --include=pom.xml
> grep -A 7 -R '<mailingLists>' . --include=pom.xml
> grep -A 3 -R '<organization>' . --include=pom.xml
> grep -A 3 -R '<repositories>' . --include=pom.xml
> 
> I think we should keep general things only in root pom.
> 
> Please share your suggestions.
> 
> Thanks!
> 
> [1] https://issues.apache.org/jira/browse/STRATOS-44
> 
> -- 
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
> 
> Twitter: http://twitter.com/chrishantha | LinkedIn: 
> http://lk.linkedin.com/in/chrishantha/
> 
> 
> 
> -- 
> Best Regards,
> Nirmal
> 
> C.S.Nirmal J. Fernando
> Senior Software Engineer,
> WSO2 Inc.
> 
> Blog: http://nirmalfdo.blogspot.com/
> 
> 
> 
> -- 
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
> 
> Twitter: http://twitter.com/chrishantha | LinkedIn: 
> http://lk.linkedin.com/in/chrishantha/
> 
> 
> 
> -- 
> Best Regards,
> Nirmal
> 
> C.S.Nirmal J. Fernando
> Senior Software Engineer,
> WSO2 Inc.
> 
> Blog: http://nirmalfdo.blogspot.com/

Reply via email to