XMLWordPrintable

    Details

      Description

      i can upload to snapshots (https://oss.sonatype.org/content/repositories/snapshots) but i can't upload to release  ( https://oss.sonatype.org/service/local/staging/deploy/maven2)

       

      * What went wrong:
      Execution failed for task ':plugin:lfruploader:uploadArchives'.
      > Could not publish configuration 'archives'
      > Failed to deploy artifacts: Could not transfer artifact com.github.apolalca:lfruploader:jar:1.0 from/to remote (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/apolalca/lfruploader/1.0/lfruploader-1.0.jar, ReasonPhrase: Forbidden.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
      
      BUILD FAILED in 5s
      5 actionable tasks: 1 executed, 4 up-to-date
      Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/apolalca/lfruploader/1.0/lfruploader-1.0.jar, ReasonPhrase: Forbidden.
      22:23:16: Task execution finished 'uploadArchives'.
      

       

      properties:

      #nexusUrl=https://oss.sonatype.org/content/repositories/snapshots
      nexusUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2
      nexusUsername=xxxx
      nexusPassword=xxxxx

       

      Uploader:

      uploadArchives {
          repositories {
              mavenDeployer {
                  repository(
                          url: "${nexusUrl}") {
                      authentication(userName: nexusUsername, password: nexusPassword)
                  }
                  snapshotRepository(
                          url: "${nexusUrl}") {
                      authentication(userName: nexusUsername, password: nexusPassword)
                  }
              }
          }
      }
      

      I'm using Gradle Guide.

      This is my first upload of my new project opened in the task --OSSRH-47524--, looking into JIRA and saw one related OSSRH-9805

       

      DEBUG:

      22:37:38.240 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
      22:37:38.240 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :plugin:lfruploader:uploadArchives FAILED
      22:37:41.805 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 403 Forbidden
      22:37:41.806 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Connection can be kept alive indefinitely
      22:37:41.806 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Connection 0.0.0.0:49619<->54.156.221.201:443 shut down
      22:37:41.807 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Connection 0.0.0.0:49619<->54.156.221.201:443 closed
      22:37:41.807 [DEBUG] [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection released: [id: 3][route: {s}->https://oss.sonatype.org:443][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
      22:37:41.807 [ERROR] [org.gradle.api.publication.maven.internal.action.LoggingMavenTransferListener] Could not transfer artifact com.github.apolalca:lfruploader:pom:1.0 from/to remote (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/apolalca/lfruploader/1.0/lfruploader-1.0.pom, ReasonPhrase: Forbidden.
      22:37:41.809 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute upload for :plugin:lfruploader:uploadArchives'
      22:37:41.816 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute upload for :plugin:lfruploader:uploadArchives' completed
      22:37:41.818 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
      22:37:41.818 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':plugin:lfruploader:uploadArchives'
      22:37:41.819 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Task :plugin:lfruploader:uploadArchives'
      22:37:41.824 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 63: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent
      22:37:41.825 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Task :plugin:lfruploader:uploadArchives' completed
      22:37:41.825 [INFO] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] :plugin:lfruploader:uploadArchives (Thread[Task worker for ':',5,main]) completed. Took 8.752 secs.
      22:37:41.826 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Task worker for ':': released lock on :
      22:37:41.826 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.6 completed (1 worker(s) in use)
      22:37:41.826 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Task worker for ':': released lock on root.1.6
      22:37:41.827 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':',5,main]] finished, busy: 8.867 secs, idle: 0.022 secs
      22:37:41.827 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 2,5,main]] finished, busy: 0.0 secs, idle: 8.889 secs
      22:37:41.828 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 2,5,main]] finished, busy: 0.0 secs, idle: 8.89 secs
      22:37:41.828 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 3,5,main]] finished, busy: 0.0 secs, idle: 8.89 secs
      22:37:41.828 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 8.917 secs
      22:37:41.829 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
      22:37:41.837 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 53: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent
      22:37:41.838 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run tasks' completed
      22:37:41.846 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
      22:37:41.847 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
      22:37:41.847 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
      22:37:41.848 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
      22:37:41.849 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':plugin:lfruploader:uploadArchives'.
      22:37:41.849 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not publish configuration 'archives'
      22:37:41.849 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to deploy artifacts: Could not transfer artifact com.github.apolalca:lfruploader:jar:1.0 from/to remote (https://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/apolalca/lfruploader/1.0/lfruploader-1.0.jar, ReasonPhrase: Forbidden.
      22:37:41.850 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
      22:37:41.850 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
      22:37:41.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
      22:37:41.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
      22:37:41.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
      22:37:41.853 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] 
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
      22:37:41.854 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
      22:37:41.854 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 10s
      22:37:41.856 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 5 actionable tasks: 1 executed, 4 up-to-date
      22:37:41.857 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
      22:37:41.857 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 2: released lock on root.1
      22:37:41.857 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run build'
      22:37:41.869 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 53: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent
      22:37:41.870 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run build' completed
      22:37:41.885 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/fileContent)
      22:37:41.885 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/fileContent).
      22:37:41.888 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for task history cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/taskHistory)
      22:37:41.889 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/taskHistory).
      22:37:41.891 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/buildOutputCleanup)
      22:37:41.891 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/buildOutputCleanup).
      22:37:41.893 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (/Users/apolalca/.gradle/caches/4.10/md-supplier)
      22:37:41.893 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (/Users/apolalca/.gradle/caches/4.10/md-supplier).
      22:37:41.894 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (/Users/apolalca/.gradle/caches/4.10/md-rule)
      22:37:41.895 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (/Users/apolalca/.gradle/caches/4.10/md-rule).
      22:37:41.896 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
      22:37:41.897 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
      22:37:41.898 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.001 secs
      22:37:41.898 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
      22:37:41.898 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
      22:37:41.900 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/fileHashes)
      22:37:41.900 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/fileHashes).
      22:37:41.900 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] VCS Checkout Cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/vcs-1) has last been fully cleaned up 0 hours ago
      22:37:41.901 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/vcs-1) was closed 0 times.
      22:37:41.901 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (/Volumes/SSD/git/gradle-lfruploader-plugin/.gradle/4.10/vcsMetadata-1) was closed 0 times.
      22:37:41.902 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
      Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/apolalca/lfruploader/1.0/lfruploader-1.0.jar, ReasonPhrase: Forbidden.
      22:37:41: Task execution finished 'uploadArchives -debug'.
      
      

      Thank you!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jorlina Joel Orlina
              Reporter:
              apolalca Adrián Pol
              Last Updated By:
              Joel Orlina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title