Also, for maven releases, I have to configure my .m2/settings.xml and add a configuration/credentials for the repos...
<!-- To publish a snapshot of some part of Maven --> <server> <id>apache.snapshots.https</id> <username>user</username> <password>...</password> </server> <!-- To stage a release of some part of Maven --> <server> <id>apache.releases.https</id> <username>user</username> <password>...</password> </server> Having said that, I have not done a pure sbt release to apache... On Wed, Jun 19, 2019 at 10:08 AM Luciano Resende <luckbr1...@gmail.com> wrote: > > Can you actually login to repository.apache.org? All committers should > have access to that... > > On Tue, Jun 18, 2019 at 5:02 PM Zhang Yifei <yifei.z.l...@gmail.com> wrote: > > > > Hello Wei, > > > > Just tried with full Apache Email, same error. > > I didn`t get your error, it seems like some kind of dependency error. > > Apache repo requires GPG signature, i had to create a new GPG key and > > publish it in public key pool. When i use "publishSigned" command in sbt > > shell, > > sbt will sign all generated artifacts with my GPG key(asking for Key > > password if we created it), generate POM file from informations that we put > > in sonatype.sbt and try to connect with Repo host for deployment. > > I also changed the version from 0.0.5 to 0.0.5-SNAPSHOT for snapshot repo > > deploy before deploying directly to staging repo. > > > > The only change that we had is the repository host, from oss.sonatype.org > > to repository.apache.org(and your credentials) > > > > I'm suspecting that some Sonatype dependencies we are using is affecting > > this procedure. > > I got day off on thursday, then ill check all these dependencies and > > plugings. > > > > Thanks for helping!! > > > > Regards > > > > Yifei > > > > Em ter, 18 de jun de 2019 às 02:46, Wei Chen <weic...@apache.org> escreveu: > > > > > Hello Yifei, > > > > > > I tried adding these line directly: > > > > > > credentials += Credentials("Apache Nexus Repository Manager", " > > > repository.apache.org", "wei.c...@apache.org", "******") > > > publishTo := { > > > val nexus = "https://repository.apache.org/" > > > if (isSnapshot.value) > > > Some("snapshots" at nexus + "content/repositories/snapshots") > > > else > > > Some("releases" at nexus + "service/local/staging/deploy/maven2") > > > } > > > > > > The error that I am getting is > > > > > > TypeError: a bytes-like object is required, not 'str' > > > > > > --scala_out: > > > protoc-gen-scala: Plugin failed with status code 1. > > > > > > java.lang.RuntimeException: > > > protoc returned exit code: 1 > > > > > > at > > > scala.sys.package$.error(package.scala:27) > > > > > > > > > Are you getting the same error? > > > Or if you can try to change your account to the full Apache Email first? > > > Cus I think it only recognizes the full email. > > > > > > Best Regards > > > Wei > > > > > > On Mon, Jun 17, 2019 at 9:05 AM Zhang Yifei <yifeizh...@apache.org> wrote: > > > > > > > Hello guys, i need a hand here about publishing Engine-Executor to > > > > Apache > > > > MARVIN-45 <https://issues.apache.org/jira/browse/MARVIN-45>/MARVIN-56 > > > > <https://issues.apache.org/jira/browse/MARVIN-56>. > > > > > > > > Error log: > > > > ------------- > > > > [error] Unable to find credentials for [Sonatype Nexus Repository > > > Manager @ > > > > repository.apache.org]. > > > > [error] Is one of these realms misspelled for host [ > > > > repository.apache.org > > > > ]: > > > > [error] * Apache Nexus Repository Manager > > > > [trace] Stack trace suppressed: run last *:publishSigned for the full > > > > output. > > > > [error] (*:publishSigned) java.io.IOException: Access to URL > > > > > > > > > > > https://repository.apache.org/content/repositories/snapshots/org/apache/marvin/marvin-engine-executor_2.12/0.0.5-SNAPSHOT/marvin-engine-executor_2.12-0.0.5-SNAPSHOT.jar.asc > > > > was refused by the server: Unauthorized > > > > [error] Total time: 5 s, completed 17/06/2019 10:49:14 > > > > ------------ > > > > > > > > The release configuration is practically done. > > > > I have tried to publish locally and it worked(Changed Apache repo host > > > > to > > > > publishTo := Some(Resolver.file("file", new File( > > > > "/home/zhangyifei/Desktop" )) )). > > > > The current value of "publishTo" in build.sbt is > > > > > > > > publishTo := {val nexus = "https://repository.apache.org/" > > > > if (isSnapshot.value) > > > > Some("snapshots" at nexus + "content/repositories/snapshots") > > > > else > > > > Some("releases" at nexus + "service/local/staging/deploy/maven2") > > > > } > > > > > > > > > > > > So apparently the problem is Apache Credential setting. > > > > > > > > Putting "credentials += Credentials("Apache Nexus Repository Manager", " > > > > repository.apache.org", "yifeizhang", "MyPassword)" in build.sbt is not > > > > working, > > > > and creating a local file in /home/user/.sbt/sbtversion/sonatype.sbt > > > > with > > > > credentials informations either(This worked for me when i published > > > > artifact to sonatype repo). > > > > > > > > Does anyone have any idea about how to set credentials for artifact > > > > publish. > > > > > > > > > > > > Best regards > > > > > > > > > > > > > -- > > -------------------------------------------------------------- > > Zhang Yifei > > > > -- > Luciano Resende > http://twitter.com/lresende1975 > http://lresende.blogspot.com/ -- Luciano Resende http://twitter.com/lresende1975 http://lresende.blogspot.com/