发布jar到公共仓库时遇到问题

/ 爬坑指南 / 没有评论 / 444浏览
  1. gpg 搜索不到public key

failureMessage No public key: Key with id: (1fcda02dd63733fe) was not ableto be located on http://pgp.mit.edu:11371/. Uploadyour public key and try the operation again.

gpg --keyserver http://pool.sks-keyservers.net:11371 --send-keys A81CC45E
gpg --keyserver http://pgp.mit.edu:11371 --send-keys A81CC45E
gpg --keyserver http://keyserver.ubuntu.com:11371 --send-keys A81CC45E

# 如果不行就将http换为hkp
  1. java doc 去掉docLint校验
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9.1</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <additionalparam>-Xdoclint:none</additionalparam>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

参考文章:https://blog.csdn.net/qqhjqs/article/details/80963875