Skip to content

Commit

Permalink
build fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuangcp committed May 28, 2024
1 parent b97f862 commit 619f933
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,45 @@

</dependencies>


<!--打包成fat-jar-->
<build>
<finalName>web-server</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>${project.build.finalName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>reactor.http.SimpleWebServer</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 619f933

Please sign in to comment.