简体   繁体   English

maven在神器中解决“SNAPSHOT”

[英]maven resolve “SNAPSHOT” in artifactory

I've got a teamcity project that successfully deploys SNAPSHOT artifacts to our artifactory instance. 我有一个teamcity项目,成功地将SNAPSHOT工件部署到我们的artifactory实例。 I can't seem to get maven to pull the artifacts back down. 我似乎无法让maven将文物拉回来。 I can see them in the artifactory with timestamps instead of SNAPSHOT, but I can't seem to get maven to request them using the timestamp. 我可以在带有时间戳而不是SNAPSHOT的神器中看到它们,但我似乎无法让maven使用时间戳请求它们。 I don't really know where I should be looking. 我真的不知道我应该在哪里看。 I noticed that the teamcity-uploaded artifacts don't have a maven-metadata.xml whereas other, manually uploaded artifacts have maven-metadata.xml and a .pom . 我注意到teamcity上传的工件没有maven-metadata.xml而其他手动上传的工件有maven-metadata.xml.pom Is this related? 这有关系吗?

I have tried many times to delete ~/.m2/repository , so it's not a caching issue. 我已多次尝试删除~/.m2/repository ,因此它不是缓存问题。

Here's a snippet from ~/.m2/settings.xml : 这是~/.m2/settings.xml的片段:

    <repository>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>snapshots</id>
      <name>libs-snapshot</name>
      <url>http://host:port/artifactory/libs-snapshot</url>
    </repository>

I have also tried libs-snapshot-local and <snapshots /> 我也尝试过libs-snapshot-local<snapshots />

EDIT1 : I have tried with -U 编辑1 :我尝试过-U

EDIT2 : maven says it tried to download maven-metadata.xml then artifactId-version-SNAPSHOT.pom then artifactId-version-SNAPSHOT-classifier.jar EDIT2 :maven说它试图下载maven-metadata.xml然后是artifactId-version-SNAPSHOT.pom然后是artifactId-version-SNAPSHOT-classifier.jar

EDIT3 : artifactory trace: EDIT3 :神器痕迹:

