This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243453

Summary: TemplateAttrProvider does not recognize canonical OSI license URLs
Product: projects Reporter: Jesse Glick <jglick>
Component: MavenAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH_AVAILABLE
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed patch

Description Jesse Glick 2014-04-01 15:23:08 UTC
If you configure a POM to specify a license with URL

  http://opensource.org/licenses/mit-license.php

then you get the MIT license header. But the OSI site now links to

  http://opensource.org/licenses/MIT

and this is not recognized.
Comment 1 Jesse Glick 2014-04-01 15:59:15 UTC
Created attachment 146476 [details]
Proposed patch

Allows the mavenLicenseUrl attribute to be a space-separated list of URLs, for compatibility with projects already using the old URLs; the Alt-INSERT action always inserts the first URL, which I have set in all cases to be the new OSI URL (for licenses listed by OSI).
Comment 2 Milos Kleint 2014-04-02 08:08:37 UTC
http://hg.netbeans.org/core-main/rev/b7b7f001c8d2

applied, thanks for the patch
Comment 3 Quality Engineering 2014-04-03 02:03:00 UTC
Integrated into 'main-silver', will be available in build *201404030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b7b7f001c8d2
User: Milos Kleint <mkleint@netbeans.org>
Log: #243453: honor canonical OSI license URLs as well as older URLs, patch provided by jglick@netbeans.org