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

Add a maven plugin in parent pom.xml to ensure Apache License in present in all source code files #296

Open
mariemat opened this issue Jun 15, 2017 · 2 comments

Comments

@mariemat
Copy link
Contributor

No description provided.

@mathieu-rossignol
Copy link
Member

mathieu-rossignol commented Jun 20, 2017

Copy pasting what I did in one project for that for easy bootstrap:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>1.9</version>
                <configuration>
                    <verbose>false</verbose>
                    <addSvnKeyWords>true</addSvnKeyWords>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>update-file-header</goal>
                        </goals>
                        <phase>process-sources</phase>
                        <configuration>
                            <licenseName>apache_v2</licenseName>
                            <organizationName>Hurence</organizationName>
                            <inceptionYear>2016</inceptionYear>
                            <addSvnKeyWords>false</addSvnKeyWords>
                            <encoding>UTF-8</encoding>
                            <roots>
                                <root>src/main/java</root>
                                <root>src/test</root>
                            </roots>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

@oalam
Copy link
Member

oalam commented Jun 20, 2017

for now we run mvn license:format when we build releases

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

3 participants