Skip to content

artifactory-maven-plugin succeed but says it fails #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fbacchella opened this issue Feb 24, 2019 · 3 comments
Open

artifactory-maven-plugin succeed but says it fails #217

fbacchella opened this issue Feb 24, 2019 · 3 comments

Comments

@fbacchella
Copy link

fbacchella commented Feb 24, 2019

Using latest maven:
mvn -version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)

With latest artifactory-maven-plugin plugin:

    <groupId>org.jfrog.buildinfo</groupId>
    <artifactId>artifactory-maven-plugin</artifactId>
    <version>2.6.1</version>

When I want to publish to bintray, the publications succeed, but maven said it fails:

[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ jrdsagent ---
[INFO] Skipping artifact deployment
[INFO] Artifactory Build Info Recorder: Saving Build Info to '/Users/fa4/Devl/jrdsagent/target/build-info.json'
[INFO] Deploying artifact: https://api.bintray.com/maven/fbacchella/maven/jrdsagent/fr/jrds/jrdsagent/1.0-RC1/jrdsagent-1.0-RC1.jar
[INFO] Response received: 

{"message":"success"}


[ERROR] Failed while reading the response from: PUT https://api.bintray.com/maven/fbacchella/maven/jrdsagent/fr/jrds/jrdsagent/1.0-RC1/jrdsagent-1.0-RC1.jar;build.timestamp=1551009731740;build.name=jrdsagent;build.number=1551009731740 HTTP/1.1
org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "message" (Class org.jfrog.build.client.ArtifactoryUploadResponse), not marked as ignorable
 at [Source: java.io.StringReader@4893a9f0; line: 1, column: 13] (through reference chain: org.jfrog.build.client.ArtifactoryUploadResponse["message"])
    at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from (UnrecognizedPropertyException.java:53)
    at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException (StdDeserializationContext.java:267)
    at org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty (StdDeserializer.java:673)
    at org.codehaus.jackson.map.deser.std.StdDeserializer.handleUnknownProperty (StdDeserializer.java:659)
    at org.codehaus.jackson.map.deser.BeanDeserializer.handleUnknownProperty (BeanDeserializer.java:1365)
    at org.codehaus.jackson.map.deser.BeanDeserializer._handleUnknown (BeanDeserializer.java:725)
    at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject (BeanDeserializer.java:703)
    at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize (BeanDeserializer.java:580)
    at org.codehaus.jackson.map.ObjectMapper._readValue (ObjectMapper.java:2704)
    at org.codehaus.jackson.map.ObjectMapper.readValue (ObjectMapper.java:1286)
    at org.codehaus.jackson.JsonParser.readValueAs (JsonParser.java:1337)
    at org.jfrog.build.client.ArtifactoryHttpClient.execute (ArtifactoryHttpClient.java:209)
    at org.jfrog.build.client.ArtifactoryHttpClient.upload (ArtifactoryHttpClient.java:195)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.uploadFile (ArtifactoryBuildInfoClient.java:571)
    at org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryBuildInfoClient.deployArtifact (ArtifactoryBuildInfoClient.java:282)
    at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deployArtifacts (BuildDeploymentHelper.java:275)
    at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:98)
    at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:170)

But all the files are indeed deployed to bintray.

All the plugins of the pom are up-to-date.

@rajeshkp
Copy link

rajeshkp commented Jun 3, 2021

We are getting a similar error as well

@mafgh
Copy link

mafgh commented Jul 6, 2021

Hasn't this been fixed in #502?

@yahavi
Copy link
Member

yahavi commented Jul 6, 2021

@mafgh the deserialization of unknown fields issue has been fixed in #502, which is reflected in the latest Maven Artifactory plugin 3.2.3.
In the above case, the user tried to upload to Bintray which is nowadays, under a sunset. Therefore only uploads to Artifactory should work using the latest plugin version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants