Skip to content

Commit

Permalink
打包优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Staroon committed Nov 29, 2021
1 parent 99db48d commit 7b2fada
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/assembly/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>bundle</id>
<formats>
<format>zip</format>
</formats>
<!--if auto generate a root folder-->
<includeBaseDirectory>true</includeBaseDirectory>
<!--copy the jar into the zip-->
<files>
<file>
<source>data/ip2region.db</source>
<outputDirectory>/</outputDirectory>
<fileMode>644</fileMode>
</file>
<file>
<source>${project.build.directory}/presto-udfs-340.jar</source>
<outputDirectory>/</outputDirectory>
<fileMode>644</fileMode>
</file>
<file>
<source>${project.build.directory}/presto-udfs-340-services.jar</source>
<outputDirectory>/</outputDirectory>
<fileMode>644</fileMode>
</file>
</files>
<!--package the jar and figure out if contain artifact, if true there will be many dependency jars-->
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
</dependencySets>
</assembly>

0 comments on commit 7b2fada

Please sign in to comment.