|
30 | 30 | <name>Spark Project Assembly</name>
|
31 | 31 | <url>http://spark.incubator.apache.org/</url>
|
32 | 32 |
|
| 33 | + <properties> |
| 34 | + <spark.jar>${project.build.directory}/scala-${scala.binary.version}/${project.artifactId}-${project.version}-hadoop${hadoop.version}.jar</spark.jar> |
| 35 | + <deb.pkg.name>spark</deb.pkg.name> |
| 36 | + <deb.install.path>/usr/share/spark</deb.install.path> |
| 37 | + <deb.user>root</deb.user> |
| 38 | + </properties> |
| 39 | + |
33 | 40 | <repositories>
|
34 | 41 | <!-- A repository in the local filesystem for the Py4J JAR, which is not in Maven central -->
|
35 | 42 | <repository>
|
|
79 | 86 | <artifactId>maven-shade-plugin</artifactId>
|
80 | 87 | <configuration>
|
81 | 88 | <shadedArtifactAttached>false</shadedArtifactAttached>
|
82 |
| - <outputFile>${project.build.directory}/scala-${scala.binary.version}/${project.artifactId}-${project.version}-hadoop${hadoop.version}.jar</outputFile> |
| 89 | + <outputFile>${spark.jar}</outputFile> |
83 | 90 | <artifactSet>
|
84 | 91 | <includes>
|
85 | 92 | <include>*:*</include>
|
|
171 | 178 | </plugins>
|
172 | 179 | </build>
|
173 | 180 | </profile>
|
| 181 | + <profile> |
| 182 | + <id>deb</id> |
| 183 | + <build> |
| 184 | + <plugins> |
| 185 | + <plugin> |
| 186 | + <groupId>org.codehaus.mojo</groupId> |
| 187 | + <artifactId>buildnumber-maven-plugin</artifactId> |
| 188 | + <version>1.1</version> |
| 189 | + <executions> |
| 190 | + <execution> |
| 191 | + <phase>validate</phase> |
| 192 | + <goals> |
| 193 | + <goal>create</goal> |
| 194 | + </goals> |
| 195 | + <configuration> |
| 196 | + <shortRevisionLength>8</shortRevisionLength> |
| 197 | + </configuration> |
| 198 | + </execution> |
| 199 | + </executions> |
| 200 | + </plugin> |
| 201 | + <plugin> |
| 202 | + <groupId>org.vafer</groupId> |
| 203 | + <artifactId>jdeb</artifactId> |
| 204 | + <version>0.11</version> |
| 205 | + <executions> |
| 206 | + <execution> |
| 207 | + <phase>package</phase> |
| 208 | + <goals> |
| 209 | + <goal>jdeb</goal> |
| 210 | + </goals> |
| 211 | + <configuration> |
| 212 | + <deb>${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb</deb> |
| 213 | + <attach>false</attach> |
| 214 | + <compression>gzip</compression> |
| 215 | + <dataSet> |
| 216 | + <data> |
| 217 | + <src>${spark.jar}</src> |
| 218 | + <type>file</type> |
| 219 | + <mapper> |
| 220 | + <type>perm</type> |
| 221 | + <user>${deb.user}</user> |
| 222 | + <group>${deb.user}</group> |
| 223 | + <prefix>${deb.install.path}/jars</prefix> |
| 224 | + </mapper> |
| 225 | + </data> |
| 226 | + <data> |
| 227 | + <src>${basedir}/src/deb/RELEASE</src> |
| 228 | + <type>file</type> |
| 229 | + <mapper> |
| 230 | + <type>perm</type> |
| 231 | + <user>${deb.user}</user> |
| 232 | + <group>${deb.user}</group> |
| 233 | + <prefix>${deb.install.path}</prefix> |
| 234 | + </mapper> |
| 235 | + </data> |
| 236 | + <data> |
| 237 | + <src>${basedir}/../conf</src> |
| 238 | + <type>directory</type> |
| 239 | + <mapper> |
| 240 | + <type>perm</type> |
| 241 | + <user>${deb.user}</user> |
| 242 | + <group>${deb.user}</group> |
| 243 | + <prefix>${deb.install.path}/conf</prefix> |
| 244 | + <filemode>744</filemode> |
| 245 | + </mapper> |
| 246 | + </data> |
| 247 | + <data> |
| 248 | + <src>${basedir}/../bin</src> |
| 249 | + <type>directory</type> |
| 250 | + <mapper> |
| 251 | + <type>perm</type> |
| 252 | + <user>${deb.user}</user> |
| 253 | + <group>${deb.user}</group> |
| 254 | + <prefix>${deb.install.path}/bin</prefix> |
| 255 | + <filemode>744</filemode> |
| 256 | + </mapper> |
| 257 | + </data> |
| 258 | + <data> |
| 259 | + <src>${basedir}/../sbin</src> |
| 260 | + <type>directory</type> |
| 261 | + <mapper> |
| 262 | + <type>perm</type> |
| 263 | + <user>${deb.user}</user> |
| 264 | + <group>${deb.user}</group> |
| 265 | + <prefix>${deb.install.path}/sbin</prefix> |
| 266 | + <filemode>744</filemode> |
| 267 | + </mapper> |
| 268 | + </data> |
| 269 | + <data> |
| 270 | + <src>${basedir}/../python</src> |
| 271 | + <type>directory</type> |
| 272 | + <mapper> |
| 273 | + <type>perm</type> |
| 274 | + <user>${deb.user}</user> |
| 275 | + <group>${deb.user}</group> |
| 276 | + <prefix>${deb.install.path}/python</prefix> |
| 277 | + <filemode>744</filemode> |
| 278 | + </mapper> |
| 279 | + </data> |
| 280 | + </dataSet> |
| 281 | + </configuration> |
| 282 | + </execution> |
| 283 | + </executions> |
| 284 | + </plugin> |
| 285 | + </plugins> |
| 286 | + </build> |
| 287 | + </profile> |
174 | 288 | </profiles>
|
175 | 289 | </project>
|
0 commit comments