Name Last Update
.gitignore Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...

README.md

Alfresco License Headers

This is a simple project that contains the license headers applied to the Alfresco source files

Use it by adding this in your parent POM:

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>license-maven-plugin</artifactId>
            <version>1.8</version>
            <configuration>
                <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
                <organizationName>Alfresco Software Limited</organizationName>
                <failOnMissingHeader>true</failOnMissingHeader>
                <failOnNotUptodateHeader>true</failOnNotUptodateHeader>
                <licenseResolver>classpath://alfresco</licenseResolver>
                <licenseName>${licenseName}</licenseName>
                <includes>
                    <include>**/*.java</include>
                </includes>
            </configuration>
            <executions>
                <execution>
                    <id>check-licenses</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>check-file-header</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>org.alfresco</groupId>
                    <artifactId>alfresco-license-headers</artifactId>
                    <version>1.0</version>
                </dependency>
            </dependencies>
        </plugin>