You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Emilian Bold <em...@protonmail.ch> on 2018/05/23 09:05:46 UTC
[IP CLEARANCE] Task: inspect JARs for META-INF/LICENSE
Hello,
I don't know this area that well so I figured I mention this idea and people that recently worked on that perhaps implement it faster than me.
For example on https://issues.apache.org/jira/browse/NETBEANS-842 we have stax2-api.jar which has a BSD license in META-INF/LICENSE
Inside websvc.jaxws21/external we only have jaxws-2.2.6-license.txt which is CDDL-1.1
So it would be nice if at build time we have a task that looks for META-INF/LICENSE and throws an error or something if there is some mismatch.
--emi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [IP CLEARANCE] Task: inspect JARs for META-INF/LICENSE
Posted by Emilian Bold <em...@protonmail.ch>.
Yes, I noticed that new zip!file URL we can use nowadays.
The comment we got during release review was exactly this: we cannot count on a whole 'zip' dependency to be under a single license. We actually have to dig down to the actual individual JARs and see the particular license for each one.
I see we have at least 20 zip files in /external/. We should go through them and see if they have inner JARs under a different license and properly classify those too.
--emi
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On 26 May 2018 11:44 PM, Matthias Bläsing <mb...@doppel-helix.eu> wrote:
> Am Mittwoch, den 23.05.2018, 05:05 -0400 schrieb Emilian Bold:
>
> > Hello,
> >
> > I don't know this area that well so I figured I mention this idea and
> >
> > people that recently worked on that perhaps implement it faster than
> >
> > me.
> >
> > For example on https://issues.apache.org/jira/browse/NETBEANS-842 we
> >
> > have stax2-api.jar which has a BSD license in META-INF/LICENSE
> >
> > Inside websvc.jaxws21/external we only have jaxws-2.2.6-license.txt
> >
> > which is CDDL-1.1
>
> In this case, we have the situation, that the zip contains different
>
> binaries with different licenses. For this case Jan enhanced the
>
> mechanism, that creates the top level LICENSE and NOTICE file, so that
>
> embedded files can be referenced.
>
> The PR that introduced the support might be a good basis:
>
> https://github.com/apache/incubator-netbeans/pull/401/files
>
> maven-embedder is the module that shows it in all its glory (see the
>
> multiple -license.txt and -notice.txt files for the single artifact).
>
> The important part is, that the "Files" header can now not only address
>
> the top-level artifact, but also the embedded files.
>
> So if if you have a file "artifact.zip", that holds a file
>
> "lib/sample.jar". You can add specific information with the header:
>
> Files: artifact.zip!lib/sample.jar
>
> The syntax might be familar from jar-URLs.
>
> HTH
>
> Matthias
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
>
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [IP CLEARANCE] Task: inspect JARs for META-INF/LICENSE
Posted by Matthias Bläsing <mb...@doppel-helix.eu>.
Am Mittwoch, den 23.05.2018, 05:05 -0400 schrieb Emilian Bold:
> Hello,
>
> I don't know this area that well so I figured I mention this idea and
> people that recently worked on that perhaps implement it faster than
> me.
>
> For example on https://issues.apache.org/jira/browse/NETBEANS-842 we
> have stax2-api.jar which has a BSD license in META-INF/LICENSE
>
> Inside websvc.jaxws21/external we only have jaxws-2.2.6-license.txt
> which is CDDL-1.1
In this case, we have the situation, that the zip contains different
binaries with different licenses. For this case Jan enhanced the
mechanism, that creates the top level LICENSE and NOTICE file, so that
embedded files can be referenced.
The PR that introduced the support might be a good basis:
https://github.com/apache/incubator-netbeans/pull/401/files
maven-embedder is the module that shows it in all its glory (see the
multiple -license.txt and -notice.txt files for the single artifact).
The important part is, that the "Files" header can now not only address
the top-level artifact, but also the embedded files.
So if if you have a file "artifact.zip", that holds a file
"lib/sample.jar". You can add specific information with the header:
Files: artifact.zip!lib/sample.jar
The syntax might be familar from jar-URLs.
HTH
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists