For the record.
We currently manage this in our pom by using the download-maven-plugin:
...
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>${download-maven-plugin.version}</version>
<executions>
<execution>
<id>load-notice</id>
<phase>compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/apache/karaf/karaf-${karaf.version}/NOTICE</url>
<outputDirectory>${project.build.directory}/assembly</outputDirectory>
</configuration>
</execution>
<execution>
<id>load-license</id>
<phase>compile</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://raw.githubusercontent.com/apache/karaf/karaf-${karaf.version}/LICENSE</url>
<outputDirectory>${project.build.directory}/assembly</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
...
regards
Andre
Am Mo., 27. Feb. 2023 um 10:27 Uhr schrieb Andre Schlegel-Tylla <
[email protected]>:
> Hi JB,
>
> can you show me the example? I want to include the original LICENSE/NOTICE
> files from the Karaf project without the need to maintain copies in my
> project.
>
> Regards
> Andre
>
> Am Fr., 24. Feb. 2023 um 14:33 Uhr schrieb Jean-Baptiste Onofré <
> [email protected]>:
>
>> Hi Andre,
>>
>> Karaf distribution itself is created this way, including LICENSE/NOTICE
>> files.
>> You can add LICENSE in the resources, it should be part of the
>> distribution.
>>
>> Regards
>> JB
>>
>> On Fri, Feb 24, 2023 at 10:02 AM Andre Schlegel-Tylla
>> <[email protected]> wrote:
>> >
>> > Hello,
>> >
>> > We create a custom Karaf distribution with Maven assembly (
>> https://karaf.apache.org/manual/latest/#_custom_distributions). But in
>> the resulting archives the Apache license file is not included. Is this
>> intended? I think the license have to be included to match the Apache
>> license requirements. Or am I missing something?
>> >
>> > Regards
>> > Andre
>> >
>>
>