Sam miałem ten problem podczas tworzenia wtyczki. Myślę, że używasz sonaru - archetypu wtyczki do tworzenia otoczenia. Jeśli to zrobisz, twój cały projekt jest objęty licencją GNU 3, a nagłówek w każdej klasie powinien tego powiedzieć. Predefiniowany plik pom.xml zawiera część, w której jest ona zdefiniowana. Wyszukaj "licencję" w swoim pliku pom.xml i usuń tę część.
Jeśli to nie rozwiązuje problemu, po prostu dodaj -Dlicense.skip=true
do swojego maven goal.
Spodziewany jest jak nagłówek (proszę zauważyć, że pierwsze rzeczy są ustawiane podczas korzystania -sonar-archetyp)
/*
* 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
*/
Dla niecierpliwych osób takich jak ja działało tylko dodając '-Dlicense.skip = true' do' mvn install'. – frapen