You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Yi Pan (Data Infrastructure) (JIRA)" <ji...@apache.org> on 2015/12/07 20:46:10 UTC

[jira] [Comment Edited] (INFRA-10898) Staging repository does not show up?

    [ https://issues.apache.org/jira/browse/INFRA-10898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045571#comment-15045571 ] 

Yi Pan (Data Infrastructure) edited comment on INFRA-10898 at 12/7/15 7:45 PM:
-------------------------------------------------------------------------------

Hi, [~brianf], in our project, we use gradle and the following configuration was used in publishing the artifacts to nexus:
{code}
// Publishing to Apache's Maven repository (Nexus). To test this locally, set
// repositoryUrl and snapshotRepositoryUrl below to 'file://localhost/tmp/myRepo'
subprojects {
  apply plugin: 'nexus'

  nexus {
    attachSources = true
    attachTests = false
    attachJavadoc = true
    sign = true
    repositoryUrl = 'https://repository.apache.org/service/local/staging/deploy/maven2'
    snapshotRepositoryUrl = 'https://repository.apache.org/content/repositories/snapshots'
  }

  modifyPom {
    project {
      name 'Apache Samza'
      description 'A distributed stream processing framework built upon Apache Kafka and Apache Hadoop YARN.'
      url 'http://samza.apache.org/'

      scm {
        url 'https://git-wip-us.apache.org/repos/asf?p=samza.git;a=tree'
        connection 'scm:http://git-wip-us.apache.org/repos/asf/samza.git'
        developerConnection 'scm:https://git-wip-us.apache.org/repos/asf/samza.git'
      }

      licenses {
        license {
          name 'The Apache Software License, Version 2.0'
          url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
        }
      }
    }
  }
}
{code}

The link you provide only has instructions to use ivy settings to publish to Nexus. Is there any instruction on how to configure gradle to do the same? Note that the above gradle settings worked on July 9 2015 when I was pushing Samza 0.9.1 release. It just stopped working as expected this time.

Thanks a lot!

-Yi


was (Author: nickpan47):
Hi, [~brianf], in our project, we use gradle and the following configuration was used in publishing the artifacts to nexus:
{code}
// Publishing to Apache's Maven repository (Nexus). To test this locally, set
// repositoryUrl and snapshotRepositoryUrl below to 'file://localhost/tmp/myRepo'
subprojects {
  apply plugin: 'nexus'

  nexus {
    attachSources = true
    attachTests = false
    attachJavadoc = true
    sign = true
    repositoryUrl = 'https://repository.apache.org/service/local/staging/deploy/maven2'
    snapshotRepositoryUrl = 'https://repository.apache.org/content/repositories/snapshots'
  }

  modifyPom {
    project {
      name 'Apache Samza'
      description 'A distributed stream processing framework built upon Apache Kafka and Apache Hadoop YARN.'
      url 'http://samza.apache.org/'

      scm {
        url 'https://git-wip-us.apache.org/repos/asf?p=samza.git;a=tree'
        connection 'scm:http://git-wip-us.apache.org/repos/asf/samza.git'
        developerConnection 'scm:https://git-wip-us.apache.org/repos/asf/samza.git'
      }

      licenses {
        license {
          name 'The Apache Software License, Version 2.0'
          url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
        }
      }
    }
  }
}
{code}

The link you provide only has instructions to use ivy settings to publish to Nexus. Is there any instruction on how to configure gradle to do the same? Note that the above gradle settings worked on July 9 2015 when I was pushing Samza 0.9.1 release. It just stopped working as expected this time.

Thanks a lot!

-Yi

> Staging repository does not show up?
> ------------------------------------
>
>                 Key: INFRA-10898
>                 URL: https://issues.apache.org/jira/browse/INFRA-10898
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Nexus
>            Reporter: Yi Pan (Data Infrastructure)
>
> We have followed the steps below to publish artifacts to staging repo in our Samza release process:
> # We use nexus gradle plugin and publishes artifacts to the following urls:
> {code}
>     repositoryUrl = 'https://repository.apache.org/service/local/staging/deploy/maven2'
>     snapshotRepositoryUrl = 'https://repository.apache.org/content/repositories/snapshots'
> {code}
> When I did the Samza 0.9.1 release in July 9, we can see the artifacts in https://repository.apache.org/#stagingRepositories after run:
> {code}
> ./gradlew uploadArchives
> {code}
> However, when I tried today, I only saw the artifacts are available in snapshot repositories, not in staging repositories. Is there any procedure changed recently? How do we publish to staging repositories now?
> Thanks a lot!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)