小怪兽爱吃肉
我能够找出问题的原因使用有帮助的?trace作为curl -v -u 'user:password' 'https://artifactory.secret.com/artifactory/libs-release/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom?trace'我能够获得以下日志Request ID: 9f425b1cRepo Path ID: libs-release:org/apache/geronimo/specs/specs/1.1/specs-1.1.pomMethod Name: GETTime: 2019-09-05T15:41:07.877ZSteps: 2019-09-05T15:41:07.877Z Received request2019-09-05T15:41:07.877Z Executing any BeforeDownloadRequest user plugins that may exist2019-09-05T15:41:07.877Z Retrieving info from virtual repository 'libs-release' type Maven2019-09-05T15:41:07.877Z Consulting the virtual repo download strategy2019-09-05T15:41:07.877Z Trying to retrieve resource info from the local storage2019-09-05T15:41:07.879Z Unable to find resource in libs-release:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.879Z Intercepting cached virtual resource with 'MavenMetadataInterceptor'2019-09-05T15:41:07.879Z Intercepting cached virtual resource with 'PomInterceptor'2019-09-05T15:41:07.879Z Searching for info in aggregated repositories2019-09-05T15:41:07.879Z Preparing list of aggregated repositories to search in2019-09-05T15:41:07.879Z Appending the nested virtual repository 'libs-release'2019-09-05T15:41:07.879Z Appending collective local repositories2019-09-05T15:41:07.879Z Appending collective local cache repositories2019-09-05T15:41:07.879Z Appending collective remote repositories2019-09-05T15:41:07.879Z Appending collective remote repositories2019-09-05T15:41:07.879Z Appending collective remote repositories2019-09-05T15:41:07.879Z Appending collective remote repositories2019-09-05T15:41:07.879Z Appending collective remote repositories2019-09-05T15:41:07.879Z Intercepting info request with 'MavenMetadataInterceptor'2019-09-05T15:41:07.879Z Intercepting info request with 'PomInterceptor'2019-09-05T15:41:07.879Z Processing request as a release resource2019-09-05T15:41:07.879Z Searching for the resource within libs-release-local2019-09-05T15:41:07.879Z Unable to find resource in libs-release-local:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.879Z Searching for the resource within central-cache2019-09-05T15:41:07.880Z Unable to find resource in central-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.880Z Searching for the resource within repository.spring.milestone-cache2019-09-05T15:41:07.881Z Unable to find resource in repository.spring.milestone-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.881Z Searching for the resource within jcenter-cache2019-09-05T15:41:07.881Z Unable to find resource in jcenter-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.881Z Searching for the resource within jboss-cache2019-09-05T15:41:07.882Z Unable to find resource in jboss-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.882Z Searching for the resource within rabbit-milestone-cache2019-09-05T15:41:07.882Z Unable to find resource in rabbit-milestone-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.882Z Searching for the resource within central2019-09-05T15:41:07.883Z Unable to find resource in central-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.883Z Executing any AltRemotePath user plugins that may exist2019-09-05T15:41:07.883Z Appending matrix params to remote request URL2019-09-05T15:41:07.883Z Using remote request URL - https://repo.maven.apache.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.883Z Executing HEAD request to https://repo.maven.apache.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.906Z Found remote resource with last modified time - Wed Jun 28 09:19:33 UTC 20062019-09-05T15:41:07.906Z Found remote resource with ETag - "9bef270e593bf6dcc37a4e3014b5f94a"2019-09-05T15:41:07.906Z Found remote resource with content length - 134522019-09-05T15:41:07.913Z Found remote resource with checksums - [ChecksumInfo{type=SHA-1, original='5274e75bb357203fbc61c529b7bfc174357dbff8', actual='null'}, ChecksumInfo{type=MD5, original='9bef270e593bf6dcc37a4e3014b5f94a', actual='null'}]2019-09-05T15:41:07.913Z Returning found remote resource info2019-09-05T15:41:07.913Z Resource was found in central2019-09-05T15:41:07.913Z Resource is an exact match - returning2019-09-05T15:41:07.913Z Returning resource as found in the aggregated repositories2019-09-05T15:41:07.913Z Intercepting found resource with 'MavenMetadataInterceptor'2019-09-05T15:41:07.913Z Intercepting found resource with 'PomInterceptor'2019-09-05T15:41:07.913Z The requested resource isn't pre-resolved2019-09-05T15:41:07.913Z Target repository isn't virtual - verifying that downloading is allowed2019-09-05T15:41:07.913Z Creating a resource handle from 'central'2019-09-05T15:41:07.913Z Target repository is configured to retain artifacts locally - resource will be stored and the streamed to the user2019-09-05T15:41:07.913Z Remote repository is online2019-09-05T15:41:07.914Z Unable to find resource in central-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.914Z Found expired cached resource but remote is newer = false. Cached resource: 0, Remote resource: 11514863730002019-09-05T15:41:07.914Z Force expiration on the cached resource = false2019-09-05T15:41:07.914Z Resource isn't cached and isn't expired = true2019-09-05T15:41:07.914Z Asserting valid deployment path2019-09-05T15:41:07.915Z Creating a resource handle from 'central-cache:org/apache/geronimo/specs/specs/1.1/specs-1.1.pom'2019-09-05T15:41:07.915Z Unable to find the resource - throwing exception2019-09-05T15:41:07.916Z Unable to find cached resource stream handle, continuing with actual remote download.2019-09-05T15:41:07.916Z Found no cached resource - starting download2019-09-05T15:41:07.916Z Downloading and saving2019-09-05T15:41:07.916Z Eager source JAR fetching enabled = true2019-09-05T15:41:07.916Z Eager JAR fetching enabled = false2019-09-05T15:41:07.916Z Valid Maven artifact info = true2019-09-05T15:41:07.916Z Artifact has classifier = false2019-09-05T15:41:07.916Z Eager JAR and source JAR fetching is not attempted2019-09-05T15:41:07.916Z Remote property synchronization enabled = false2019-09-05T15:41:07.916Z Received remote checksums headers - [ChecksumInfo{type=SHA-1, original='5274e75bb357203fbc61c529b7bfc174357dbff8', actual='null'}, ChecksumInfo{type=MD5, original='9bef270e593bf6dcc37a4e3014b5f94a', actual='null'}]2019-09-05T15:41:07.916Z Executing any AltRemoteContent user plugins that may exist2019-09-05T15:41:07.916Z Received no alternative content handle from a user plugin2019-09-05T15:41:07.916Z Received no alternative content, received remote checksums headers and searching for existing resources on download is enabled2019-09-05T15:41:07.916Z Searching for existing resource with SHA-1 '5274e75bb357203fbc61c529b7bfc174357dbff8'2019-09-05T15:41:07.916Z Received no alternative content or existing resource - downloading resource2019-09-05T15:41:07.916Z Appending matrix params to remote request URL2019-09-05T15:41:07.916Z Using remote request URL - https://repo.maven.apache.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.916Z Executing any BeforeRemoteDownload user plugins that may exist2019-09-05T15:41:07.916Z Executing GET request to https://repo.maven.apache.org/maven2/org/apache/geronimo/specs/specs/1.1/specs-1.1.pom2019-09-05T15:41:07.919Z Downloading content2019-09-05T15:41:07.919Z Saving resource to central-cache2019-09-05T15:41:07.975Z Failed to download: Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .2019-09-05T15:41:07.975Z Executing any AfterRemoteDownload user plugins that may exist2019-09-05T15:41:07.975Z Executed all AfterRemoteDownload user plugins2019-09-05T15:41:07.975Z Error occurred while downloading artifact: Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .2019-09-05T15:41:07.976Z Requested resource is found = false2019-09-05T15:41:07.976Z Request is HEAD = false2019-09-05T15:41:07.976Z Request is for a checksum = false2019-09-05T15:41:07.976Z Target repository is not remote or doesn't store locally = false2019-09-05T15:41:07.976Z Requested resource was not modified = false2019-09-05T15:41:07.976Z Responding with unfound resource2019-09-05T15:41:07.976Z Setting default response status to '404' reason to 'Resource not found'2019-09-05T15:41:07.976Z Response is an instance of UnfoundRepoResourceReason2019-09-05T15:41:07.976Z Configured to hide un-authorized resources = false2019-09-05T15:41:07.976Z Original response status is auth related = false2019-09-05T15:41:07.976Z Using original response status of '404' and message 'Failed to transform pom file: Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .'2019-09-05T15:41:07.976Z Sending error with status 404 and message 'Failed to transform pom file: Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .'2019-09-05T15:41:07.976Z Executing any AfterDownloadErrorAction user plugins that may exist2019-09-05T15:41:07.976Z Response code wasn't modified by the user plugins2019-09-05T15:41:07.976Z Sending response with the status '404' and the message 'Failed to transform pom file: Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .'有趣的部分是Error occurred while downloading artifact:Failed to read POM for 'org/apache/geronimo/specs/specs/1.1/specs-1.1.pom':expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</developers>\n `\n <p... @91:7) .=> 他们只是发布了一个无效的 POM,这就是 Artifactory 无法下载依赖项的原因