mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-25 17:22:33 +02:00
Add license check plugin to root pom. Disabled for the entire project, except for poms that override it (opendaylight, nvp)
This commit is contained in:
parent
33eaa4f633
commit
d3cd73d861
@ -1,16 +1,16 @@
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
|
||||
@ -34,6 +34,21 @@
|
||||
<filtering>true</filtering>
|
||||
</testResource>
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.mycila</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>cloudstack-checklicence</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
||||
@ -48,35 +48,17 @@
|
||||
</testResources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.mycila.maven-license-plugin</groupId>
|
||||
<artifactId>maven-license-plugin</artifactId>
|
||||
<version>1.9.0</version>
|
||||
<groupId>com.mycila</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>cloudstack-checklicence</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>format</goal>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<strictCheck>true</strictCheck>
|
||||
<aggregate>true</aggregate>
|
||||
<header>../../../LICENSE.header</header>
|
||||
<mapping>
|
||||
<xml>XML_STYLE</xml>
|
||||
<java>DOUBLESLASH_STYLE</java>
|
||||
<clj>SEMICOLON_STYLE</clj>
|
||||
</mapping>
|
||||
<useDefaultExcludes>false</useDefaultExcludes>
|
||||
<excludes>
|
||||
<exclude>target/**</exclude>
|
||||
<exclude>.settings/**</exclude>
|
||||
<exclude>.checkstyle</exclude>
|
||||
<exclude>.project</exclude>
|
||||
<exclude>.classpath</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
46
pom.xml
46
pom.xml
@ -87,6 +87,7 @@
|
||||
<cs.daemon.version>1.0.10</cs.daemon.version>
|
||||
<cs.jna.version>4.0.0</cs.jna.version>
|
||||
<cs.checkstyle.version>2.11</cs.checkstyle.version>
|
||||
<cs.mycila.license.version>2.5</cs.mycila.license.version>
|
||||
</properties>
|
||||
|
||||
<distributionManagement>
|
||||
@ -455,6 +456,19 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.mycila</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>cloudstack-checklicence</id>
|
||||
<phase>none</phase>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
@ -488,6 +502,38 @@
|
||||
<excludes>**\/deps\/,**\/test\/,**\/target\/,**\/bin\/,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/awsapi\/,**\/XenServerJava\/,**\/apidoc\/</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.mycila</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>${cs.mycila.license.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>cloudstack-checklicence</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<strictCheck>true</strictCheck>
|
||||
<aggregate>true</aggregate>
|
||||
<header>LICENSE.header</header>
|
||||
<mapping>
|
||||
<xml>XML_STYLE</xml>
|
||||
<java>DOUBLESLASH_STYLE</java>
|
||||
<clj>SEMICOLON_STYLE</clj>
|
||||
</mapping>
|
||||
<useDefaultExcludes>false</useDefaultExcludes>
|
||||
<excludes>
|
||||
<exclude>**/target/**</exclude>
|
||||
<exclude>.settings/**</exclude>
|
||||
<exclude>.checkstyle</exclude>
|
||||
<exclude>.project</exclude>
|
||||
<exclude>.classpath</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<configuration>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user