Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


archiva (5) Versions 2.0.0

Installs/Configures Archiva

cookbook 'archiva', '= 2.0.0'
cookbook 'archiva', '= 2.0.0', :supermarket
knife supermarket install archiva
knife supermarket download archiva
Quality 75%

archiva cookbook

Cookbook Version Build Status Coverage Status

This cookbook installs Apache Archiva 2.1.1 standalone.


  • ark
  • java
  • nginx
    • If the nginx_proxy recipe is not used, nginx won’t be installed


<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr>

  <td>the version of Archiva to install</td>

    <td>SHA512 checksum used by Ark</td>

    <td>Path for Ark to install Archiva to</td>

    <td>Where Archiva will be upon installation</td>

    <td>Owner of Archiva</td>

    <td>Hostname for Archiva; used for Nginx</td>

    <td>Port that Archiva listens on</td>

    <td>Server name used by Nginx</td>

    <td>Portion of template filename for Nginx</td>

    <td>The <code>nginx</code> cookbook recipe to use</td>

    <td>The Nginx server location</td>

    <td>Nginx virtual host listen port</td>



  • Add archiva::default to a node’s run list
  • Add archiva::nginx_proxy to a run list to include archiva::default, then install Nginx & have it handle proxing requests to Archiva

Wrapping this cookbook

Should you wish to customize this cookbook’s behavior, the recommendation is to follow The Berkshelf Way and write a wrapper cookbook for this one.

You would then include this cookbook’s recipe(s) in your wrapper cookbook, setting attributes in whatever fashion makes sense for your use case.


    # attributes/default.rb

    set[:java][:java_home]   = '/usr/lib/jvm/java-7-openjdk-amd64'
    set[:java][:java_exec]   = node[:java][:java_home] + '/bin/java'
    set[:java][:jdk_version] = '7'

    set[:archiva][:nginx_uri]   = '/archiva/'
    set[:archiva][:nginx_port]  = '8080'
    set[:archiva][:web_host]    = 'localhost'
    set[:archiva][:web_port]    = '9090'

    # recipes/default.rb

    include_recipe 'archiva'
    include_recipe 'archiva::nginx_proxy'



License and Authors

Author:: EverTrue, Inc.
Author:: Jorge Espada

License:: Apache License v2.0

Dependent cookbooks

chef_nginx ~> 5.0
java ~> 1.27
ark >= 0.0.0
apt ~> 2.5

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


This is the changelog for the archiva cookbook.

v2.0.0 (2017-03-13)

  • Bump chef_nginx to v5

v1.2.0 (2016-09-26)

  • Use chef_nginx instead of nginx

v1.1.0 (2016-03-21)

  • Add node[:archiva][:mirror] attribute to allow operator to customize where Archiva is downloaded from
  • Refactor test harness to work well in Travis & do integration testing

v1.0.1 (2015-03-13)

  • Reload nginx when archiva_server.conf changes

v1.0.0 (2014-09-24)

  • Refactored to install Archiva ≥ 2.1.1
  • Fixed up metadata
  • Addded Berkshelf support
  • Added ChefSpec unit tests
  • Added Test Kitchen
  • Added ServerSpec integration tests
  • Wired up to Travis CI for all tests
  • Wired up to for unit test coverage

v0.0.1 (2014-01-10)

  • Initial rev

Collaborator Number Metric

2.0.0 passed this metric

Contributing File Metric

2.0.0 passed this metric

Foodcritic Metric

2.0.0 failed this metric

FC064: Ensure issues_url is set in metadata: archiva/metadata.rb:1
FC065: Ensure source_url is set in metadata: archiva/metadata.rb:1
FC066: Ensure chef_version is set in metadata: archiva/metadata.rb:1
FC069: Ensure standardized license defined in metadata: archiva/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

2.0.0 passed this metric

Publish Metric

2.0.0 passed this metric

Supported Platforms Metric

2.0.0 passed this metric

Testing File Metric

2.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

2.0.0 passed this metric