在開發插件時,我自己也有這個問題。 我想你使用的是聲納 - 插件 - 原型來創建你的周圍。如果你這樣做了,你的整個項目都在GNU 3許可證下,並且每個班級都有一個標題可以說明這一點。預定義的pom.xml包含定義它的一部分。在你的pom.xml中搜索「license」並刪除這部分。
如果這不解決問題,只需將-Dlicense.skip=true
添加到您的maven目標。
預期的頭就像是(請注意,當你使用-sonar-原型的第一件事情是設置)
/*
* MyLanguage Plugin
* Copyright (C) MyYear MyCompany
* [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
對於像我這樣不耐煩的人,只會在'mvn install'中添加'-Dlicense.skip = true'。 – frapen