Skip to content

Commit

Permalink
Merge pull request #79 from ni-ze/main
Browse files Browse the repository at this point in the history
[ISSUE #80]Package and add sql example
  • Loading branch information
ni-ze authored Feb 7, 2023
2 parents 674ccc6 + 8fd6fd0 commit a541263
Show file tree
Hide file tree
Showing 39 changed files with 1,147 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ target/
nbproject/private/
build/
nbbuild/
dist/
log/
nbdist/

### TQ ###
Expand Down
File renamed without changes.
35 changes: 35 additions & 0 deletions distribution/distribution.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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>
<id>distribution</id>
<formats>
<format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
<fileMode>0775</fileMode>
<directory>conf</directory>
<outputDirectory>/conf</outputDirectory>
</fileSet>
</fileSets>
<files>
<file>
<source>../rsqldb-rest/target/rsqldb.jar</source>
<outputDirectory>server</outputDirectory>
</file>
</files>
</assembly>
60 changes: 60 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>rsqldb</artifactId>
<groupId>com.alibaba</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>distribution</artifactId>
<packaging>pom</packaging>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>distribution</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>rsqldb</finalName>
<descriptors>
<descriptor>distribution.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>distribution</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.build.directory}/rsqldb-distribution.tar.gz" tofile="${project.basedir}/rsqldb-distribution.tar.gz" overwrite="true" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit a541263

Please sign in to comment.