Comments (5)
Hi Baruch,
I solved my problem in order to make it works. I forget to put a good username and password.
File testFile = new File("/path/to/libToUpload.jar");
private final String NEW_LOCAL = "http://"+username+":"+password+"@localhost:8081/artifactory";
artifactory.repository(NEW_LOCAL).upload("libs-release-local/junit/junit/4.9/juni-4.9.jar", testFile).doUpload();
Thanks for the lib services-0.8-all.jar, it's brilliant ;o)
from artifactory-client-java.
Thank you for pointing it out, it shouldn't fail that ugly for lack of username and password.
And I glad you like it. More feedback, please :)
from artifactory-client-java.
I am trying to reproduce and not sure what you meant by "I forget to put a good username and password". Did you run it without username and password? If it was Java, you probably wouldn't be able to compile it? Please help me here :)
Thanks!
from artifactory-client-java.
I created a simple maven project under eclipse with a jdk jdk 1.7.0_13 and I created a dependency on services-0.8-all.jar. Then, I wrote a unit test (the one you can see in my first post) in order to make a simple upload.
I did the test matching the above description at work and I get the stacktrace I gave you in my first post. Now, I am on holidays and I try again at home the same scenario. I wanted to change a little bit my strategy in order to not get the same error again, I wrote the code you can see in my second post and this time it works. The only thing I changed, was in my memory, the username and password.
Unfortunately I try to reproduce at home the same error with the code I used for my first post and it works as well. I don't get the stacktrace anymore...
I will come back at work in three weeks, I will check it out and I will give you more details on what happened exactly.
I hope I did not bother you for nothing :-(
from artifactory-client-java.
No worries, my friend. Thank you for tying it out for us!
I'll keep the issue open, but if you won't be able to reproduce it, feel free to close it at will.
from artifactory-client-java.
Related Issues (20)
- Add remoteSearch boolean query param for supporting GAVC search for Virtual and Remote Repositories HOT 1
- Allow to retrieve artifact File Statistics
- DockerRepositorySettingsImpl missing setter for dockerTagRetention repository property
- Is it possible to push a docker image saved using docker save command using this java client? HOT 1
- Add support for Terraform package type HOT 1
- False positive on CVE-2020-16156
- Repository upload() does not handle UTF-8 Strings as path names
- Unable to implment Artifactory Rest API in intellij java springboot service - Cannot access groovy.lang.GroovyObject HOT 3
- Illegal reflective access warnings with Java version 11 or later HOT 1
- False Positive on CVE-2014-0114
- Using in Android causes a "No static field" HOT 6
- In Firefox the web signup with Google spins here for ever HOT 2
- Android quality
- There are no tags for a release
- Fails to upload artifact greater than 4GB in size HOT 1
- DockerRepositorySettingsImpl Missing blockPushingSchema1 Repository Property
- Migration to apache.hc.core5 for Spring-Boot-3 HOT 1
- Is there a possibility to rest call with HEAD method
- Support for the JFrog Platform's Projects REST API
- Add missing xrayDataTtl field to XraySettings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artifactory-client-java.