Blame view

README.md 1.62 KB
e64804b7e   Jean-Pierre   BDE-614: Added ne...
1
2
3
  # Alfresco License Headers
  
  This is a simple project that contains the license headers applied to the Alfresco source files
efc77fdf4   Samuel Langlois   Remove ^M chars a...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  
  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>