• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

takari/takari-maven-plugin: Maven Plugin to Install the Maven Wrapper

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

takari/takari-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/takari/takari-maven-plugin

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

Takari Maven Plugin

Project Frozen Notice

This project is essentially in the process of migrating to the upstream Apache Maven project. Please find more details with the maven-wrapper project

Install the Maven Wrapper in your Maven Project

cd yourmavenproject
mvn -N io.takari:maven:0.7.7:wrapper

You can set a specific Maven release (but not SNAPSHOT) by adding a maven parameter :

cd yourmavenproject
mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.5.4

Alternatively, you can set a specific download url (which could point to a SNAPSHOT version of Maven) by using the distributionUrl parameter :

cd yourmavenproject
mvn -N io.takari:maven:0.7.7:wrapper -DdistributionUrl=http://server/path/to/maven/distro.zip

or you can set the URL to a Maven repository manager with the MVNW_REPOURL environment variable.

This will create a mvnw and a mvnw.cmd file as well as a .mvn folder in your project. You can now use mvnw instead of mvn in all project builds, which will download the configured Maven installation as required.

The .mvn folder contains the optional wrapper jar and the maven-wrapper.properties configuration file with the URLs to download the wrapper jar and the maven zip archive from.

Updating the Maven Wrapper in your Maven Project

In order to upgrade the Maven Wrapper in your project, you simply run the installation commands as documented above again. This will overwrite the installed files and you can then proceed to compare old and new files and commit as desired.

Typically, use the scripts and binaries as updated and only adjust config files, if needed.

More Information

More details about the Maven Wrapper including

  • URL config changes,
  • verbose mode with MVNW_VERBOSE,
  • no binary usage mode and
  • parameters MVNW_USERNAME, MVNW_PASSWORD and MVNW_REPOURL

can be found with the maven-wrapper project.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
evgeny-goldin/maven-plugins: Maven plugins发布时间:2022-08-16
下一篇:
jenkinsci/pipeline-maven-plugin: Pipeline Maven Plugin发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap