通過nutz的文(wén)檔提供的安(ān)裝(zhuāng)方式如下:
mvn clean install -Dmaven.test.skip=true
執行後,報錯信息分(fēn)别如下:
Unable to execute gpg command: Error while executing process. Cannot run program "gpg.exe": CreateProcess error=2
MavenReportException: Error while generating Javadoc: Unable to find javadoc
通過解決分(fēn)析,最後執行安(ān)裝(zhuāng)語句調整為(wèi):
mvn clean install -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true
mvn 命令說明:
-Dmaven.test.skip=true :跳過test
-Dmaven.javadoc.skip=true :跳過javadoc
-X :debug,顯示詳情