修改为interfaces

This commit is contained in:
oyo
2026-05-27 16:22:15 +08:00
parent d3358e424c
commit 14d0755d9f
4 changed files with 32 additions and 20 deletions

View File

@@ -236,11 +236,6 @@
<artifactId>transmittable-thread-local</artifactId>
<version>2.12.3</version>
</dependency>
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-client</artifactId>
<version>${revision}</version>
</dependency>
{{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }}
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -281,6 +276,31 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.7.3</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>

View File

@@ -8,12 +8,12 @@
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>{{ .artifactId }}-public-api-dist</artifactId>
<artifactId>{{ .artifactId }}-api</artifactId>
<dependencies>
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-public-api-api</artifactId>
<artifactId>{{ .artifactId }}-public-interfaces</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
@@ -26,13 +26,6 @@
<build>
<finalName>{{ .artifactId }}-api</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
@@ -62,13 +55,12 @@
</includes>
</filter>
</filters>
<outputFile>${project.build.directory}/${project.build.finalName}.jar</outputFile>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@@ -8,7 +8,7 @@
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>{{ .artifactId }}-public-api-api</artifactId>
<artifactId>{{ .artifactId }}-public-api-interfaces</artifactId>
<dependencies>
<dependency>

View File

@@ -13,7 +13,7 @@
<modules>
<module>types</module>
<module>api</module>
<module>interfaces</module>
<module>dist</module>
</modules>
</project>