Repository navigation
How do I include a license in a maven wrapped library? #5992
|
We are trying out (whole target file: https://github.com/eclipse-jdtls/eclipse.jdt.ls/blob/main/org.eclipse.jdt.ls.target/org.eclipse.jdt.ls.tp.target) What do we need in the target file, to include a BSD 2-clause license in the bundled libraries? Ideally this one: https://github.com/vsch/flexmark-java/blob/master/LICENSE.txt Any chance it will somehow work with the Or are licenses already bundled and I'm just not finding them? Build results are packaged in For the background see: eclipse-jdtls/eclipse.jdt.ls#3777 |
Replies: 2 comments 9 replies
|
@merks are there any |
|
You can not bundle additional data. If for some reasons you think it is required/missing you should open a bug for that library (and possibly ask to include OSGi meta data at the first place). In general adding OSGi metadata might already be a license violation at some terms, now adding additional infos even transitively seems completely wrong (just think about a GPL licensed jar and you add a BSD license header there). So I would also doubt the effort to do so if the original author finds it does not need to bundle a license file, why should you (as the consumer) be in any way adviced (or legitimated) to do so? |

Keep in mind that in general many things are shipped as OSGI bundles in which case you should not touch them at all. Whatever license information is present or absent really should remain that way.
So yes, in general you should not expect Tycho to be helpful to fix license concerns; at best one can use Tycho/m2e to synthesize an OSGi MANIFEST.MF.