citrusframework / yaks

YAKS is a platform to enable Cloud Native BDD testing on Kubernetes
Apache License 2.0
82 stars 27 forks source link

Loading glue code fails (Unsupported transport protocol s3) #468

Open c14s opened 1 year ago

c14s commented 1 year ago

After having updated to yaks 0.14.2 (yaks-0.14.2-linux-64bit.tar.gz), I'm getting the following exception (this was working fine in version 0.12.2).

Glue code has been uploaded successfully; and double-checked that it is available in minio repo.

[ERROR] Failed to execute goal on project yaks-runtime-maven:
Could not resolve dependencies for project org.citrusframework.yaks:yaks-runtime-maven:jar:0.14.2:
Failed to collect dependencies at ...:jar:...:
Failed to read artifact descriptor for ...:jar:...:
Could not transfer artifact ...:pom:... from/to s3 (s3://yaks): 
Cannot access s3://yaks with type default using the available connector factories:
BasicRepositoryConnectorFactory: Cannot access s3://yaks using the registered transporter factories:
WagonTransporterFactory: Unsupported transport protocol s3: java.util.NoSuchElementException

[ERROR]   role: org.apache.maven.wagon.Wagon 
[ERROR]   roleHint: s3
christophd commented 1 year ago

We did an update on the base image from openjdk to eclipse:temurin and updated the Maven version used in the image. I think this could be the root cause why this is failing.

c14s commented 11 months ago

Any update on this? We're still facing this issue in the latest release v0.15.1

christophd commented 6 months ago

You are using a custom jar artifact with custom step definitions that should be loaded via minio s3, right?

c14s commented 6 months ago

Yes, that's true. We have a custom jar file with custom step definitions.

yaks upload . is executed successfully; but when starting the tests with yaks run abc.feature the processing fails.

btw: looks like the exception details have changed a little bit with yaks 0.17.1

[ERROR] Failed to execute goal on project yaks-runtime-maven:
Could not resolve dependencies for project org.citrusframework.yaks:yaks-runtime-maven:jar:0.17.1:
Failed to collect dependencies at ...:...:jar:...:
Failed to read artifact descriptor for ...:...:jar:...:
The following artifacts could not be resolved: ...:...:pom:... (absent):
Could not transfer artifact ...:...:pom:... from/to s3 (s3://yaks):
Cannot access s3://yaks with type default using the available connector factories: BasicRepositoryConnectorFactory:
Cannot access s3://yaks using the registered transporter factories: HttpTransporterFactory, FileTransporterFactory, WagonTransporterFactory