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.
I was using the Maven plugin functionality to pick up a license for the project with netbeans.hint.license. That works fine and the license text gets inserted into newly created Java files after a template was created with Tools - Templates. That template gets stored in the local NetBeans configuration directory. I would much rather store this template in the project so that it can be shared without everyone having to manually create a template in NetBeans.
It is not Maven specific. Basically every non-private project of any kind that uses license headers in sources needs this support. It is wrong to ask everyone in the team to configure their IDE (because license templates can only refer to content of system filesystem and cannot read project license data/content from real project data). Please add a way how to include files relative to the project into file templates.