Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem publishing a zip file #83

Open
JWinawer opened this issue May 4, 2017 · 3 comments
Open

Problem publishing a zip file #83

JWinawer opened this issue May 4, 2017 · 3 comments

Comments

@JWinawer
Copy link

JWinawer commented May 4, 2017

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, ...
@render-toolbox
Copy link

render-toolbox commented May 29, 2017 via email

@JWinawer
Copy link
Author

Hi David,

Thanks for checking. Unfortunately, even after updating my archiva password, I get the same error from the same script.

Any other thoughts or suggestions for how I can debug?

Thanks,
Jon

@DavidBrainard
Copy link
Contributor

DavidBrainard commented Jun 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants