GithubHelp home page GithubHelp logo

Comments (8)

chonton avatar chonton commented on September 24, 2024

Please run your build with a -X option. Do you see any log lines starting with 'Fetching '? Does that path have an extra '/'?
How is your repository configured? Does it have a trailing slash?

from exists-maven-plugin.

jeremywall avatar jeremywall commented on September 24, 2024

I decided to setup a clean demo project to reproduce this. I've posted the project for a dummy demo library at https://github.com/jeremywall/maven-artifact-repo-aws-s3-demo.

I reduced my Maven settings.xml file to the bare minimum and it's shown in the README file at the GitHub repo above.

When using 0.6.0 in the project's pom.xml I can mvn deploy and it will correctly find the existing files in the S3 bucket and stop the build.

When using 0.7.0 in the project's pom.xml and I run mvn deploy it still fails to locate the existing files in the S3 bucket and lets the build continue and at the end the files in S3 are overwritten.

Logs for your Maven plugin when I run mvn deploy -X with both 0.6.0 and 0.7.0 are in the logs folder of the GitHub repo.

From the 0.7.0 log on line 504 you can see the URL path is incorrect with the mystery extra forward slash getting URL encoded as %2F like so:

[DEBUG] Executing request HEAD /release/%2Fdev/jeremywall/mavens3demo/demo-library/1/demo-library-1.jar HTTP/1.1

from exists-maven-plugin.

chonton avatar chonton commented on September 24, 2024

Please try using 0.8.0-SNAPSHOT

from exists-maven-plugin.

jeremywall avatar jeremywall commented on September 24, 2024

No luck I'm afraid, I compiled and installed 0.8.0-SNAPSHOT and when I ran my sample project with that it still has the %2F and can't find the existing jar in the S3 bucket. I've posted the log at https://github.com/jeremywall/maven-artifact-repo-aws-s3-demo/blob/main/logs/exists-maven-plugin-0.8.0-SNAPSHOT.log

from exists-maven-plugin.

chonton avatar chonton commented on September 24, 2024

@jeremywall, please try with today's updates.

from exists-maven-plugin.

jeremywall avatar jeremywall commented on September 24, 2024

SUCCESS!!!

It now detects the existence of the file in S3 and fails with the message "Artifact already exists in repository: dev.jeremywall.mavens3demo:demo-library:jar:1"

The log for this test run is at https://github.com/jeremywall/maven-artifact-repo-aws-s3-demo/blob/main/logs/exists-maven-plugin-0.8.0-SNAPSHOT-round2.log

from exists-maven-plugin.

jeremywall avatar jeremywall commented on September 24, 2024

Thank you for the fast turn around and work on resolving this.

from exists-maven-plugin.

chonton avatar chonton commented on September 24, 2024

Pushed 0.8.0 to central

from exists-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.