Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include license and notice in JAR #244

Open
gredler opened this issue Feb 7, 2025 · 0 comments
Open

Include license and notice in JAR #244

gredler opened this issue Feb 7, 2025 · 0 comments

Comments

@gredler
Copy link

gredler commented Feb 7, 2025

Sections 4.a and 4.d of the Apache 2.0 license require that users who redistribute this library include the license and any notices. Most open source projects include these files in the JAR files, to make this requirement easy for users to fulfill. Something like this would do the trick:

        <resources>
            <resource>
                <directory>src/main/xsd</directory>
            </resource>
            <resource>
                <directory>${project.basedir}</directory>
                <includes>
                    <include>license.txt</include>
                    <include>NOTICE.md</include>
                </includes>
                <targetPath>META-INF</targetPath>
            </resource>
        </resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant