diff options
author | Luciano Resende <lresende@apache.org> | 2017-01-17 22:14:03 -0800 |
---|---|---|
committer | Luciano Resende <lresende@apache.org> | 2017-01-17 22:14:03 -0800 |
commit | d5d6ced608ceeb5672201e63ff2df63b735206ee (patch) | |
tree | 7e95c1a44e6ea3b4024225498f1c1aebdf489dfb | |
parent | 87fe76dcd9c92c336f65cff3b9511d01f73e7421 (diff) | |
download | toree-gateway-d5d6ced608ceeb5672201e63ff2df63b735206ee.tar.gz toree-gateway-d5d6ced608ceeb5672201e63ff2df63b735206ee.tar.bz2 toree-gateway-d5d6ced608ceeb5672201e63ff2df63b735206ee.zip |
Create project distribution
-rw-r--r-- | pom.xml | 23 | ||||
-rw-r--r-- | src/main/assembly/distribution.xml | 69 |
2 files changed, 92 insertions, 0 deletions
@@ -117,6 +117,29 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>3.0.0</version> + <configuration> + <tarLongFileMode>gnu</tarLongFileMode> + </configuration> + <executions> + <execution> + <id>create-distribution-assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + <configuration> + <descriptors> + <descriptor>src/main/assembly/distribution.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> <configuration> diff --git a/src/main/assembly/distribution.xml b/src/main/assembly/distribution.xml new file mode 100644 index 0000000..3e6146a --- /dev/null +++ b/src/main/assembly/distribution.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * (C) Copyright IBM Corp. 2017 + * + * Licensed 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 + * + * 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 specific language governing permissions and + * limitations under the License. + * +--> + +<assembly + xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"> + + <id>bin</id> + + <formats> + <format>tgz</format> + <format>zip</format> + </formats> + + <includeBaseDirectory>true</includeBaseDirectory> + <baseDirectory>${artifactId}-kernel-${version}</baseDirectory> + + <fileSets> + + <!-- Add the text files to the top-level directroy --> + <fileSet> + <includes> + <include>LICENSE</include> + <include>NOTICE</include> + <include>kernel.json</include> + </includes> + </fileSet> + <fileSet> + <directory>python</directory> + <outputDirectory>python</outputDirectory> + <includes> + <include>setup.py</include> + <include>toree_gateway_kernel.py</include> + </includes> + </fileSet> + + <fileSet> + <directory>src/main/resources</directory> + <outputDirectory>conf</outputDirectory> + <includes> + <include>log4j.properties</include> + <include>profile.json.template</include> + </includes> + </fileSet> + </fileSets> + + <files> + <file> + <source>target/${artifactId}-${project.version}-jar-with-dependencies.jar</source> + <outputDirectory>lib</outputDirectory> + </file> + </files> +</assembly>
\ No newline at end of file |