simplify license header checking

Original commit: elastic/x-pack-elasticsearch@d48ce3f7bf
This commit is contained in:
Robert Muir 2015-05-22 18:44:56 -04:00
parent 8ea126de90
commit 6e557b82da
1 changed files with 2 additions and 28 deletions

30
pom.xml
View File

@ -23,36 +23,10 @@
<properties>
<license.basedir combine.self="override">${project.basedir}</license.basedir>
<elasticsearch.license.header>${license.basedir}/dev-tools/license/elasticsearch_license_header.txt</elasticsearch.license.header>
<elasticsearch.license.headerDefinition>${license.basedir}/dev-tools/license/license_header_definition.xml</elasticsearch.license.headerDefinition>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.5</version>
<configuration>
<header>${license.basedir}/dev-tools/license/elasticsearch_license_header.txt</header>
<headerDefinitions>
<headerDefinition>${license.basedir}/dev-tools/license/license_header_definition.xml</headerDefinition>
</headerDefinitions>
<includes>
<include>**/src/main/java/org/elasticsearch/**/*.java</include>
<include>**/src/test/java/org/elasticsearch/**/*.java</include>
</includes>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>oss-snapshots</id>