Ich hatte dieses Problem selbst während der Entwicklung eines Plugins. Ich glaube, Sie haben das Sonar - Plugin-Archetyp verwendet, um Ihre Umgebung zu erstellen. Wenn Sie dies tun, ist Ihr gesamtes Projekt unter GNU 3-Lizenz und ein Header in jeder Klasse wird erwartet, dies zu sagen. Die vordefinierte pom.xml enthält einen Teil, in dem dies definiert ist. Suchen Sie in Ihrer pom.xml nach "license" und löschen Sie diesen Teil.
Wenn das Problem nicht behoben wird, fügen Sie einfach -Dlicense.skip=true
zu Ihrem Maven Ziel hinzu.
Der erwartete Header ist wie (bitte beachten Sie, dass die ersten Dinge eingestellt werden, während Sie -sonar-Urbild verwenden)
/*
* 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
*/
Für die ungeduldigen Leute wie mich funktionierte es nur das Hinzufügen von '-Dlice.skip = true' zu' mvn install'. – frapen