cloudfoundry-community / spring-cloud-s3-service-connector

Apache License 2.0
5 stars 2 forks source link

Runtime error with spring-cloud-cloudfoundry-connector >v1.1.1 #5

Closed bodymindarts closed 8 years ago

bodymindarts commented 8 years ago
git clone git@github.com:cloudfoundry-community/spring-cloud-s3-service-connector.git
mvn test # works
sed -i '' 's/1.0.0/1.1.1/' pom.xml
mvn test # runtime error
java.lang.NoSuchMethodError: org.springframework.cloud.cloudfoundry.CloudFoundryServiceInfoCreator.<init>(Lorg/springframework/cloud/cloudfoundry/Tags;)V
        at org.cloudfoundry.community.service.storage.S3ServiceInfoCreator.<init>(S3ServiceInfoCreator.java:31)

but if you:

rm -rf target
mvn test

it will work. Even though the src code remains compatible I assume there is a slight modification to the .class format that makes the byte code incompatible at runtime. Would it be possible to upload a new version to maven that has been compiled with the latest version of sring-cloud-cloudfoundry-connector (v1.2.1)?

How is this jar released to maven and who has the right access?

bodymindarts commented 8 years ago

@davidehringer can you help with this?

bodymindarts commented 8 years ago

PR created https://github.com/cloudfoundry-community/spring-cloud-s3-service-connector/pull/6

ArthurHlt commented 8 years ago

@bodymindarts you might be interested by this repo: https://github.com/Orange-OpenSource/spring-cloud-s3-connectors

davidehringer commented 8 years ago

@bodymindarts sorry, I was away for a few days.

This component is published to Maven Central via https://gaptap.atlassian.net/builds/browse/CFC-SPRIN

I created a 1.1.0 release including your dependency update in #6 . It should show up in Maven Central soon depending on how long it takes their staging repos to sync to central.