我正在尝试使用Artifactory Teamcity插件将Maven构建部署到Artifactory。不幸的是,我没有获得成功的构建版本,而是得到:
org.apache.http.ProtocolException:Content-Length标头已经存在
这是怎么回事,我能做些什么来解决它?
Teamcity是版本2018.2,在Java 8下的Tomcat中运行。Artifactory插件版本是2.8.0。人工工厂本身是6.10.6。 Maven构建正在执行干净验证,保留安装并发布到Artifactory插件。这是我第一次尝试使用该插件(以前我们是使用常规Maven目标发布到Nexus的),我将不胜感激任何建议。
stacktrace说:
Caused by: org.apache.http.client.ClientProtocolException
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.jfrog.build.client.PreemptiveHttpClient.execute(PreemptiveHttpClient.java:102)
at org.jfrog.build.client.ArtifactoryHttpClient.execute(ArtifactoryHttpClient.java:240)
at org.jfrog.build.client.ArtifactoryHttpClient.upload(ArtifactoryHttpClient.java:236)
at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:687)
at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.doDeployArtifact(ArtifactoryBuildInfoClient.java:374)
at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:362)
at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:347)
at org.jfrog.teamcity.agent.listener.AgentListenerBuildInfoHelper.runnerFinished(AgentListenerBuildInfoHelper.java:185)