artifactory

Configure npm to resolve dependencies using artifactory as proxy for both npm registry and github

女生的网名这么多〃 提交于 2019-12-11 06:03:56
问题 I have a build server with no internet access, and I need to resolve dependencies from both github.com and registry.npmjs.org. The build server has access to Artifactory, so I have created an NPM repo to proxy for registry.npmjs.org and that is working, and I just created a VCS repo to proxy for github.com. How can I configure npm to resolve from both of these? Since the 2 repos are different types, I can't aggregate them into a single virtual repo. Can NPM be configured to resolve

How to host a p2 repository on artifactory oss

a 夏天 提交于 2019-12-11 05:56:33
问题 I know that artifactory oss version does not support hosting p2 repositories natively. Is it hovewer possible to do it somehow without such support? I think you cannot get a pro version for free for open source projects? 回答1: If you want to have p2 or npm repositories natively you need the Artifactory Pro version. There are not option to have a free Artifactory pro version without support for opensource projects. If you don't want to buy Artifactory PRO, there are free alternatives. 来源: https

Jenkins Pipeline Maven Artifactory Plugin Cannot Resolve Artifact From Central Maven Repository

天涯浪子 提交于 2019-12-11 05:01:53
问题 When using a Jenkins Freestyle Project I am able to successfully run a build with Maven using the "Maven3-Artifactory Integration." When trying to use this feature in pipeline I run into issues with resolving artifacts from the central maven repository. I am under the impression that when Jenkins cannot find an artifact in artifactory it should fall back to the central maven repository,https://repo.maven.apache.org/maven2, to look for the artifact. Is this not the case? def server =

Retrieve the latest from a generic repository from artifactory using Curl

我的未来我决定 提交于 2019-12-11 04:46:17
问题 I'm using Artifactory 6.1.0 OSS version. When I try to retrieve the latest zip that is located in a Generic repo, I can't get the file to download. i searched the web and found: [ But It's only relevant for the pro version of Atrifactory. Anyone encounter this problem before? 回答1: You will need to deploy the artifact according to layout, as explained here You just need to do it once for a directory, and subsequently all artifacts in the directory can be downloaded using the -[RELEASE] syntax.

How to change artifactory runtime scope to compile scope?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:19:36
问题 I am working on a project that uses gradle and the jfrog plugin to publish to artifactory. The important code fragments are these: plugins { id "java" id "idea" id "groovy" id "pmd" id "findbugs" id "maven-publish" id "com.jfrog.artifactory" version "3.1.1" } dependencies { compile 'com.google.guava:guava:18.0' compile 'com.mashape.unirest:unirest-java:1.4.5' compile 'log4j:log4j:1.2.14' } artifactory { contextUrl = "https://SOME_SERVER/artifactory" publish { repository { repoKey = 'libs

Apply a gradle plugin with a common configuration to all projects

可紊 提交于 2019-12-11 04:03:31
问题 I have a workspace with multiple unrelated gradle projects. I'm looking for a way to apply the artifactory plugin to all of them with a common configuration. So far, I tried creating this common gradle file, and applying it to each project (top level, not module) using apply from : buildscript { repositories { maven { url 'http://artifactory.mycompany.com/artifactory/plugins-release' } } dependencies { classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1" } } if (!project.plugins

How to send Artifactory publish credentials from buildscript without hardcoding them?

泄露秘密 提交于 2019-12-11 03:37:15
问题 Take this snippet from a Gradle build for instance: repository { repoKey = 'libs-snapshot-local' username = 'whatever' password = 'whatever123' } In the past, I've configured Maven (some setting under ~/.m2 ) to simply pass username/password along. If at all humanly possible I'd like to avoid putting my login credentials for our Artifactory server inside a buildscript. Is there a more secure workaround? 回答1: you can put a gradle.properties file into your ~/.gradle/ folder. In this file you

Publications(s) specified but no publications exist in project :library

随声附和 提交于 2019-12-11 01:38:17
问题 I am trying to upload my Library to JCenter Repository . I followed this tutorial : https://www.virag.si/2015/01/publishing-gradle-android-library-to-jcenter/ My build.gradle for library after running gradlew bintrayUpload command. apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // This is the library version used when deploying the artifact version = "1.0.0" android { compileSdkVersion 22 buildToolsVersion "22.0.1"

Artifactory: symlink or aliasing an Artifact URL?

流过昼夜 提交于 2019-12-11 00:50:06
问题 I realize that the Artifactory support team reads these SO posts, so my question is either a regular question or a feature request. I want to programmatically update various artifacts and when my operations complete (copies, writes, moves, deletes), create an alias/symlink to the new/updated artifact URLs. For example, I would like to have a "latest" link which always points to the latest build for a number of different artifacts: Java, yum, Python and generic binaries, that is, native

SBT not passing credentials when publishing to Artifactory

谁说我不能喝 提交于 2019-12-10 22:22:44
问题 I am coding a Java project and I'm automating the build and the publishing to JFrog Artifactory using SBT. Whenever it's time to publish to Artifactory I want to do it using the Ivy directory layout and obviously publish the Ivy XML file along with the jar. I managed to achieve this by using the following lines in the build.sbt file: crossPaths := false publishTo := Some("Artifactory Realm" at "http://<Artifactory IP>:<Artifactory Port>/artifactory/org.project.my") credentials += Credentials