artifactory

Problems with CATALINA_PID and ARTIFACTORY_PID while upgrading Artifactory to the latest version

元气小坏坏 提交于 2019-12-23 12:15:28
问题 While upgrading my Artifactory server (free OSS version) from the version 5.2.0 to the latest 5.4.5, I was hit by an ARTIFACTORY_PID problem. After migrating from 5.3.2 to 5.4.0, the Artifactory server did not want to start anymore complaining about PID file /var/opt/jfrog/run/artifactory.pid not readable (yet?) after start. I found the only way around it is to remove the line export CATALINA_PID=$ARTIFACTORY_PID from the setenv.sh of the tomcat. Note that upgrade from 5.2.0 to 5.3.2 went

How to use the internet for maven builds instead, if the corporate maven repository is offline or down?

两盒软妹~` 提交于 2019-12-23 05:34:06
问题 I have a corporate repository defined in my POM: <distributionManagement> <repository> <id>central</id> <name>libs-release-local</name> <url>http://bi-pub.wgresorts.com:8081/artifactory/libs-release-local</url> </repository> <snapshotRepository> <id>snapshots</id> <name>libs-snapshot-local</name> <url>http://bi-pub.wgresorts.com:8081/artifactory/libs-snapshot-local</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> But they keep unplugging and moving or

Configuring Intellij IDEA 15.0.4 and SBT 0.13.7 with local Artifactory server

别来无恙 提交于 2019-12-23 02:03:15
问题 I installed Intellij IDEA 15.0.4 + Scala plugin (2.2.0) on a computer with an internet connection, created a new SBT project and all the external dependencies were added to the project: i.stack.imgur.com/v560H.png However, when I try to do the same thing in our issolated network (no internet) against our Artifactory server, I got the following message: Error:Error while importing SBT project: ... http://zzz:8081/artifactory/scala_local/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar ::::::::::

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

☆樱花仙子☆ 提交于 2019-12-22 15:36:30
问题 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'. >

Getting a jar along with its sources and javadoc

天大地大妈咪最大 提交于 2019-12-22 10:58:52
问题 With the following in ivy.xml : <dependency org="com.amazonaws" name="aws-java-sdk" rev="1.4.5"> <artifact name="aws-java-sdk" ext="jar"/> </dependency> It downloads aws-java-sdk-1.4.5.jar and this is the AWS SDK, i.e. classes. That's fine but I'd also like to get the Javadoc and sources. Following advice from Ivy: Fetching Javadocs and Sources I put the following in ivy.xml <configurations> <conf name="default" /> <conf name="compile" visibility="public"/> <conf name="sources" visibility=

Artifactory AQL download artifact

江枫思渺然 提交于 2019-12-21 23:19:13
问题 Is there a way to download an artifact using AQL? I have a query sent with: curl -u user:pass \ -X POST https://artifactoryURL/artifactory/api/search/aql \ -H 'content-type: text/plain' \ -T query.aql And my query.aql : items.find( { "repo":{"$eq":"repo"}, "$and": [ { "path": { "$match": "path/*"}, "name": { "$match": "*.rpm"} } ] } ) .sort({ "$desc": ["modified"] }) .limit(1) Now that I know it returns what I want, Is there a way to change the request from api/search/aql to something like

npm publish to Artifactory not working

北城余情 提交于 2019-12-21 22:14:12
问题 I have setup Artifactory according to the instructions given here, http://www.jfrog.com/confluence/display/RTF/Npm+Repositories, but on publishing a package the following is displayed: npm http PUT http://localhost:8083/artifactory/api/npm/npm-local/UIBase npm http 400 http://localhost:8083/artifactory/api/npm/npm-local/UIBase npm ERR! registry error parsing json npm ERR! publish Failed PUT response 400 npm ERR! SyntaxError: Unexpected token M npm ERR! Missing attachments with tarball data,

Should Artifactory NOT be used to capture the build artifacts that Jenkins produces?

心已入冬 提交于 2019-12-21 20:41:36
问题 We use Jenkins to run continuous integration builds. The output of these builds might be an EAR file, a WAR file, or a collection of files that are TAR'd up that get deployed to an upstream environment. To this point we have used Jenkins to manage the produced artifacts. However, we have Artifactory deployed in-house. Would it be a bad idea to leverage Artifactory to capture the produced artifacts? If so, why? e.g is Artifactory only meant to hold JARs with versions that can be pulled into

Artifactory delete all artifacts older than 6 months

南楼画角 提交于 2019-12-21 18:34:12
问题 How would you delete all artifacts that match a pattern (e.g older than 6 months old) from artifactory? Using either curl, or the go library 回答1: The jfrog cli takes a 'spec file' to search for artifacts. See here for information on jfrog spec files The jfrog cli documentation is available here: Create an aql search query to find just the artifacts you want: If your aql search syntax were like: /tmp/foo.query items.find( { "repo":"foobar", "modified" : { "$lt" : "2016-10-18T21:26:52.000Z" } }

Is it good idea to store python package eggs in artifactory?

随声附和 提交于 2019-12-21 17:09:37
问题 Currently I am developing automated test framework. This test-framework has different packages. These packages will be refer in different project and these may be modified locally by the developer. I want to manage the python package eggs. I am thinking of using Artifactory. I tried to look for Artifactory help for Python,But I couldn't get anything useful. should I use Artifactory or PIP ? Edit: Is there any way or command in python which can help me to put the eggs in artifactory? 回答1: