Skip to content

Problem publishing a zip file #83

Description

@JWinawer

I am trying to publish a zip file and am receiving an error I cannot debug.

The code I used for publishing is this:

% make a temporary directory
folder = fullfile(tempdir, 'myRdtTest');
mkdir(folder);
cd(folder);
 
% make a dummy variable
someVariable = 'foo';
 
% save a small file
save('toBeZipped.mat', 'someVariable');
 
% zip it
zip('deleteme.zip', 'toBeZipped.mat');
 
% remove the mat file
delete('toBeZipped.mat');
 
% Create remote data toolbox object
rd = RdtClient('vistasoft');
 
% To write to the archive, you must have a password
rd.credentialsDialog;
 
% Change the remote path
rd.crp('/vistadata/functional');
p = rd.listRemotePaths
 
% Publish it
rd.publishArtifacts(folder,'type','zip');

The error I get is this:

Error using gradlePublishArtifact (line 110)
error status 1 (:generatePomFileForMavenPublication
:publishMavenPublicationToMavenRepository
Upload http://52.32.77.154/repository/vistasoft/vistadata/functional/deleteme/1/deleteme-1.pom
Could not transfer artifact vistadata.functional:deleteme:pom:1 from/to remote
(http://52.32.77.154/repository/vistasoft/): Could not write to resource
'vistadata/functional/deleteme/1/deleteme-1.pom'
Upload http://52.32.77.154/repository/vistasoft/vistadata/functional/deleteme/1/deleteme-1-zip.zip
Could not transfer artifact vistadata.functional:deleteme:zip:zip:1 from/to remote
(http://52.32.77.154/repository/vistasoft/): Could not write to resource
'vistadata/functional/deleteme/1/deleteme-1-zip.zip'
:publishMavenPublicationToMavenRepository FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':publishMavenPublicationToMavenRepository'.
> Failed to publish publication 'maven' to repository 'maven'
   > Failed to deploy artifacts: Could not transfer artifact vistadata.functional:deleteme:pom:1
   from/to remote (http://52.32.77.154/repository/vistasoft/): Could not write to resource
   'vistadata/functional/deleteme/1/deleteme-1.pom'

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

BUILD FAILED

Total time: 1.031 secs
)

Error in rdtPublishArtifact (line 67)
[localPath, pomPath, type] = gradlePublishArtifact(configuration.repositoryUrl, ...

Error in rdtPublishArtifacts (line 141)
    artifactCell{ii} = rdtPublishArtifact(configuration, ...

Error in RdtClient/publishArtifacts (line 369)
            artifacts = rdtPublishArtifacts(obj.configuration, ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions