Existing manually inserted header ignored
Boarschti42 opened this issue · comments
Hi, i have a manualy inserted header in my java source code. For use of this plugin, i copy&pasted this header into an external file for use with this plugin.
If i run "mvn license:check", this plugin says, there is no header in the existing file.
maven config:
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<header>licence_template_sourcecode.txt</header>
<properties>
<license.years>2021-2022</license.years>
</properties>
<includes>
<include>src/*/java/**/*.java</include>
</includes>
</configuration>
<executions>
<execution>
<id>first</id>
<goals>
<goal>check</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>4.2.rc3</version>
<type>maven-plugin</type>
</dependency>
</dependencies>
</plugin>
example header in existing file:
/*
* @formatter:off
*
* Copyright 2021-2022 ...
* ...
* Licensed under the European Public License ...
* @formatter:on
*/
The created text-file is the content of the comment itself.
Did i do something wrong or does it work as expected?
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.