Skip to content

Commit

Permalink
[build] Generate fluss-xxx-bin.tgz package after build project (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipamp authored Jan 23, 2025
1 parent 2658ea0 commit ee59ca5
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
12 changes: 12 additions & 0 deletions fluss-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,18 @@
</descriptors>
</configuration>
</execution>
<execution>
<id>tgz</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assemblies/tgz.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
34 changes: 34 additions & 0 deletions fluss-dist/src/main/assemblies/tgz.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
Copyright (c) 2024 Alibaba Group Holding Ltd.
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.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>tgz</id>
<formats>
<format>tgz</format>
</formats>
<baseDirectory>fluss-${project.version}</baseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/target/fluss-${project.version}-bin/fluss-${project.version}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>
</assembly>
6 changes: 5 additions & 1 deletion website/docs/dev/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ To speed up the build you can:
The build script will be:
```bash
mvn clean install -DskipTests -T 1C
```
```

**NOTE**:
- For local testing, it's recommend to use directory `${project}/build-target` in project.
- For deploying distributed cluster, it's recommend to use binary file named `fluss-xxx-bin.tgz`, the file is in directory `${project}/fluss-dist/target`.

0 comments on commit ee59ca5

Please sign in to comment.