Deploying Maven dependencies to S3: No connector available

后端 未结 4 2248
慢半拍i
慢半拍i 2021-02-20 16:40

I\'m trying to use Amazon S3 to host my Maven artifacts. I\'ve added the following to my pom.xml:



        
4条回答
  •  后悔当初
    2021-02-20 17:19

    I have created a sample project of how to use S3 bucket as maven repository.

    https://github.com/wbinglee/maven-s3-repo

    From your configuration, I don't see obvious problem. You can compare your project configuration with above sample project. If you cannot find the problem, you may need to share your full pom.xml.

    Other option of using S3 as maven repository is directly using http schema and configure S3 bucket as static web hosting. It's also included in above sample project with required configuration in README.

    Then you can configure your maven repository configuration like below:

    
        
            maven.xxx.com-release
            AWS S3 Release Repository
            http://maven.xxx.com.s3-website-ap-southeast-2.amazonaws.com/release
        
        
            maven.xxx.com-snapshot
            AWS S3 Snapshot Repository
            http://maven.xxx.com.s3-website-ap-southeast-2.amazonaws.com/snapshot
            
                true
            
        
    
    

    Hope that helps.

提交回复
热议问题