Skip to content

Commit 58e42cc

Browse files
fix: switch personal YAML link to official OpenAPI YAML link and unify openapi-generator plugin version to avoid inconsistencies in generated code
1 parent 736229d commit 58e42cc

File tree

1 file changed

+3
-43
lines changed

1 file changed

+3
-43
lines changed

apollo-portal/pom.xml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<artifactId>apollo-portal</artifactId>
2828
<name>Apollo Portal</name>
2929
<properties>
30-
<apollo.openapi.spec.url>https://raw.githubusercontent.com/tacklequestions/apollo-openapi/main/apollo-openapi.yaml</apollo.openapi.spec.url>
30+
<apollo.openapi.spec.url>https://raw.githubusercontent.com/apolloconfig/apollo-openapi/refs/heads/main/apollo-openapi.yaml</apollo.openapi.spec.url>
3131
<github.path>${project.artifactId}</github.path>
3232
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
3333
</properties>
@@ -137,13 +137,13 @@
137137

138138
</dependencies>
139139
<build>
140-
<!-- 默认插件配置(公共部分) -->
140+
<!-- openapi-generator插件配置 -->
141141
<pluginManagement>
142142
<plugins>
143143
<plugin>
144144
<groupId>org.openapitools</groupId>
145145
<artifactId>openapi-generator-maven-plugin</artifactId>
146-
<version>7.15.0</version>
146+
<version>6.6.0</version>
147147
<executions>
148148
<execution>
149149
<id>generate-openapi-sources</id>
@@ -277,44 +277,4 @@
277277
</plugin>
278278
</plugins>
279279
</build>
280-
281-
<profiles>
282-
<!-- Java 8 环境 -->
283-
<profile>
284-
<id>java8</id>
285-
<activation>
286-
<jdk>[1.8,1.9)</jdk>
287-
</activation>
288-
<build>
289-
<pluginManagement>
290-
<plugins>
291-
<plugin>
292-
<groupId>org.openapitools</groupId>
293-
<artifactId>openapi-generator-maven-plugin</artifactId>
294-
<version>6.6.0</version>
295-
</plugin>
296-
</plugins>
297-
</pluginManagement>
298-
</build>
299-
</profile>
300-
301-
<!-- Java 11 及以上环境 -->
302-
<profile>
303-
<id>java11plus</id>
304-
<activation>
305-
<jdk>[11,)</jdk>
306-
</activation>
307-
<build>
308-
<pluginManagement>
309-
<plugins>
310-
<plugin>
311-
<groupId>org.openapitools</groupId>
312-
<artifactId>openapi-generator-maven-plugin</artifactId>
313-
<version>7.15.0</version>
314-
</plugin>
315-
</plugins>
316-
</pluginManagement>
317-
</build>
318-
</profile>
319-
</profiles>
320280
</project>

0 commit comments

Comments
 (0)