Giter Site home page Giter Site logo

Comments (5)

triaubaral avatar triaubaral commented on June 1, 2024

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.

jbaruch avatar jbaruch commented on June 1, 2024

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.

jbaruch avatar jbaruch commented on June 1, 2024

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.

triaubaral avatar triaubaral commented on June 1, 2024

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.

jbaruch avatar jbaruch commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.