This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch distribute_ainode_13 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 46aeaac773833b849961c76099e29ca4955d1d27 Author: Haonan <[email protected]> AuthorDate: Thu Nov 14 14:22:47 2024 +0800 Add ainode to distribution (#14090) --- distribution/pom.xml | 58 ++++++++++++++++++++++++++++++++++++ distribution/src/assembly/ainode.xml | 46 ++++++++++++++++++++++++++++ iotdb-core/ainode/pom.xml | 1 + 3 files changed, 105 insertions(+) diff --git a/distribution/pom.xml b/distribution/pom.xml index fcead4e2c85..0854a7ad328 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -168,5 +168,63 @@ </plugins> </build> </profile> + <profile> + <id>with-ainode</id> + <dependencies> + <dependency> + <groupId>org.apache.iotdb</groupId> + <artifactId>iotdb-ainode</artifactId> + <version>2.0.0-SNAPSHOT</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <!-- Package binaries--> + <execution> + <id>all-bin</id> + <goals> + <goal>single</goal> + </goals> + <phase>package</phase> + <configuration> + <descriptors combine.children="append"> + <descriptor>src/assembly/ainode.xml</descriptor> + </descriptors> + </configuration> + </execution> + </executions> + </plugin> + <!-- + Create SHA512 checksum files for the release artifacts. + --> + <plugin> + <groupId>net.nicoulaj.maven.plugins</groupId> + <artifactId>checksum-maven-plugin</artifactId> + <executions> + <execution> + <id>sign-source-release</id> + <goals> + <goal>files</goal> + </goals> + <phase>package</phase> + <configuration> + <fileSets> + <fileSet> + <includes combine.children="append"> + <include>apache-iotdb-${project.version}-ainode-bin.zip</include> + </includes> + </fileSet> + </fileSets> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> diff --git a/distribution/src/assembly/ainode.xml b/distribution/src/assembly/ainode.xml new file mode 100644 index 00000000000..c4bfca25c52 --- /dev/null +++ b/distribution/src/assembly/ainode.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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>ainode-bin</id> + <formats> + <format>dir</format> + <format>zip</format> + </formats> + <baseDirectory>apache-iotdb-${project.version}-ainode-bin</baseDirectory> + <fileSets> + <fileSet> + <directory>${project.basedir}/../iotdb-core/ainode/target/apache-iotdb-ainode-${project.version}/apache-iotdb-ainode-${project.version}/conf</directory> + <outputDirectory>${file.separator}/conf</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.basedir}/../iotdb-core/ainode/target/apache-iotdb-ainode-${project.version}/apache-iotdb-ainode-${project.version}/sbin</directory> + <outputDirectory>${file.separator}/sbin</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.basedir}/../iotdb-core/ainode/target/apache-iotdb-ainode-${project.version}/apache-iotdb-ainode-${project.version}/lib</directory> + <outputDirectory>${file.separator}/lib</outputDirectory> + </fileSet> + </fileSets> + <componentDescriptors> + <componentDescriptor>common-files.xml</componentDescriptor> + </componentDescriptors> +</assembly> diff --git a/iotdb-core/ainode/pom.xml b/iotdb-core/ainode/pom.xml index 4288d0b8d56..ba4f8bb7014 100644 --- a/iotdb-core/ainode/pom.xml +++ b/iotdb-core/ainode/pom.xml @@ -92,6 +92,7 @@ <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> + <version>2.1.1</version> <executions> <!-- The python versioning follows slightly different rules than Maven.