Request ID: d888c3d2
Repo Path ID: libs-snapshot:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
Method Name: GET
User: jayen
Time: 2014-01-08T08:37:30.642+11:00
Thread: http-bio-8180-exec-3311
Steps: 
2014-01-08T08:37:30.642+11:00 Received request
2014-01-08T08:37:30.642+11:00 Request source = 192.168.16.146, Last modified = 01-01-70 09:59:59 EST, If modified since = -1, Thread name = http-bio-8180-exec-3311
2014-01-08T08:37:30.642+11:00 Retrieving info
2014-01-08T08:37:30.642+11:00 Consulting the virtual repo download strategy
2014-01-08T08:37:30.642+11:00 Trying to retrieve resource info from the local storage
2014-01-08T08:37:30.643+11:00 Unable to find resource in libs-snapshot:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
2014-01-08T08:37:30.643+11:00 Searching for info in aggregated repositories
2014-01-08T08:37:30.643+11:00 Preparing list of aggregated repositories to search in
2014-01-08T08:37:30.643+11:00 Appending the virtual repository 'libs-snapshot'
2014-01-08T08:37:30.643+11:00 Appending the virtual repository 'libs-snapshot'
2014-01-08T08:37:30.643+11:00 Appending the virtual repository 'libs-snapshot'
2014-01-08T08:37:30.644+11:00 Appending collective local repositories
2014-01-08T08:37:30.644+11:00 Appending collective local cache repositories
2014-01-08T08:37:30.644+11:00 Appending collective remote repositories
2014-01-08T08:37:30.644+11:00 Intercepting info request with 'PomInterceptor'
2014-01-08T08:37:30.644+11:00 Intercepting info request with 'MavenMetadataInterceptor'
2014-01-08T08:37:30.644+11:00 Processing request as a snapshot resource (Module info validity = false, Module info identified as integration = false, Path identified as Maven snapshot = true)
2014-01-08T08:37:30.644+11:00 Searching for the resource within libs-snapshot-local
2014-01-08T08:37:30.644+11:00 Resource was found in the local repo 'libs-snapshot-local' = false, Repo is remote and doesn't sync properties = false
2014-01-08T08:37:30.645+11:00 Unable to find resource in libs-snapshot-local:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
2014-01-08T08:37:30.645+11:00 Searching for the resource within ext-snapshot-local
2014-01-08T08:37:30.645+11:00 Resource was found in the local repo 'ext-snapshot-local' = false, Repo is remote and doesn't sync properties = false
2014-01-08T08:37:30.646+11:00 Unable to find resource in ext-snapshot-local:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
2014-01-08T08:37:30.646+11:00 Searching for the resource within jcenter-cache
2014-01-08T08:37:30.646+11:00 jcenter-cache doesn't handle snapshot resources
2014-01-08T08:37:30.646+11:00 Skipping jcenter-cache
2014-01-08T08:37:30.646+11:00 Searching for the resource within codehaus-cache
2014-01-08T08:37:30.646+11:00 codehaus-cache doesn't handle snapshot resources
2014-01-08T08:37:30.646+11:00 Skipping codehaus-cache
2014-01-08T08:37:30.646+11:00 Searching for the resource within jboss-cache
2014-01-08T08:37:30.646+11:00 jboss-cache doesn't handle snapshot resources
2014-01-08T08:37:30.646+11:00 Skipping jboss-cache
2014-01-08T08:37:30.646+11:00 Searching for the resource within java.net.m2-cache
2014-01-08T08:37:30.646+11:00 Resource was found in the local repo 'java.net.m2-cache' = false, Repo is remote and doesn't sync properties = false
2014-01-08T08:37:30.647+11:00 Unable to find resource in java.net.m2-cache:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
2014-01-08T08:37:30.647+11:00 Searching for the resource within java.net.m1-cache
2014-01-08T08:37:30.647+11:00 Resource was found in the local repo 'java.net.m1-cache' = false, Repo is remote and doesn't sync properties = false
2014-01-08T08:37:30.648+11:00 Unable to find resource in java.net.m1-cache:orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar
2014-01-08T08:37:30.648+11:00 Searching for the resource within repo1-cache
2014-01-08T08:37:30.648+11:00 repo1-cache doesn't handle snapshot resources
2014-01-08T08:37:30.648+11:00 Skipping repo1-cache
2014-01-08T08:37:30.648+11:00 Searching for the resource within jfrog-libs-cache
2014-01-08T08:37:30.648+11:00 jfrog-libs-cache doesn't handle snapshot resources
2014-01-08T08:37:30.648+11:00 Skipping jfrog-libs-cache
2014-01-08T08:37:30.648+11:00 Searching for the resource within jfrog-plugins-cache
2014-01-08T08:37:30.648+11:00 jfrog-plugins-cache doesn't handle snapshot resources
2014-01-08T08:37:30.648+11:00 Skipping jfrog-plugins-cache
2014-01-08T08:37:30.648+11:00 Searching for the resource within spring-milestone-cache
2014-01-08T08:37:30.648+11:00 spring-milestone-cache doesn't handle snapshot resources
2014-01-08T08:37:30.648+11:00 Skipping spring-milestone-cache
2014-01-08T08:37:30.648+11:00 Searching for the resource within spring-release-cache
2014-01-08T08:37:30.649+11:00 spring-release-cache doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping spring-release-cache
2014-01-08T08:37:30.649+11:00 Searching for the resource within google-code-cache
2014-01-08T08:37:30.649+11:00 google-code-cache doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping google-code-cache
2014-01-08T08:37:30.649+11:00 Searching for the resource within gradle-libs-cache
2014-01-08T08:37:30.649+11:00 gradle-libs-cache doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping gradle-libs-cache
2014-01-08T08:37:30.649+11:00 Searching for the resource within gradle-plugins-cache
2014-01-08T08:37:30.649+11:00 gradle-plugins-cache doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping gradle-plugins-cache
2014-01-08T08:37:30.649+11:00 Searching for the resource within jcenter
2014-01-08T08:37:30.649+11:00 jcenter doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping jcenter
2014-01-08T08:37:30.649+11:00 Searching for the resource within codehaus
2014-01-08T08:37:30.649+11:00 codehaus doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping codehaus
2014-01-08T08:37:30.649+11:00 Searching for the resource within jboss
2014-01-08T08:37:30.649+11:00 jboss doesn't handle snapshot resources
2014-01-08T08:37:30.649+11:00 Skipping jboss
2014-01-08T08:37:30.649+11:00 Searching for the resource within java.net.m2
2014-01-08T08:37:30.649+11:00 Resource was found in the local repo 'java.net.m2' = false, Repo is remote and doesn't sync properties = true
2014-01-08T08:37:30.651+11:00 Searching for the resource within java.net.m1
2014-01-08T08:37:30.651+11:00 Resource was found in the local repo 'java.net.m1' = false, Repo is remote and doesn't sync properties = true
2014-01-08T08:37:30.653+11:00 Searching for the resource within repo1
2014-01-08T08:37:30.653+11:00 repo1 doesn't handle snapshot resources
2014-01-08T08:37:30.653+11:00 Skipping repo1
2014-01-08T08:37:30.653+11:00 Searching for the resource within jfrog-libs
2014-01-08T08:37:30.653+11:00 jfrog-libs doesn't handle snapshot resources
2014-01-08T08:37:30.653+11:00 Skipping jfrog-libs
2014-01-08T08:37:30.653+11:00 Searching for the resource within jfrog-plugins
2014-01-08T08:37:30.653+11:00 jfrog-plugins doesn't handle snapshot resources
2014-01-08T08:37:30.653+11:00 Skipping jfrog-plugins
2014-01-08T08:37:30.653+11:00 Searching for the resource within spring-milestone
2014-01-08T08:37:30.654+11:00 spring-milestone doesn't handle snapshot resources
2014-01-08T08:37:30.654+11:00 Skipping spring-milestone
2014-01-08T08:37:30.654+11:00 Searching for the resource within spring-release
2014-01-08T08:37:30.654+11:00 spring-release doesn't handle snapshot resources
2014-01-08T08:37:30.655+11:00 Skipping spring-release
2014-01-08T08:37:30.655+11:00 Searching for the resource within google-code
2014-01-08T08:37:30.655+11:00 google-code doesn't handle snapshot resources
2014-01-08T08:37:30.655+11:00 Skipping google-code
2014-01-08T08:37:30.655+11:00 Searching for the resource within gradle-libs
2014-01-08T08:37:30.655+11:00 gradle-libs doesn't handle snapshot resources
2014-01-08T08:37:30.655+11:00 Skipping gradle-libs
2014-01-08T08:37:30.655+11:00 Searching for the resource within gradle-plugins
2014-01-08T08:37:30.655+11:00 gradle-plugins doesn't handle snapshot resources
2014-01-08T08:37:30.655+11:00 Skipping gradle-plugins
2014-01-08T08:37:30.655+11:00 Returning an unfound resource
2014-01-08T08:37:30.655+11:00 Requested resource is found = false
2014-01-08T08:37:30.655+11:00 Request is HEAD = false
2014-01-08T08:37:30.655+11:00 Request is for a checksum = false
2014-01-08T08:37:30.655+11:00 Target repository is not remote or doesn't store locally = true
2014-01-08T08:37:30.655+11:00 Requested resource was not modified = false
2014-01-08T08:37:30.656+11:00 Responding with unfound resource
2014-01-08T08:37:30.656+11:00 Setting default response status to '404' reason to 'Resource not found'
2014-01-08T08:37:30.656+11:00 Response is an instance of UnfoundRepoResourceReason
2014-01-08T08:37:30.656+11:00 Configured to hide un-authorized resources = false
2014-01-08T08:37:30.656+11:00 Original response status is auth related = false
2014-01-08T08:37:30.656+11:00 Using original response status of '404' and message 'Artifact not found: orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar'
2014-01-08T08:37:30.656+11:00 Sending error with status 404 and message 'Artifact not found: orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar'
2014-01-08T08:37:30.657+11:00 Executing any AfterDownloadErrorAction user plugins that may exist
2014-01-08T08:37:30.657+11:00 Response code wasn't modified by the user plugins
2014-01-08T08:37:30.657+11:00 Sending response with the status '404' and the message 'Artifact not found: orgPath/artifactId/version-SNAPSHOT/artifactId-version-SNAPSHOT-classifier.jar'
2014-01-08T08:37:30.657+11:00 Request failed with no exception

