summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchaochaoc <[email protected]>2024-07-01 15:41:47 +0800
committerchaochaoc <[email protected]>2024-07-01 15:41:47 +0800
commitdb1326f582bc118bfd3e5088074a0e1e2c1ab7b8 (patch)
tree921972a08d849598dd5816befa585b1b3f83c887
parent67a40e271922f0a0da130c9e2ee5fce52a6c2264 (diff)
[GAL-602] docs: add yml
-rw-r--r--pom.xml29
-rw-r--r--src/site/markdown/download.md2
-rw-r--r--tools/dist/target.xml44
3 files changed, 61 insertions, 14 deletions
diff --git a/pom.xml b/pom.xml
index 7d82d02..5973f1f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -513,27 +513,30 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
+ <artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
- <id>jobs-copy-resources</id>
- <phase>pre-site</phase>
+ <id>build-jobs</id>
+ <phase>package</phase>
<goals>
- <goal>copy-resources</goal>
+ <goal>single</goal>
</goals>
<configuration>
- <outputDirectory>${project.build.directory}/site/jobs</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/resources/jobs</directory>
- <includes>
- <include>*.yml</include>
- </includes>
- </resource>
- </resources>
+ <finalName>${project.artifactId}-yml-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>tools/dist/target.xml</descriptor>
+ </descriptors>
</configuration>
</execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
<execution>
<id>site-resources</id>
<phase>pre-site</phase>
diff --git a/src/site/markdown/download.md b/src/site/markdown/download.md
index d85bc18..72811df 100644
--- a/src/site/markdown/download.md
+++ b/src/site/markdown/download.md
@@ -4,5 +4,5 @@
| UDF Jar | Job |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| --------------- |
-| [JAR](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar) ( [MD5](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar.md5) [SHA1](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar.sha1) ) | [YAML](./jobs/job.yml) |
+| [JAR](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar) ( [MD5](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar.md5) [SHA1](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.jar.sha1) ) | [YML](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.tar.gz) ( [MD5](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.tar.gz.md5) [SHA1](${project.distributionManagement.repository.url}/com/geedgenetworks/application/sip-rtp-correlation/${project.version}/${project.artifactId}-${project.version}.tar.gz.sha1) ) |
diff --git a/tools/dist/target.xml b/tools/dist/target.xml
new file mode 100644
index 0000000..2ea0035
--- /dev/null
+++ b/tools/dist/target.xml
@@ -0,0 +1,44 @@
+<!--
+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
+ 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>bin</id>
+
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>src/main/resources/jobs</directory>
+ <includes>
+ <include>*.yml</include>
+ </includes>
+ <fileMode>0755</fileMode>
+ <lineEnding>lf</lineEnding>
+ <directoryMode>0644</directoryMode>
+ <outputDirectory>./</outputDirectory>
+ </fileSet>
+ </fileSets>
+
+</assembly>