artifactory

Artifactory returns HTTP 302 when accessing virtual repository URL

允我心安 提交于 2019-12-10 18:57:56
问题 I am facing a problem with Artifactory v3.9.5 resolving artifacts. I have the following setup: local repository called "gradle-snaphot" allowed for snapshots virtual repository called "repos" that includes "gradle-snapshot" an artifact X uploaded to "gradle-snapshot" Now, when I try to get the artifact directly, it works fine (credantials passed but omitted here): wget http://myrepo/artifactory/gradle-snapshot/x/SNAPSHOT/maven-metadata.xml?trace But when I try to get the artifact via the

Can Nexus/Artifactory store a copy of an internet Maven artifact?

自古美人都是妖i 提交于 2019-12-10 17:32:51
问题 I would like to have Nexus (or Artifactory, we're not decided yet) store a copy of an artifact when it is downloaded from a public repository on the internet (like Maven Central). Basically, if you don't have the jar in your local repo and the repo manager doesn't have it either, I want to ask the repo manager for the jar, have it send it to me, and store it both in the repo manager and in my local repo. Then, when another person asks the repo manager for the same jar, it sends it to them

Maven Could not resolve dependencies (Return code is: 409 , ReasonPhrase:Conflict)

匆匆过客 提交于 2019-12-10 17:17:18
问题 Failed to execute goal on project lcms.web: Could not resolve dependencies for project lcms:lcms.web:war:0.0.1-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.9 (test), org.springframework:spring-web:jar:4.2.4.RELEASE (compile), org.springframework:spring-webmvc:jar:4.2.4.RELEASE (compile), commons-logging:commons-logging:jar:1.1.1 (compile), org.springframework.security:spring-security-web:jar:4.0.3.RELEASE (compile), org.springframework.security:spring-security-config:jar:4

“peer not authenticated ” error in Artifactory plugin - Jenkins

╄→гoц情女王★ 提交于 2019-12-10 16:47:01
问题 I am using Jenkins version 1.566 and Artifactory plugin version 2.2.2. I am running artifactory 2.66 in its own jetty container. It was running as http but recently I changed it to https. Now if I change the artifactory server url in Jenkins configuration from http to https and port 8443, I get the error: "Error occurred while requesting version information: peer not authenticated" If I go to https url and login using the same user name and password am successful. Why is this error happening

maven2 - how to list all resources repository url from pom file

╄→尐↘猪︶ㄣ 提交于 2019-12-10 15:59:06
问题 I'm looking for something like this: List<URL> urls = listURLFromPOM("c:\pom.xml"); .. http://repo1.maven.org/maven2/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar http://repo1.maven.org/maven2/org/apache/camel/camel-activemq/1.1.0/camel-activemq-1.1.0.jar ... 回答1: You can use the Maven Dependency Plugin to analyze the dependencies of you POM. mvn dependency:list -DoutputAbsoluteArtifactFilename=true -DoutputFile=dependencies.txt 回答2: A dependency is not aware of its "source repository

Dependencies and lastest.release

谁说我不能喝 提交于 2019-12-10 10:58:52
问题 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,

Setting up sbt to publish to artifactory based on git branch

大兔子大兔子 提交于 2019-12-10 03:36:49
问题 I would like to set up an sbt project so that it can publish to the proper artifactory repository based on the (git) branch. The solution proposed for this question suggests to hardcode the repository in the build.sbt file. However, I would like the master branch to publish to "releases", and another branch to publish to "snapshots", using the same build.sbt file. Ideally, I would like the following: val gitBranch = taskKey[String]("Determines current git branch") gitBranch := Process("git

Context URL cannot be empty - Artifactory Gradle Plugin

萝らか妹 提交于 2019-12-10 03:36:41
问题 I'm trying to get to the Artifactory Gradle plugin working to publish to my local Artifactory instance. I have the latest version (default install) running at localhost:8081/artifactory. I can verify this with access via a webbrowser. However, with my bare minimum example .. I am getting a " Context URL cannot be found error Note that I have specified all the mandatory required Artifactory configurations settings - (as indicated on the Artifactory Gradle WebPage) .. including the Context URL.

Putting Artifactory behind SSL

纵饮孤独 提交于 2019-12-09 18:22:25
问题 I manually installed Artifactory(V 2.6) on my centos and am using it with its own standalone jetty container. I use artifactoryctl start to start it and now I can access it using http://myhostname:8081/artifactory . What is the best and easy way to put this behind https now? Note: It will be nice if I can have both http and https access. Any help is appreciated. Thanks 回答1: Please upgrade to the latest Artifactory version. Starting Artifactory 3, it comes with embedded Tomcat, please refer to

Is it possible to have multiple repos in a resolve closure for the Artifactory Gradle plugin?

依然范特西╮ 提交于 2019-12-09 16:13:58
问题 I have not been able to resolve against two repositories (ext-releases-local and repo1-cache) on one Artifactory server. My build seems to only resolve against the last repository in the list and ignore the first one. Basically, I have my project's dependencies in ext-releases-local, and their transitive dependencies can be found in the remote repository called repo1-cache. So I need to resolve against both using the Artifactory Gradle plugin. Here is the setup that I have tried in my build