Repository: incubator-ratis
Updated Branches:
  refs/heads/master f574e576c -> c80423652


RATIS-145. (git)ignore dependency-reduced-pom.xml.  Contributed by Elek, Marton.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ratis/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ratis/commit/c8042365
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ratis/tree/c8042365
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ratis/diff/c8042365

Branch: refs/heads/master
Commit: c804236529b889a85d8c0aed4f4358a1c46dbbfa
Parents: f574e57
Author: Tsz-Wo Nicholas Sze <[email protected]>
Authored: Fri Nov 24 16:27:46 2017 -0800
Committer: Tsz-Wo Nicholas Sze <[email protected]>
Committed: Fri Nov 24 16:27:46 2017 -0800

----------------------------------------------------------------------
 .gitignore             |  1 +
 ratis-examples/pom.xml | 64 ++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 64 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/c8042365/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 688c2ea..2608160 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
 target
 build
 patchprocess
+dependency-reduced-pom.xml

http://git-wip-us.apache.org/repos/asf/incubator-ratis/blob/c8042365/ratis-examples/pom.xml
----------------------------------------------------------------------
diff --git a/ratis-examples/pom.xml b/ratis-examples/pom.xml
index 865947b..f27a160 100644
--- a/ratis-examples/pom.xml
+++ b/ratis-examples/pom.xml
@@ -143,7 +143,69 @@
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>license-maven-plugin</artifactId>
+        <version>1.10</version>
+        <configuration>
+          <canUpdateCopyright>false</canUpdateCopyright>
+          <roots>
+            <root>${project.basedir}</root>
+          </roots>
+        </configuration>
+        <executions>
+          <execution>
+            <id>update-pom-license</id>
+            <goals>
+              <goal>update-file-header</goal>
+            </goals>
+            <phase>package</phase>
+            <configuration>
+              <licenseName>apache_v2</licenseName>
+              <includes>
+                <include>dependency-reduced-pom.xml</include>
+              </includes>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
+  <profiles>
+    <profile>
+      <id>clean-shade</id>
+      <activation>
+        <property>
+          <name>!skipCleanShade</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-clean-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>shaded-clean</id>
+                <goals>
+                  <goal>clean</goal>
+                </goals>
+                <phase>clean</phase>
+                <configuration>
+                  <filesets>
+                    <fileset>
+                      <directory>.</directory>
+                      <includes>
+                        <include>dependency-reduced-pom.xml</include>
+                      </includes>
+                      <followSymlinks>false</followSymlinks>
+                    </fileset>
+                  </filesets>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
-    

Reply via email to