artifactory

Share jar of the module with another team

泪湿孤枕 提交于 2019-12-11 13:43:44
问题 I am new to maven and trying to figure out how to share the jar file of the module with our another team. They are developing another module and their module depends on our module. Will it be the best solution to setup 3rd party maven remote repository ? What will be the correct tools for this? We use Hudson to manage our integration environment build. And I started looking into Artifactory and Artifactory plugin for Hudson. Is it correct approach? Thanks. 回答1: There are 3 main Maven

Getting “Target Repository Cannot be Empty” For Jenkins Artifactory Plugin on Slave

主宰稳场 提交于 2019-12-11 13:24:11
问题 We are currently utilizing the Jenkins Artifactory Plugin to push our artifacts to Artifactory, and everything is working well on the master Jenkins Node. One thing we do in ALL of our builds is: we specify the target repository IN THE BUILD SCRIPT based on the version of the build (i.e. if the project version contains SNAPSHOT, put the builds somewhere else). This has worked without issues, even without explicitly setting the target repo as in the picture below: On the master node, leaving

How do I use Artifactory to mirror linux distributions?

落爺英雄遲暮 提交于 2019-12-11 13:13:14
问题 I configured external yum and apt repositories for Artifactory, for CentOS, Debian and Ubuntu and it seems as working but Artifactory does not cache/mirror them in advance. It seems that the artifacts are cached the first time they are requested and I do want to be sure that I pre-cache them. I imagined that this would be done by replication option but somehow it seems that this option require an Artifactory server on the other side, which I obviously do not have as these are just public http

How to debug HTTP Proxy problems with artifactory?

情到浓时终转凉″ 提交于 2019-12-11 12:35:21
问题 I have an artifactory within a corporate network. I configured a http proxy for each remote repository. It doesn't work. How could I possibly find out why it doesn't work? Are there any log settings which I could tweak? Using the same proxy within Firefox works just fine. 回答1: Artifactory 2 uses logback for logging, you can find its configuration in $ARTIFACTORY_HOME/etc/logback.xml If you can access the repository through the browser, it's likely the problem is in your Maven configuration.

user friendly artifact procurement in maven

柔情痞子 提交于 2019-12-11 12:09:00
问题 We need convention about libraries and frameworks we use in our team. It will be best if we just type somewhere something like "allowed to use org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3" and then this dependency and all transitive dependencies is allowed automatically. Which repository and which capability supports it? I try procurement capability of nexus, but it works with already loaded artifacts and not allows/disallows transitive dependencies(IMHO nexus procurement implementation is

Gradle never resolves Artifactory before JCenter repository for dependencies

不羁岁月 提交于 2019-12-11 10:27:26
问题 I have a Gradle build script for a Java project. I have set up an internal Artifactory repository as a remote for the project's dependencies. When the project is compiling, I want Gradle to first go to Artifactory and request; if it fails there, it should next try JCenter as a backup. I am using the Gradle Artifactory plugin, v3.1.1, in Gradle 2.8. The plugin defines its contextUrl , publish repo, and resolve repo in a closure: artifactory { contextUrl = "${artifactoryContextUrl}" publish {

artifactory 6.8.7 won't start as can't connect to access server

落爺英雄遲暮 提交于 2019-12-11 10:19:18
问题 Since upgrading to 6.8.7 using the rpm on RHEL 7, using systemctl start artifactory fails Looking in the log its failing at this point 2019-03-16 09:50:28,952 [art-init] [INFO ] (o.a.s.a.ArtifactoryAccessClientConfigStore:593) - Using Access Server URL: http://localhost:8040/access (bundled) source: detected 2019-03-16 09:50:29,379 [art-init] [INFO ] (o.a.s.a.AccessServiceImpl:353) - Waiting for access server... 2019-03-16 09:50:30,625 [art-init] [WARN ] (o.j.a.c.AccessClientHttpException:41)

Resolve Ivy dependency version order

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:11:49
问题 In my build artifact repository, I have builds from both a branch and a trunk. I have tested that my resolve works to the branch, and grabs the correct item. But this doesn't work if the dependency is also in the trunk repo. In this case it grabs the dependency from the trunk and not my branch. I need resolve to pull a dependency from the trunk repo if it's not in the branch, but if the dependency is in the branch, I need the branch version, not the trunk version. How can I do this in Ivy? I

Artifactory - Use Jenkins Pipeline script to upload

早过忘川 提交于 2019-12-11 07:42:22
问题 I'm trying to upload some binaries to Artifactory by using Jenkins Pipeline script. I used the same exemple from Artifactory documentation, but it doesn't work. I had the following error: hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.lang.String.upload() is applicable for argument types: (java.lang.String) values: [{ "files": [ .... There is another similar question but there is no response... pipeline { agent any environment { def server =

publishing to Artifactory from Jenkins Pipeline

萝らか妹 提交于 2019-12-11 06:08:23
问题 I'm trying to publish to an Artifactory (v4.5.1) instance using a Jenkins(v2.7) pipeline. An excerpt from my script is below. Problem seems to be that the "Artifactory" object is not recognized and is treated as a string. Can someone suggest what the problem might be? node { //error - "Artifactory" treated as String def server = Artifactory.server SERVER_ID def uploadSpec = """{ "files": [ { "pattern": "hello-pipeline/build/libs/*.jar", "target": "jenkins-local" } ] }""" def buildInfo1 =