Review Board 1.7.22


HIVE-5611 Add assembly (i.e.) tar creation to pom

Review Request #15187 - Created Nov. 1, 2013 and updated

Szehon Ho
Reviewers
hive
hive-git
Add src and bin descriptors to maven packaging project. 

Src.tar has the entire Hive source tree as is, following Apache src.tar format.  Decided not to use <moduleSet> as maven only gives option to prepend the module name, which is different than the directory name in thise case.

Bin.tar still does not include hcatalog stuff.  It uses mvn assembly fileset to do what the ant package tasks of hive/build.xml used to do.  It also uses maven's <dependencySet> to pull in dependency jars.  But hive/hcatalog had a separate ant build, and there is more effort needed to include that into this mvn bin assembly in the correct directory structure.

 

Diff revision 2 (Latest)

1 2
1 2

  1. packaging/pom.xml: Loading...
  2. packaging/src/main/assembly/bin.xml: Loading...
  3. packaging/src/main/assembly/src.xml: Loading...
packaging/pom.xml
Revision 973b351 New Change
[20] 28 lines
[+20]
29

    
   
29

   
30
  <properties>
30
  <properties>
31
    <hive.path.to.root>..</hive.path.to.root>
31
    <hive.path.to.root>..</hive.path.to.root>
32
  </properties>
32
  </properties>
33

    
   
33

   
34
  <modules>
34
  <profiles>
35
  </modules>
35
    <profile>

    
   
36
      <id>dist</id>

    
   
37
      <build>

    
   
38
        <plugins>

    
   
39
          <plugin>

    
   
40
            <groupId>org.apache.maven.plugins</groupId>

    
   
41
            <artifactId>maven-assembly-plugin</artifactId>

    
   
42
            <executions>

    
   
43
              <execution>

    
   
44
                <id>assemble</id>

    
   
45
                <phase>package</phase>

    
   
46
                <goals>

    
   
47
                  <goal>single</goal>

    
   
48
                </goals>

    
   
49
                <configuration>

    
   
50
                  <finalName>hive-${project.version}</finalName>

    
   
51
                  <descriptors>

    
   
52
                    <descriptor>src/main/assembly/bin.xml</descriptor>

    
   
53
                    <descriptor>src/main/assembly/src.xml</descriptor>

    
   
54
                  </descriptors>

    
   
55
                  <tarLongFileMode>gnu</tarLongFileMode>

    
   
56
                </configuration>

    
   
57
              </execution>

    
   
58
            </executions>

    
   
59
          </plugin>

    
   
60
        </plugins>

    
   
61
      </build>

    
   
62
    </profile>

    
   
63
  </profiles>

    
   
64

   

    
   
65
  <dependencies>

    
   
66
    <dependency>

    
   
67
      <groupId>org.apache.hive.shims</groupId>

    
   
68
      <artifactId>hive-shims-common</artifactId>

    
   
69
      <version>${project.version}</version>

    
   
70
    </dependency>

    
   
71
    <dependency>

    
   
72
      <groupId>org.apache.hive.shims</groupId>

    
   
73
      <artifactId>hive-shims-0.20</artifactId>

    
   
74
      <version>${project.version}</version>

    
   
75
    </dependency>

    
   
76
    <dependency>

    
   
77
      <groupId>org.apache.hive.shims</groupId>

    
   
78
      <artifactId>hive-shims-common-secure</artifactId>

    
   
79
      <version>${project.version}</version>

    
   
80
    </dependency>

    
   
81
    <dependency>

    
   
82
      <groupId>org.apache.hive.shims</groupId>

    
   
83
      <artifactId>hive-shims-0.20S</artifactId>

    
   
84
      <version>${project.version}</version>

    
   
85
    </dependency>

    
   
86
    <dependency>

    
   
87
      <groupId>org.apache.hive.shims</groupId>

    
   
88
      <artifactId>hive-shims-0.23</artifactId>

    
   
89
      <version>${project.version}</version>

    
   
90
    </dependency>

    
   
91
    <dependency>

    
   
92
      <groupId>org.apache.hive</groupId>

    
   
93
      <artifactId>hive-common</artifactId>

    
   
94
      <version>${project.version}</version>

    
   
95
    </dependency>

    
   
96
    <dependency>

    
   
97
      <groupId>org.apache.hive</groupId>

    
   
98
      <artifactId>hive-serde</artifactId>

    
   
99
      <version>${project.version}</version>

    
   
100
    </dependency>

    
   
101
    <dependency>

    
   
102
      <groupId>org.apache.hive</groupId>

    
   
103
      <artifactId>hive-metastore</artifactId>

    
   
104
      <version>${project.version}</version>

    
   
105
    </dependency>

    
   
106
    <dependency>

    
   
107
      <groupId>org.apache.hive</groupId>

    
   
108
      <artifactId>hive-testutils</artifactId>

    
   
109
      <version>${project.version}</version>

    
   
110
    </dependency>

    
   
111
    <dependency>

    
   
112
      <groupId>org.apache.hive</groupId>

    
   
113
      <artifactId>hive-exec</artifactId>

    
   
114
      <version>${project.version}</version>

    
   
115
    </dependency>

    
   
116
    <dependency>

    
   
117
      <groupId>org.apache.hive</groupId>

    
   
118
      <artifactId>hive-service</artifactId>

    
   
119
      <version>${project.version}</version>

    
   
120
    </dependency>

    
   
121
    <dependency>

    
   
122
      <groupId>org.apache.hive</groupId>

    
   
123
      <artifactId>hive-jdbc</artifactId>

    
   
124
      <version>${project.version}</version>

    
   
125
    </dependency>

    
   
126
    <dependency>

    
   
127
      <groupId>org.apache.hive</groupId>

    
   
128
      <artifactId>hive-beeline</artifactId>

    
   
129
      <version>${project.version}</version>

    
   
130
    </dependency>

    
   
131
    <dependency>

    
   
132
      <groupId>org.apache.hive</groupId>

    
   
133
      <artifactId>hive-cli</artifactId>

    
   
134
      <version>${project.version}</version>

    
   
135
    </dependency>

    
   
136
    <dependency>

    
   
137
      <groupId>org.apache.hive</groupId>

    
   
138
      <artifactId>hive-contrib</artifactId>

    
   
139
      <version>${project.version}</version>

    
   
140
    </dependency>

    
   
141
    <dependency>

    
   
142
      <groupId>org.apache.hive</groupId>

    
   
143
      <artifactId>hive-hbase-handler</artifactId>

    
   
144
      <version>${project.version}</version>

    
   
145
    </dependency>

    
   
146
    <dependency>

    
   
147
      <groupId>org.apache.hive</groupId>

    
   
148
      <artifactId>hive-hwi</artifactId>

    
   
149
      <version>${project.version}</version>

    
   
150
    </dependency>

    
   
151

   

    
   
152
  </dependencies>
36

    
   
153

   
37
</project>
154
</project>
packaging/src/main/assembly/bin.xml
New File
 
packaging/src/main/assembly/src.xml
New File
 
  1. packaging/pom.xml: Loading...
  2. packaging/src/main/assembly/bin.xml: Loading...
  3. packaging/src/main/assembly/src.xml: Loading...