You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/04/26 06:41:41 UTC

[04/43] incubator-kylin git commit: KYLIN-669 change pom for release

KYLIN-669 change pom for release


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

Branch: refs/heads/master
Commit: 1dc4d5ea562d260b8717dcab289f7339e6825903
Parents: 5f1da6e
Author: lukehan <lu...@apache.org>
Authored: Tue Apr 14 09:21:06 2015 +0800
Committer: lukehan <lu...@apache.org>
Committed: Tue Apr 14 09:21:06 2015 +0800

----------------------------------------------------------------------
 pom.xml | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/1dc4d5ea/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 73a3f0a..26006f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,6 +20,13 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>16</version>
+        </parent>
+
     <groupId>org.apache.kylin</groupId>
     <artifactId>kylin</artifactId>
     <packaging>pom</packaging>
@@ -555,6 +562,18 @@
         <module>invertedindex</module>
     </modules>
 
+    <repositories>
+        <repository>
+            <id>central</id>
+            <name>Central Repository</name>
+            <url>http://repo.maven.apache.org/maven2</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+
     <profiles>
         <profile>
             <id>default</id>
@@ -635,5 +654,56 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+      <!-- This profile adds/overrides few features of the 'apache-release'
+           profile in the parent pom. -->
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <!-- Apache-RAT checks for files without headers.
+               If run on a messy developer's sandbox, it will fail.
+               This serves as a reminder to only build a release in a clean
+               sandbox! -->
+          <plugin>
+            <groupId>org.apache.rat</groupId>
+            <artifactId>apache-rat-plugin</artifactId>
+            <configuration>
+              <!-- Exclude files/folders for apache release -->
+              <excludes>
+                <exclude>*.md</exclude>
+                <exclude>docs/website</exclude>
+                <exclude>docs/*.md</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <phase>verify</phase>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>net.ju-n.maven.plugins</groupId>
+            <artifactId>checksum-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>artifacts</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <algorithms>
+                <algorithm>MD5</algorithm>
+                <algorithm>SHA-1</algorithm>
+              </algorithms>
+              <failOnError>false</failOnError>
+            </configuration>
+          </plugin>          
+        </plugins>
+      </build>
+    </profile>
     </profiles>
 </project>