[ 
https://issues.apache.org/jira/browse/WAGON-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133552#comment-17133552
 ] 

Michael Osipov commented on WAGON-598:
--------------------------------------

See [here|https://www.mojohaus.org/wagon-maven-plugin/usage.html] how to use an 
extension. You can debug your extension with {{mvnDebug}}. I woud recommend to 
write a stub provider and try to run it first. When you see that it does work, 
continue with your real provider.

Injecting configuration into the provider is basically 
{{settings.xml/settings/servers/server/configuration}}. This configuation block 
is mapped onto setters in your wagon provider instance. Say have 
{{BackblazeWagon#setMaxSize()}}, in XML you do 
{{<configuration><maxSize>10000000</maxSize></configuration>}}.

> Backblaze Wagon Provider
> ------------------------
>
>                 Key: WAGON-598
>                 URL: https://issues.apache.org/jira/browse/WAGON-598
>             Project: Maven Wagon
>          Issue Type: New Feature
>            Reporter: Denis Ivanov
>            Priority: Minor
>
> Hello friends!
> I'd like to implement a new provider for storing artifacts at Backblaze B2 
> Cloud.
>  Their raw HTTP API requires some additional steps for getting and uploading 
> data so using wagon-http extension is not possible.
>  Here is an official [client|https://github.com/Backblaze/b2-sdk-java] and I 
> can make a wrapper on top of it.
> I have a question about getting information from ~/.m2/settings.xml from my 
> java code.
> For example I haveĀ *settings.xml*:
> {code:xml}
> <servers>
>   <server>
>     <id>backblaze.com</id>
>     <access-key-id>${text}</access-key-id>
>     <access-key-secret>${text}</access-key-secret>
>   </server>
> </servers>
> {code}
> and *pom.xml*:
> {code:xml}
> <distributionManagement>
>   <repository>
>     <id>backblaze.com</id>
>     <url>b2://bucket endpoint provided after 
> creating/bucket-name/release</url>
>   </repository>
> </distributionManagement>
> {code}
> If someone helps with an example usage it will be great! Any example 
> implementations are very appreciated!
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to