Skip to content

Commit e646e6d

Browse files
zip, tar, tar.gz, tar.bz2, 7z desteği eklendi.
1 parent 2d3f470 commit e646e6d

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

dependency-reduced-pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,28 @@
5656
</execution>
5757
</executions>
5858
</plugin>
59+
<plugin>
60+
<artifactId>maven-antrun-plugin</artifactId>
61+
<version>3.1.0</version>
62+
<executions>
63+
<execution>
64+
<id>create-7z</id>
65+
<phase>package</phase>
66+
<goals>
67+
<goal>run</goal>
68+
</goals>
69+
<configuration>
70+
<target>
71+
<exec>
72+
<arg />
73+
<arg />
74+
<arg />
75+
</exec>
76+
</target>
77+
</configuration>
78+
</execution>
79+
</executions>
80+
</plugin>
5981
<plugin>
6082
<artifactId>maven-jar-plugin</artifactId>
6183
<version>3.4.1</version>

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,29 @@
6161
</execution>
6262
</executions>
6363
</plugin>
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-antrun-plugin</artifactId>
67+
<version>3.1.0</version>
68+
<executions>
69+
<execution>
70+
<id>create-7z</id>
71+
<phase>package</phase>
72+
<goals>
73+
<goal>run</goal>
74+
</goals>
75+
<configuration>
76+
<target>
77+
<exec executable="7z" failonerror="true">
78+
<arg value="a"/>
79+
<arg value="${project.build.directory}/${project.artifactId}-${project.version}-project-bundle.7z"/>
80+
<arg value="${project.build.directory}/${project.artifactId}-${project.version}-project-bundle.zip"/>
81+
</exec>
82+
</target>
83+
</configuration>
84+
</execution>
85+
</executions>
86+
</plugin>
6487
<plugin>
6588
<groupId>org.apache.maven.plugins</groupId>
6689
<artifactId>maven-jar-plugin</artifactId>

src/assembly/assembly.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
<id>project-bundle</id>
66
<formats>
77
<format>zip</format>
8+
<format>tar</format>
89
<format>tar.gz</format>
10+
<format>tar.bz2</format>
911
</formats>
1012
<includeBaseDirectory>false</includeBaseDirectory>
1113
<fileSets>
12-
<!-- JAR Dosyasını Dahil Et -->
1314
<fileSet>
1415
<directory>${project.build.directory}</directory>
1516
<includes>
1617
<include>${project.build.finalName}.jar</include>
1718
</includes>
1819
<outputDirectory>/</outputDirectory>
1920
</fileSet>
20-
<!-- Diğer Dosyaları Dahil Et -->
2121
<fileSet>
2222
<directory>${basedir}</directory>
2323
<includes>
@@ -34,4 +34,4 @@
3434
<outputDirectory>/</outputDirectory>
3535
</fileSet>
3636
</fileSets>
37-
</assembly>
37+
</assembly>

0 commit comments

Comments
 (0)