The Deploy Plugin has two basic functions. In most project builds, the deploy phase of the build lifecycle is implemented using the deploy:deploy mojo. Also, artifacts which are not built using Maven can be added to any remote repository using the deploy:deploy-file mojo.
The deploy plugin is primarily used during the deploy phase, to add your artifact(s) to a remote repository for sharing with other developers and projects. This is usually done in an integration or release environment. It can also be used to deploy a particular artifact (e.g. a third party jar like Sun's non redistributable reference implementations).
As a repository contains more than the artifacts (POMs, the metadata, MD5 and SHA1 hash files...), deploying means not only copying the artifacts, but making sure all this information is correctly updated. It's the reponsibility of the deploy plugin.
To work, the deployment will require:
- information about the repository: its location, the transport method used to access it (FTP, SCP, SFTP...) and the optional user specific required account information
- information about the artifact(s): the group, artifact, version, packaging, classifier...
- a deployer: a method to actually perform the deployment. This can be implemented as a wagon transport (making it cross-platform), or use a system specific method.
The information will be taken from the implied (or specified) pom and from the command line. The settings.xml file may also be parsed to retrieve user credentials.
http://maven.apache.org/plugins/maven-deploy-plugin/
http://maven.apache.org/plugins/maven-deploy-plugin/usage.html
相关推荐
maven-deploy-plugin-2.7.jar
这样,您可以确保您不会浪费时间在不属于Apache Maven范围的事情上。 假设您的问题不存在,请提交该问题的票证。 清楚地描述问题,包括在出现错误时重现的步骤。 确保填写已知问题的最早版本。 在GitHub上分叉存储...
在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven http://maven.aliyun.com/nexus/content/repositories/central/ central junit junit Address/ ...
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project
Apache Maven offers a comprehensive set of features to build, test, release, and deploy software projects and maintain enterprise development infrastructure. This book is a hands-on guide that ...
可以使用标准maven-install-plugin和maven-deploy-plugin这些nar文件安装在本地Maven存储库中,并部署到标准Maven(Web)服务器中。 用法 在您的POM中: < plugin> < groupId>com.github.ma
apigee-edge-maven-plugin是一个构建和部署实用程序,用于将Apigee ApiProxy的/应用程序捆绑包构建和部署到Apigee Edge Platform中。 该代码根据Apache License 2.0分发。 TL; DR 为自述提供了快速入门的入门步骤和...
Maven插件可将配置文件应用于容器。... mvn com.nagravision.it:fabric8-maven-plugin:1.2.0-SNAPSHOT:deploy -DjolokiaUrl=http://localhost:8282/jolokia \ -Dfabric8.featureRepos="mmvn:io.fabric8.quickstart
Maven Plugin 10.2.4. EJB 10.2.5. WAR 10.2.6. EAR 10.2.7. 其它打包类型 10.3. 通用生命周期目标 10.3.1. Process Resources 10.3.2. Compile 10.3.3. Process Test Resources 10.3.4. Test Compile ...
• Maven官方网站 http://maven.apache.org/ • Maven支持的依赖列表 http://www.ibiblio.org/maven2 • 在 Eclipse 中利用 Maven • 项目管理: Maven 让事情变得简单 作者简介 胡键,西安交通大学硕士,2000...
h2-tomee-datasource-example 示例应用程序展示了Apache Tomee 1.7.2中H2数据库的使用。 要创建项目, ... 通过运行 mvn tomme:deploy 部署应用程序,pom.xml 已经有 tomme-maven-plugin。 访问