You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Andre Schlegel-Tylla <an...@virtimo.de> on 2023/02/24 09:02:40 UTC
Custom distribution with Maven assembly has no license
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
Re: Custom distribution with Maven assembly has no license
Posted by Andre Schlegel-Tylla <an...@virtimo.de>.
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 <
andre.schlegel@virtimo.de>:
> 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é <
> jb@nanthrax.net>:
>
>> 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
>> <an...@virtimo.de> 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
>> >
>>
>
Re: Custom distribution with Maven assembly has no license
Posted by Andre Schlegel-Tylla <an...@virtimo.de>.
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é <
jb@nanthrax.net>:
> 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
> <an...@virtimo.de> 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
> >
>
Re: Custom distribution with Maven assembly has no license
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
<an...@virtimo.de> 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
>