jar 改为dist

This commit is contained in:
oyo
2026-05-21 17:10:30 +08:00
parent 2ad767722a
commit fa259ce453
4 changed files with 55 additions and 7 deletions

View File

@@ -17,7 +17,6 @@
</dependency>
</dependencies>
<modules>
<module>rpc</module>
<module>web</module>
</modules>
</project>

View File

@@ -152,11 +152,6 @@
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.4</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

54
template/public_api/dist/pom.xml vendored Normal file
View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-public-api</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>{{ .artifactId }}-public-api-dist</artifactId>
<dependencies>
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-public-api-api</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-public-api-types</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<finalName>{{ .artifactId }}-api</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>{{ .groupId }}:{{ .artifactId }}-public-api-api</include>
<include>{{ .groupId }}:{{ .artifactId }}-public-api-types</include>
</includes>
</artifactSet>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@@ -14,6 +14,6 @@
<modules>
<module>types</module>
<module>api</module>
<module>jar</module>
<module>dist</module>
</modules>
</project>