cookbook 'maven_deploy', '= 0.1.2'
maven_deploy (9) Versions 0.1.2 Follow2
Deploy artifacts from maven
cookbook 'maven_deploy', '= 0.1.2', :supermarket
knife supermarket install maven_deploy
knife supermarket download maven_deploy
maven_deploy cookbook
Deploys artifacts from standard maven repositories
Supported Platforms
all
Attributes
Basic configuration
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['maven_deploy']['repository']</tt></td>
<td>String</td>
<td>The URL of your maven repo</td>
<td><tt>true</tt></td>
</tr>
</table>
Repository with Auth configuration
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][url]</tt></td>
<td>String</td>
<td>The URL of your maven repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][username]</tt></td>
<td>String</td>
<td>The username for authenticating with your maven repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][password]</tt></td>
<td>String</td>
<td>The username for authenticating with your maven repo</td>
<td><tt>true</tt></td>
</tr>
</table>
Release/Snapshot repository configuration
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][snapshot][url]</tt></td>
<td>String</td>
<td>The URL of your maven snaphot repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][snapshot][username]</tt></td>
<td>String</td>
<td>The username for authenticating with your snapshot maven repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][snapshot][password]</tt></td>
<td>String</td>
<td>The username for authenticating with your snapshot maven repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][snapshot][url]</tt></td>
<td>String</td>
<td>The URL of your maven snaphot repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][release][username]</tt></td>
<td>String</td>
<td>The username for authenticating with your release maven repo</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['maven_deploy']['respository'][snapshot][password]</tt></td>
<td>String</td>
<td>The username for authenticating with your release maven repo</td>
<td><tt>true</tt></td>
</tr>
</table>
Usage
In your recipe:
maven_deploy "junit" do group_id "junit" artifact_id "junit" deploy_to "/tmp/junit.jar" version "latest" end
Contributing
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
License and Authors
Author:: Alexander De Leon (@alexjdl)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
0.1.0
Initial release of maven_deploy cookbook
Foodcritic Metric
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5568cff0a31ed66392a979c2/maven_deploy/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5568cff0a31ed66392a979c2/maven_deploy/providers/default.rb:15
0.1.2 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5568cff0a31ed66392a979c2/maven_deploy/providers/default.rb:15