开源软件名称(OpenSource Name):sous-chefs/maven开源软件地址(OpenSource Url):https://github.com/sous-chefs/maven开源编程语言(OpenSource Language):Ruby 99.5%开源软件介绍(OpenSource Introduction):maven CookbookInstall and configure Apache Maven from the binaries provided by the Maven project. Provides the Note: This cookbook does not handle the installation of Java but does require it to be installed. This can be done either using the Java cookbook or your own cookbook. Check the Maven website for more information about explicit Java requirements. MaintainersThis cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs. RequirementsPlatforms
Chef
Cookbooks
Attributes
RecipesdefaultInstalls maven according to the version specified by the settingsInstalls gems required to parse settings.xml to ruby and hash and back to xml UsageInstall a version of Java JRE (Oracle or OpenJDK) that is at minimum the version of Java required by the maven release you are installing. This can be done either using the Java cookbook or your own cookbook. Include the recipe where you want Apache Maven installed. The maven lwrp has two actions, Use the put action when you want to explicitly control the name of the downloaded file. This is useful when you download an artifact and then want to have Chef resources act on files within that the artifact. The put action will creat a file named Providers/Resourcesmaven_settingsResource provider for modifying the maven settings. Actions
Attributes
In order to use this resource you first need to run maven_settings "settings.proxies" do
value "proxy" => {
"active" => true,
"protocaol" => "http",
"host" => "proxy.myorg.com",
"port" => 80,
"nonProxyHosts" => ".myorg.com"
}
end maven
Examplesmaven 'mysql-connector-java' do
group_id 'mysql'
version '5.1.19'
dest '/usr/local/tomcat/lib/'
end
# The artifact will be downloaded to /usr/local/tomcat/lib/mysql-connector-java-5.1.19.jar
maven 'solr' do
group_id 'org.apache.solr'
version '3.6.1'
packaging 'war'
dest '/usr/local/tomcat/webapps/'
action :put
end
# The artifact will be downloaded to /usr/local/tomcat/webapps/solr.war
maven 'custom-application' do
group_id 'com.company.name'
version '2.0.0'
dest '/usr/local/tomcat/lib'
classifier 'client'
action :put
end
# The artifact will be downloaded to /usr/local/tomcat/lib/custom-application-2.0.0-client.jar ContributorsThis project exists thanks to all the people who contribute. BackersThank you to all our backers! SponsorsSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论