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

相关文章
相关标签/搜索