需要告诉Artifactory Teamcity插件使用.jar上传.pom

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从工件下载最新的Maven快照 - Download last maven snapshot from artifactory 将快照版本存储在 maven 应用程序的 Artifactory 中是最佳做法吗? - Is it best practise to store snapshot versions in Artifactory in maven applications? 将快照 JAR 发布到 Artifactory Maven 存储库部署失败 - Publishing a snapshot JAR to Artifactory Maven repository fails to deploy Maven 部署插件替换 Artifactory 中现有的快照 Jar - Maven Deploy Plugin Replace the Existing SnapShot Jar in Artifactory Maven无法解析SNAPSHOT依赖项 - Maven can't resolve a SNAPSHOT dependency Maven 无法解析正确的 SNAPSHOT 依赖项 - Maven does not resolve correct SNAPSHOT dependencies artifactory-maven-plugin:如何在不使用settings.xml的情况下解决来自私有Artifactory的依赖关系 - artifactory-maven-plugin: How to resolve dependencies from private Artifactory without settings.xml Maven无法解决项目的依赖关系,无法在Nexus中找到快照 - Maven Could not resolve dependencies for project, Failure to find snapshot in Nexus Maven在带有第三方库的JFrog工件(snapshot-repo)中找不到jar文件 - maven can't find jar file in JFrog artifactory (snapshot-repo) with third-party libs Artifactory Jenkins插件上传的POM文件在Maven版本中无法解析 - POM file Uploaded by Artifactory Jenkins plugin won't resolve in Maven builds
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM