Skip to content

Commit

Permalink
apache#1759 Update assembly.xml
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Pujara <104253184+MananPoojara@users.noreply.github.com>
  • Loading branch information
MananPoojara committed Apr 17, 2024
1 parent 48f394d commit d844d7e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions script/assembly/collector/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,35 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd
http://maven.apache.org/ASSEMBLY/2.0.0 ">
<!--必填,会追加到打包文件名称的末尾-->
<!--Required, will be appended to the end of the packaged file name-->
<id>1.5.0</id>
<!--打包类型,可以设置多种类型,打包的时候不同的类型都会打包打出来-->
<!--Packaging type, multiple types can be set, different types will be packaged when packaging-->
<formats>
<format>tar</format>
<format>tar.gz</format>
<format>zip</format>
</formats>
<!--第三方依赖设置-->
<!--Third-party dependency settings-->
<dependencySets>
<dependencySet>
<!--使用项目中的artifact,第三方包打包进tar.gz文件的lib目录下-->
<!--Use artifacts in the project, third-party packages packaged into the lib directory of the tar.gz file-->
<useProjectArtifact>true</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>

<!--文件相关设置-->
<!--File-related settings-->
<fileSets>
<!--bin文件下的所有脚本文件输出到打包后的bin目录下-->
<!--All script files under the bin directory are output to the bin directory after packaging-->
<fileSet>
<directory>../script/assembly/collector/bin</directory>
<!-- 是否进行属性替换 即使用 ${project.artifactId} -->
<!-- Whether to perform property replacement, that is, use ${project.artifactId} -->
<filtered>true</filtered>
<outputDirectory>bin</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>

<!-- src/main/resources目录下配置文件打包到config目录下 -->
<!-- Configuration files under the src/main/resources directory are packaged to the config directory-->
<fileSet>
<directory>src/main/resources</directory>
<includes>
Expand All @@ -58,12 +58,12 @@ http://maven.apache.org/ASSEMBLY/2.0.0 ">
<include>banner.txt</include>
<include>META-INF/**</include>
</includes>
<!-- 是否进行属性替换 即使用 ${project.artifactId} -->
<!-- Whether to perform property replacement, that is, use ${project.artifactId} -->
<filtered>true</filtered>
<outputDirectory>${file.separator}config</outputDirectory>
</fileSet>

<!-- 将target目录下的启动jar打包到目录下-->
<!-- Pack the startup jar in the target directory to the directory-->
<fileSet>
<directory>target</directory>
<outputDirectory>/</outputDirectory>
Expand Down

0 comments on commit d844d7e

Please sign in to comment.