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 - TemplateAttrProvider does not recognize canonical OSI license URLs
Summary: TemplateAttrProvider does not recognize canonical OSI license URLs
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2014-04-01 15:23 UTC by Jesse Glick
Modified: 2014-04-03 02:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (7.96 KB, patch)
2014-04-01 15:59 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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