將jar包發布到maven的中央倉庫細節整理

  • 2019 年 10 月 15 日
  • 筆記

在學習springboot框架的時候,會引入各種各樣的starter依賴,照著教程嘗試寫了個demo-spring-boot-stater,可以理解為一個組件,隨引隨用

但是只能自己引用,無法共享,於是想將其發布到maven中央倉庫

網上參考了些發布到maven中央倉庫的教程

如何發布Jar包到Maven中央倉庫

如何發布jar包到maven中央倉庫詳細教程

向maven中央倉庫發布jar包或pom

gpg加密發布jar包到maven中央倉庫詳細過程以及踩的坑

大致流程

  1. 註冊sonatype並提交issue工單

  2. 認證域名

  3. GPG生成密鑰

  4. 製作jar包

  5. 發布jar包

上面一些文章操作的都很詳細,在此記錄下自己遇到的些問題以及解決方式

  • pom.xml校驗挺嚴格,比如必須要有url,description,scm,developers,licenses,source,javadoc,gpg
  • 前一陣子正好是70周年大慶,不能腦殼疼
  • deploy操作時,出現roject description missing, Project URL missing 錯誤提示已經很明確了,pom.xml中缺少descriptionurl,可見發布的時候對pom.xml的校驗比較嚴格,也確實,畢竟到時候是需要顯示的
  • 程式碼中的文檔注釋,必須明確,參數不能瞎寫,因為pom.xml引入了javadoc插件,生成文檔的時候回報錯
  • 由於我是windows環境,在cmd窗口執行的時候,會出現找不到gpg命令,解決方式,使用power shell解決
  • deploy操作時出現504網關錯誤,這沒事,只是不巧趕上了人家服務錯誤的問題

如下是完整的pom.xml,最精簡版

<?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>        <groupId>cn.chendahai</groupId>      <artifactId>demo-spring-boot-starter</artifactId>      <version>1.1.2</version>      <packaging>jar</packaging>      <name>demo-spring-boot-starter</name>      <description>spring-boot-starter-demo</description>      <url>https://github.com/chywx/demo-spring-boot-starter</url>        <dependencies>          <dependency>              <groupId>org.springframework.boot</groupId>              <artifactId>spring-boot-autoconfigure</artifactId>          </dependency>      </dependencies>      <dependencyManagement>          <dependencies>              <dependency>                  <groupId>org.springframework.boot</groupId>                  <artifactId>spring-boot-dependencies</artifactId>                  <version>2.1.0.RELEASE</version>                  <type>pom</type>                  <scope>import</scope>              </dependency>          </dependencies>      </dependencyManagement>        <!--licenses資訊-->      <licenses>          <license>              <name>The Apache Software License, Version 2.0</name>              <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>              <distribution>repo</distribution>          </license>      </licenses>        <!--scm資訊-->      <scm>          <url>http://chendahai.cn</url>          <connection>scm:git:https://github.com/chywx/demo-spring-boot-starter.git</connection>          <developerConnection>scm:git:https://github.com/chywx/demo-spring-boot-starter.git</developerConnection>      </scm>        <!--發布者資訊-->      <developers>          <developer>              <name>chenhaiyang</name>              <email>[email protected]</email>              <organization>http://chendahai.cn</organization>              <organizationUrl>http://chendahai.cn</organizationUrl>          </developer>      </developers>        <build>          <plugins>              <plugin>                  <groupId>org.springframework.boot</groupId>                  <artifactId>spring-boot-maven-plugin</artifactId>              </plugin>              <!--Compiler-->              <plugin>                  <groupId>org.apache.maven.plugins</groupId>                  <artifactId>maven-compiler-plugin</artifactId>              </plugin>              <!--source-->              <plugin>                  <artifactId>maven-source-plugin</artifactId>                  <version>3.0.1</version>                  <executions>                      <execution>                          <id>attach-sources</id>                          <goals>                              <goal>jar</goal>                          </goals>                      </execution>                  </executions>              </plugin>              <!--javadoc-->              <plugin>                  <artifactId>maven-javadoc-plugin</artifactId>                  <version>2.10.4</version>                  <configuration>                      <charset>UTF-8</charset>                  </configuration>                  <executions>                      <execution>                          <id>attach-javadocs</id>                          <goals>                              <goal>jar</goal>                          </goals>                      </execution>                  </executions>              </plugin>              <!-- gpg plugin,用於簽名認證 -->              <plugin>                  <groupId>org.apache.maven.plugins</groupId>                  <artifactId>maven-gpg-plugin</artifactId>                  <version>1.6</version>                  <executions>                      <execution>                          <id>sign-artifacts</id>                          <phase>verify</phase>                          <goals>                              <goal>sign</goal>                          </goals>                      </execution>                  </executions>              </plugin>              <!--staging puglin,用於自動執行發布階段(免手動)-->              <plugin>                  <groupId>org.sonatype.plugins</groupId>                  <artifactId>nexus-staging-maven-plugin</artifactId>                  <version>1.6.7</version>                  <extensions>true</extensions>                  <configuration>                      <serverId>ossrh</serverId>                      <nexusUrl>https://oss.sonatype.org/</nexusUrl>                      <autoReleaseAfterClose>true</autoReleaseAfterClose>                  </configuration>              </plugin>              <!-- release plugin,用於發布到release倉庫部署插件 -->              <plugin>                  <groupId>org.apache.maven.plugins</groupId>                  <artifactId>maven-release-plugin</artifactId>                  <version>2.4.2</version>              </plugin>          </plugins>      </build>        <!--定義snapshots庫和releases庫的nexus地址-->      <distributionManagement>          <snapshotRepository>              <!--oss需要對應到settings.xml下的service的id-->              <id>ossrh</id>              <url>https://oss.sonatype.org/content/repositories/snapshots/</url>          </snapshotRepository>          <repository>              <id>ossrh</id>              <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>          </repository>      </distributionManagement>    </project>

