artifactory

(SBT) How to disable default resolver and only use the company internal resolver?

不问归期 提交于 2019-12-03 06:05:05
问题 We want to use company internal ivy/maven repository (artifactory) to improve the speed of resolving, and downloading the jar files, and also we want to use it to exchange binary jar files between different teams in our organization. I know we can force SBT to go through proxy by setting ~/.repositories with [repositories] local my-ivy-proxy-releases: http://repo.alpinenow.com/artifactory/repo/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-

Best practices in naming conventions on Maven artifactID (is there restriction?)

廉价感情. 提交于 2019-12-03 04:44:12
问题 My team is new to Maven and we haven't been able to find any definitive guidance on selecting artifactIDs for our projects. I know that the Guide to naming conventions says that artifactIDs should be "whatever name you want with lowercase letters and no strange symbols" but some folks in my group want to use the reverse domain name style for both groupIDs and artifactIDs. Based on the above-mentioned guidelines plus all the examples that I've seen in the central repository I don't think it

How do I find the latest version of an artifact from a maven repository

亡梦爱人 提交于 2019-12-03 02:57:29
问题 As part of an automated deployment I need a script to download the latest version of an artifact from our internal repository. Ideally this script will be with ant or a unix shell script. So for example: I have myArtifact.war and it has versions 1.0 , 1.1 and 2.0 - I need the script given the correct group id and artifact id to retrieve version 2.0 from our maven repository (currently using artifactory). Is there any easy way to do this? 回答1: You can parse the maven-metadata.xml to see what

NPM lockfiles/shrinkwrap get random “dl” parameter tacked on to the “resolved” URL

陌路散爱 提交于 2019-12-03 02:39:34
Our company uses an Artifactory repository for storing internally-published packages and as a proxy for the NPM registry. Sometimes the resolved field in lockfiles/shrinkwrap files is as expected, containing URLs for our internal repository, but occasionally they show up as something like this (line break added for clarity): https://our.repository.com/artifactory/api/npm/some-repo/lodash/-/lodash-3.10.1.tgz ?dl=https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz Then, from pull request to pull requests, these dl parameters constantly oscillate to being present or removed depending on which

Could not find metadata in local

拜拜、爱过 提交于 2019-12-03 01:37:44
Locally on the machine i have an Artifactory installed with maven repositories, and i have a very simple .pom file for my project which points to it: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MYGROUP</groupId> <artifactId>NAME</artifactId> <packaging>jar</packaging> <version>VERSION</version> <build> <sourceDirectory>SRCFOLDER</sourceDirectory> <testSourceDirectory>TESTFOLDER<

nexus or artifactory with nuget?

混江龙づ霸主 提交于 2019-12-02 22:29:28
I am trying to introduce decent reference management to my organisation. Having used Nexus with Maven before, I know it to be far superior to the method of building everything locally. As this is a .Net shop I want to use NuGet instead of Maven. I know the binary repository will be the most important bit to get right, but have no experience of hosting a NuGet repository in a binary repository. Is there any reason to favour Nexus or Artifactory in this situation? We are using Jenkins with svn as our CI, if that makes any difference. Yoav Landman This is what we found out last time we compared

How to configure Maven2 to publish to Artifactory?

穿精又带淫゛_ 提交于 2019-12-02 20:45:44
Currently I have a Maven2 project that builds a JAR when you run: mvn clean package I need to now tweak the pom.xml to publish this JAR ( myapp.jar ) to an Artifactory server running at: http://myartifactory/artifactory/simple/myorg/myapp/0.1 I tried adding a <repositories> element to my pom.xml but nothing is being published with this config: <repositories> <repository> <id>myartifactory</id> <url>http://myartifactory/artifactory/simple/</url> </repository> </repositories> Any ideas as to how I could get publishing to work? For simplicity's sake, pretend that this Artifactory repo is

Accessing an Artifactory/Maven Repo that requires basic-auth

一世执手 提交于 2019-12-02 20:33:14
I have an Artifactory repo that sits behind basic authentication. How would I configure the settings.xml to allow access? <mirrors> <mirror> <id>artifactory</id> <mirrorOf>*</mirrorOf> <url>https://myserver.example.com/artifactory/repo</url> <name>Artifactory</name> </mirror> </mirrors> <servers> <!-- This server configuration gives your personal username/password for artifactory. Note that the server id must match that given in the mirrors section. --> <server> <id>Artifactory</id> <username>someArtifactoryUser</username> <password>someArtifactoryPassword</password> </server> So server tag is

Maven: Trying to Deploy with credentials in settings.xml file

淺唱寂寞╮ 提交于 2019-12-02 18:49:17
This seemed to be working last week and now it doesn't. We use Artifactory as our Maven repository. I am deploying a jar and pom using the deploy:deploy-file goal Our Artifactory repository requires authentication to deploy. I can deploy to the repository by embedding my credentials in the server URL on the command line: $ mvn deploy:deploy-file \ -Durl=http://deployer:swordfish@repo.veggiecorp.com/artifactory/ext-release-local \ -Dfile=crypto.jar \ -DpomFile=pom.xml \ -Did=VeggieCorp yadda...yadda...yadda... [INFO] ------------------------------------------------------------------------ [INFO

How do I find the latest version of an artifact from a maven repository

痴心易碎 提交于 2019-12-02 16:45:32
As part of an automated deployment I need a script to download the latest version of an artifact from our internal repository. Ideally this script will be with ant or a unix shell script. So for example: I have myArtifact.war and it has versions 1.0 , 1.1 and 2.0 - I need the script given the correct group id and artifact id to retrieve version 2.0 from our maven repository (currently using artifactory). Is there any easy way to do this? Rich Seller You can parse the maven-metadata.xml to see what versions are available, and which version is the "release" version. See this answer about plugin