Alibaba 規約插件編譯報錯

編譯阿里巴巴Java規約插件報錯。api

FAILURE: Build failed with an exception.maven

* Where:
Build file '/work/002Tech/004SourceCode/p3c/idea-plugin/p3c-common/build.gradle' line: 49ide

* What went wrong:
A problem occurred evaluating project ':p3c-common'.
> Could not get unknown property 'ossrhUsername' for object of type org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer.gradle

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.ui

BUILD FAILEDlua

 

解決方法:url

            repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
                //authentication(userName: ossrhUsername, password: ossrhPassword)
            }idea

            snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
                //authentication(userName: ossrhUsername, password: ossrhPassword)
            }插件

註釋上面的authentication 緣由是gradle找不到這個值。 這個值Alibaba那邊的本地屬性文件有可能有。不過無所謂。直接註釋就能夠了。ssr

相關文章
相關標籤/搜索