maven的settings.xml

<!--需要添加-->  <server>        <id>ossrh</id>        <username>sonatype帳號</username>        <password>sonatype密碼</password>  </server>

特別說明下nexus-staging-maven-plugin插件

            <plugin>                  <groupId>org.sonatype.plugins</groupId>                  <artifactId>nexus-staging-maven-plugin</artifactId>                  <version>1.6.7</version>                  <extensions>true</extensions>                  <configuration>                      <serverId>ossrh</serverId>                      <nexusUrl>https://oss.sonatype.org/</nexusUrl>                      <autoReleaseAfterClose>true</autoReleaseAfterClose>                  </configuration>              </plugin>

staging puglin,用於自動執行發布階段(免手動)

因為deploy之後,默認狀態為open,你需要在後台https://oss.sonatype.org 手動closed,再release

當然,加上這個插件,將autoReleaseAfterClose指定為true,即可自動發布

Release完成後,約需要等待兩三個小時,在 https://search.maven.orghttps://mvnrepository.com 便可以搜到自己發布的依賴了!!!!

同步到第三方倉庫,如阿里雲等會更慢

如下為完整的deploy日誌

PS C:UsersAdministrator> cd D:/MyProject/demo-spring-boot-starter  PS D:MyProjectdemo-spring-boot-starter> mvn clean deploy '-Dmaven.test.skip=true'  [WARNING]  [WARNING] Some problems were encountered while building the effective settings  [WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...mojo" if these are not already contained in the list.n   |-->n  <p... @79:5)  @ D:mavenapache-maven-3.6.1bin..confsettings.xml, line 79, column 5  [WARNING]  [INFO] Scanning for projects...  [WARNING]  [WARNING] Some problems were encountered while building the effective model for cn.chendahai:demo-spring-boot-starter:jar:1.1.2  [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 66, column 21  [WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 61, column 21  [WARNING]  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.  [WARNING]  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.  [WARNING]  [INFO] Inspecting build with total of 1 modules...  [INFO] Installing Nexus Staging features:  [INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin  [INFO]  [INFO] ---------------< cn.chendahai:demo-spring-boot-starter >----------------  [INFO] Building demo-spring-boot-starter 1.1.2  [INFO] --------------------------------[ jar ]---------------------------------  [INFO]  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ demo-spring-boot-starter ---  [INFO] Deleting D:MyProjectdemo-spring-boot-startertarget  [INFO]  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ demo-spring-boot-starter ---  [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!  [INFO] Copying 1 resource  [INFO]  [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ demo-spring-boot-starter ---  [INFO] Changes detected - recompiling the module!  [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!  [INFO] Compiling 3 source files to D:MyProjectdemo-spring-boot-startertargetclasses  [INFO]  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ demo-spring-boot-starter ---  [INFO] Not copying test resources  [INFO]  [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ demo-spring-boot-starter ---  [INFO] Not compiling test sources  [INFO]  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ demo-spring-boot-starter ---  [INFO] Tests are skipped.  [INFO]  [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ demo-spring-boot-starter ---  [INFO] Building jar: D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.jar  [INFO]  [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ demo-spring-boot-starter >>>  [INFO]  [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ demo-spring-boot-starter <<<  [INFO]  [INFO]  [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ demo-spring-boot-starter ---  [INFO] Building jar: D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-sources.jar  [INFO]  [INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ demo-spring-boot-starter ---  [WARNING] Source files encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!  [INFO]  正在載入程式包cn.chendahai.demo的源文件...  正在構造 Javadoc 資訊...  標準 Doclet 版本 1.8.0_211  正在構建所有程式包和類的樹...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoDemoService.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoDemoServiceProperties.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoDemoStarterEnableAutoConfiguration.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemopackage-frame.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemopackage-summary.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemopackage-tree.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsconstant-values.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoclass-useDemoStarterEnableAutoConfiguration.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoclass-useDemoServiceProperties.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemoclass-useDemoService.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocscnchendahaidemopackage-use.html...  正在構建所有程式包和類的索引...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsoverview-tree.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsindex-all.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsdeprecated-list.html...  正在構建所有類的索引...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsallclasses-frame.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsallclasses-noframe.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocsindex.html...  正在生成D:MyProjectdemo-spring-boot-startertargetapidocshelp-doc.html...  [INFO] Building jar: D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-javadoc.jar  [INFO]  [INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ demo-spring-boot-starter ---  [INFO]  [INFO] --- maven-install-plugin:2.4:install (default-install) @ demo-spring-boot-starter ---  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.jar to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.jar  [INFO] Installing D:MyProjectdemo-spring-boot-starterpom.xml to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.pom  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-sources.jar to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-sources.jar  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-javadoc.jar to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-javadoc.jar  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.jar.asc to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.jar.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.pom.asc to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.pom.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-sources.jar.asc to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-sources.jar.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-javadoc.jar.asc to D:mavenmymavenrepositorycnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-javadoc.jar.asc  [INFO]  [INFO] --- nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) @ demo-spring-boot-starter ---  [INFO] Performing local staging (local stagingDirectory="D:MyProjectdemo-spring-boot-startertargetnexus-stagingstaging")...  [INFO]  + Using server credentials "ossrh" from Maven settings.  [INFO]  * Connected to Nexus at https://oss.sonatype.org:443/, is version 2.14.14-01 and edition "Professional"  [INFO]  * Using staging profile ID "ba067c55e451" (matched by Nexus).  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.jar to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.jar  [INFO] Installing D:MyProjectdemo-spring-boot-starterpom.xml to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.pom  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-sources.jar to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-sources.jar  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-javadoc.jar to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-javadoc.jar  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.jar.asc to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.jar.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2.pom.asc to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2.pom.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-sources.jar.asc to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-sources.jar.asc  [INFO] Installing D:MyProjectdemo-spring-boot-startertargetdemo-spring-boot-starter-1.1.2-javadoc.jar.asc to D:MyProjectdemo-spring-boot-startertargetnexus-stagingstagingba067c55e451cnchendahaidemo-spring-boot-starter1.1.2demo-spring-boot-starter-1.1.2-javadoc.jar.asc  [INFO] Performing remote staging...  [INFO]  [INFO]  * Remote staging into staging profile ID "ba067c55e451"  [INFO]  * Created staging repository with ID "cnchendahai-1038".  [INFO]  * Staging repository at https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038  [INFO]  * Uploading locally staged artifacts to profile cn.chendahai  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.pom.asc  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.pom.asc (499 B at 175 B/s)  Downloading from ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/maven-metadata.xml  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/maven-metadata.xml  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/maven-metadata.xml (316 B at 86 B/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-sources.jar  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-sources.jar (4.5 kB at 799 B/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-javadoc.jar.asc  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-javadoc.jar.asc (499 B at 1.0 kB/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.jar  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.jar (5.2 kB at 830 B/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.pom  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.pom (5.7 kB at 3.0 kB/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.jar.asc  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2.jar.asc (499 B at 1.0 kB/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-javadoc.jar  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-javadoc.jar (35 kB at 6.0 kB/s)  Uploading to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-sources.jar.asc  Uploaded to ossrh: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/cnchendahai-1038/cn/chendahai/demo-spring-boot-starter/1.1.2/demo-spring-boot-starter-1.1.2-sources.jar.asc (499 B at 1.0 kB/s)  [INFO]  * Upload of locally staged artifacts finished.  [INFO]  * Closing staging repository with ID "cnchendahai-1038".    Waiting for operation to complete...  ......    [INFO] Remote staged 1 repositories, finished with success.  [INFO] Remote staging repositories are being released...    Waiting for operation to complete...  .....    [INFO] Remote staging repositories released.  [INFO] ------------------------------------------------------------------------  [INFO] BUILD SUCCESS  [INFO] ------------------------------------------------------------------------  [INFO] Total time:  01:55 min  [INFO] Finished at: 2019-10-12T10:38:48+08:00  [INFO] ------------------------------------------------------------------------  PS D:MyProjectdemo-spring-boot-starter>  PS D:MyProjectdemo-spring-boot-starter>