-
Feature Request
-
Resolution: Done
-
Major
-
7.50.0.Final
-
None
-
False
-
False
-
NEW
-
NEW
-
Undefined
-
---
-
---
-
This Jira is a description of this PR
https://github.com/kiegroup/kie-soup/pull/179
use case:
we have defined in pom.xml repository as that
<repositories> <repository> <id>1_aws-release</id> <name>AWS S3 Release Repository</name> <url>s3://some-test-repository-s3/release</url> </repository> </repositories>
and we want to use SimpleStorageServiceWagon from
<groupId>org.springframework.build</groupId> <artifactId>aws-maven</artifactId>
after those changes, we can do it like that
java -Dkie.maven.s3.wagon.class=
org.springframework.build.aws.maven.SimpleStorageServiceWagon
Without those changes we got errors
16-02-2021 | 12:04:14.104 | [main] DEBUG org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter:135 Could not obtain transporter factory for 1_aws-release (s3://some-test-repository-s3/release, default, releases) org.eclipse.aether.transfer.NoTransporterException: Unsupported transport protocol s3 at org.eclipse.aether.transport.http.HttpTransporter.<init>(HttpTransporter.java:105) at org.eclipse.aether.transport.http.HttpTransporterFactory.newInstance(HttpTransporterFactory.java:93) at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:110) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:115) at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:180) at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:113) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:516) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294) at org.appformer.maven.integration.MavenRepository.resolveArtifact(MavenRepository.java:179) at org.appformer.maven.integration.ArtifactResolver.getPomFileForGAV(ArtifactResolver.java:96) at org.appformer.maven.integration.ArtifactResolver.getResolverFor(ArtifactResolver.java:62) at org.kie.scanner.KieModuleMetaDataImpl.<init>(KieModuleMetaDataImpl.java:76) at org.kie.scanner.KieModuleMetaData$Factory.newKieModuleMetaData(KieModuleMetaData.java:70) at org.kie.server.services.impl.KieServerImpl.buildKieModuleMetadata(KieServerImpl.java:1027)