-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(openapi): create app #32
feat(openapi): create app #32
Conversation
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
============================================
+ Coverage 68.35% 68.43% +0.07%
- Complexity 1193 1202 +9
============================================
Files 169 171 +2
Lines 5161 5198 +37
Branches 561 561
============================================
+ Hits 3528 3557 +29
- Misses 1369 1380 +11
+ Partials 264 261 -3
|
3d608fa
to
7b41ecd
Compare
apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/api/AppOpenApiService.java
Outdated
Show resolved
Hide resolved
apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/api/AppOpenApiService.java
Outdated
Show resolved
Hide resolved
apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/dto/OpenAppDTO.java
Outdated
Show resolved
Hide resolved
I think the PR is fantastic! Don't forget to modify the CHANGES.md. |
.../test/java/com/ctrip/framework/apollo/openapi/client/ApolloOpenApiClientIntegrationTest.java
Show resolved
Hide resolved
apollo-openapi/src/main/java/com/ctrip/framework/apollo/openapi/dto/OpenCreateAppDTO.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It looks great to me! I suppose we could merge this PR and release a snapshot version? |
Merged. How to release the snapshot version?.. |
|
Done. and nexus can find it https://oss.sonatype.org/#nexus-search;quick~apollo-openapi But when I run [INFO] Reactor Summary for Apollo 2.2.0-SNAPSHOT:
[INFO]
[INFO] Apollo ............................................. SUCCESS [ 1.430 s]
[INFO] Apollo BuildTools .................................. SUCCESS [ 2.221 s]
[INFO] Apollo Common ...................................... SUCCESS [ 5.205 s]
[INFO] Apollo Biz ......................................... SUCCESS [ 3.933 s]
[INFO] Apollo ConfigService ............................... SUCCESS [ 3.423 s]
[INFO] Apollo AdminService ................................ SUCCESS [ 2.368 s]
[INFO] Apollo Portal ...................................... FAILURE [ 0.911 s]
[INFO] Apollo Assembly .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.993 s
[INFO] Finished at: 2023-08-31T21:56:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project apollo-portal: Could not resolve dependencies for project com.ctrip.framework.apollo:apollo-portal:jar:2.2.0-SNAPSHOT: Could not find artifact com.ctrip.framework.apollo:apollo-openapi:jar:2.2.0-SNAPSHOT in nexus (https://maven.aliyun.com/repository/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging. It prompt that
maven.aliyun.com need a little time to sync from nexus? or the repository setup in pom.xml didn't work? <repositories>
<!-- for apollo-core and apollo-openapi snapshot versions -->
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories> |
It works on my laptop and also in the GitHub CI. Is there any special configuration in your Maven settings.xml?
|
Solved. It indeed cause by Maven settings.xml. when wrong mirrorOf <mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>https://maven.aliyun.com/repository/public</url>
</mirror> when change to <mirror>
<id>nexus</id>
<mirrorOf>central</mirrorOf>
<url>https://maven.aliyun.com/repository/public</url>
</mirror> i.e mirrorOf from
then it work. [INFO] Reactor Summary for Apollo 2.2.0-SNAPSHOT:
[INFO]
[INFO] Apollo ............................................. SUCCESS [ 1.649 s]
[INFO] Apollo BuildTools .................................. SUCCESS [ 2.844 s]
[INFO] Apollo Common ...................................... SUCCESS [ 6.942 s]
[INFO] Apollo Biz ......................................... SUCCESS [ 4.895 s]
[INFO] Apollo ConfigService ............................... SUCCESS [ 8.378 s]
[INFO] Apollo AdminService ................................ SUCCESS [ 6.404 s]
[INFO] Apollo Portal ...................................... SUCCESS [ 11.992 s]
[INFO] Apollo Assembly .................................... SUCCESS [ 4.165 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.731 s
[INFO] Finished at: 2023-09-02T09:14:26+08:00
[INFO] ------------------------------------------------------------------------ |
What's the purpose of this PR
Allow user create app via openapi
Which issue(s) this PR fixes:
apolloconfig/apollo#4234
Brief changelog
Add
Just a poc code, please don't merge.
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.