修改为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> <artifactId>transmittable-thread-local</artifactId>
<version>2.12.3</version> <version>2.12.3</version>
</dependency> </dependency>
<dependency>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}-client</artifactId>
<version>${revision}</version>
</dependency>
{{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }} {{- if and (eq .microserviceFrameworkType "DUBBO") .microserviceFrameworkVersion }}
<dependency> <dependency>
<groupId>org.apache.dubbo</groupId> <groupId>org.apache.dubbo</groupId>
@@ -281,6 +276,31 @@
</dependencies> </dependencies>
<build> <build>
<plugins> <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> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>

View File

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

View File

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

View File

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