artifactory

Deploying Android AAR library to Artifactory via Gradle build fails with error “Error deploying artifact: Error transferring file”

邮差的信 提交于 2019-12-06 07:25:26
When I run ./gradlew uploadArchives to deploy my library artifact to Artifactory server, I get the following error: Uploading: com/example/android-lib/1.0.0-SNAPSHOT/android-lib-1.0.0-20150311.112243-1.aar to repository remote at http://artifactory:8081/artifactory/libs-snapshot-local Transferring 3787K from remote Error writing to server android-lib:uploadArchives FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':android-lib:uploadArchives'. > Could not publish configuration 'archives' > Error deploying artifact 'com.example:android-lib:aar': Error

Upload multiple Gradle artifacts to Artifactory from Jenkins

我的梦境 提交于 2019-12-06 07:02:19
My environment uses Gradle for builds, Jenkins for CI, and Artifactory for a repository. I use the Artifactory plugin for Jenkins. Jenkins successfully builds my main jar file and uploads it to Artifactory. The build script has a second target for creating a distribution zip file under build/distributions. Jenkins creates the zip file successfully, but I don't know how to tell it to upload that artifact to Artifactory, too. Is this something I should be able to specify in the Jenkins Artifactory plugin config, or something I should define in the Gradle build script? Thanks for any pointers. I

Dependencies and lastest.release

只愿长相守 提交于 2019-12-06 06:01:06
We are currently using grails 2.2 and are trying to upgrade to 2.4, but we have an issue. In BuildConfig.groovy, we have a few dependencies and plugins that use latest.release. For example: 'com.example:myplugin:latest.release'. In grails 2.2, this would work as expected. In grails 2.4, I receive an error: Error Resolve error obtaining dependencies: Could not find artifact ... We are using the latest version of Artifactory. The error indicates that grails is looking in the correct location, but cannot find it. If we specify a specific version then grails finds it ok. For example: 'com.example

Error grabbing Grapes … unresolved dependency … not found

我的梦境 提交于 2019-12-06 04:04:40
问题 UPDATE 8/6: The beefed up logging has shown me that there is an issue deleting the old jar from the cache, which leads to the fatal "not found" error. There are other threads similar to this, but only when someone is locking the file with their IDE. We are running a single groovy script from Jenkins, and no one is logged into this box. We ran process explorer right after the failure and there were no locks. Then I login with the user that Jenkins is using to run the script, and I get no error

Need presentation materials for convincing a customer to use Maven

余生颓废 提交于 2019-12-06 01:31:04
问题 My customer needs a more organized inventory of all 3rd-party libraries (such as JAR files) that are used in production for their projects. I am involved with a number of their Java-based projects. Their inventory has not been consistently maintained in the past and the time has come to account for all the libraries that are currently being used (there are quite a few!) and to enforce a structured process for introducing new libraries into the build environment. I have tried pitching the idea

How to put any file in artifactory using python?

亡梦爱人 提交于 2019-12-06 00:06:06
I have a requirement where any file should be put in the artifact using python language. I tried to search all over internet but I couldn't find any help. Please share code snippet or something which can help me to achieve this. Any help is greatly appreciated here. Artifactory python module can be used to upload artifacts into artifactory. https://pypi.python.org/pypi/artifactory/0.1.17 Here is an example from the website used to upload a file into artifactory: from artifactory import ArtifactoryPath path = ArtifactoryPath("http://my-artifactory/artifactory/libs-snapshotlocal/myapp/1.0") path

Artifactory has lost track of local artifacts

限于喜欢 提交于 2019-12-05 20:39:18
I'm using Artifactory OSS 4.1.0 and Java 1.8.0_51. When I try to download one of my local artifacts from the Artifactory web interface, I get this: { "errors" : [ { "status" : 500, "message" : "Could not process download request: Binary provider has no content for 'bab1c4e18f6c5edfb65b2503a388dea2fed0deb8'" } ] } But I found this file in my Artifactory data area: ./files/ba/bab1c4e18f6c5edfb65b2503a388dea2fed0deb8 , and upon further inspection it is the WAR file I tried to download. I've come across other people on the web with the same error message, but their issue was with caching external

Hitting Java web service: curl or URLConnection

感情迁移 提交于 2019-12-05 17:46:50
I am using a Java server that exposes a RESTful API on the following URL: http://localhost:8080/my-server/ The docs recommend using curl for submitting simple PUT requests (file uploads), and strongly recommend users to use the exact same arguments as provided in the examples. All of the examples look like this: curl -X PUT -f -u admin:password --data-binary @/absolute/path/file/to/upload/file.ext "http://localhost:8080/my-server/file.ext" This server will not work with FTP or any other normal transfer protocol. I found this question on SO where the answer-er recommended using java.net.URL and

NPM Install not working with artifactory around proxy

青春壹個敷衍的年華 提交于 2019-12-05 13:40:48
问题 So basically I am trying to download packages from https://registry.npmjs.org/ using npm install, but I am under a proxy. I have set-up a remote repository that will hit (above link) and cache using artifactory, so that I can pull locally, but it does not seem to work. Followed these directions: http://www.jfrog.com/confluence/display/RTF/Npm+Repositories Anyone else experience difficulties with proxy? I have seen many posts on changing config settings, but this is not what I need, I have to

Artifactory is missing android dependencies

半世苍凉 提交于 2019-12-05 12:42:10
Related to Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0) Artifactory ( https://repo.jfrog.org/ ) is missing multiple (all?) Android dependencies affecting (at least) Cordova and React Native builds today. Anyone know what the cause could be, or where an issue can be registered? 来源: https://stackoverflow.com/questions/50564337/artifactory-is-missing-android-dependencies