我正在尝试将S3存储桶用作远程Maven存储库,通过该存储库将使用kie Workbench UI创建的规则jar分发到需要它们的地方。
如果我从IDE中将规则与maven打包在一起,则可以使用Maven S3旅行车扩展和分发管理功能将jar成功上传到s3,它可以正常工作。它们已在maven部署阶段成功上传。
我正在尝试在工作台用户界面中实现相同的功能(使用Business Central Workbench 7.15.0 Final和Wildfly 14.0.Final。)。基本上,按下“ Build&Deploy”按钮可生成经过验证的版本,然后上传到s3存储桶中定义的内容。
可悲的是,这会导致错误:
Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts/metadata: Cannot access s3://my-repo/snapshot with type default using the available connector factories: BasicRepositoryConnectorFactory
at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:269)
at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:245)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:420)
at org.guvnor.m2repo.backend.server.repositories.DistributionManagementArtifactRepository.deploy(DistributionManagementArtifactRepository.java:140)
... 107 more
Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access s3://my-repo/snapshot with type default using the available connector factories: BasicRepositoryConnectorFactory
at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:174)
at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:265)
... 110 more
Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access s3://my-repo/snapshot using the registered transporter factories: HttpTransporterFactory, FileTransporterFactory
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:119)
at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:180)
at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:113)
... 111 more
Caused by: org.eclipse.aether.transfer.NoTransporterException: Cannot access s3://my-repo/snapshot using the registered transporter factories: HttpTransporterFactory, FileTransporterFactory
at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:151)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:115)
... 113 more
几乎可以说它无法使用s3协议传输它们,因为只有Http和文件传输器工厂可用。
这是我的pom,我假设使用的扩展可以为s3车提供Maven的支持,显然通过调用“ mvn clean deploy” 不会进行部署,因此忽略了插件和扩展
pom.xml
// standard pom definitions
...
<distributionManagement>
<snapshotRepository>
<id>my-repo-snapshot</id>
<url>s3://my-repo/snapshot</url>
</snapshotRepository>
<repository>
<id>my-repo-release</id>
<url>s3://my-repo/release</url>
</repository>
</distributionManagement>
....
//dependencies etc.
....
<build>
<plugins>
<plugin>
<groupId>org.kie</groupId>
<artifactId>kie-maven-plugin</artifactId>
<version>7.15.0.Final</version>
<extensions>true</extensions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>com.allogy.maven.wagon</groupId>
<artifactId>maven-s3-wagon</artifactId>
<version>1.1.0</version>
</extension>
</extensions>
</build>
我是否可以为K3工作台配置/提供s3的运输工厂?