“mvn deploy”是否也会将pom.xml安装/复制到远程仓库?

huangapple go评论73阅读模式
英文:

Does mvn deploy also install/copy the pom.xml in to the remote repo?

问题

mvn deploy会将pom.xml安装或复制到远程仓库吗?

根据我的理解,mvn deploy会将构件安装或复制到远程仓库。我不确定的是,除了.jar文件,Maven还会复制哪些其他文件到仓库?

我能控制复制/安装哪些文件,哪些文件不需要复制吗?

英文:

Does mvn deploy also install/copy the pom.xml in to the remote repo?

From my understanding mvn deploy installs or copies the artifacts in to the remote repo. What I am not sure is - apart from the .jar what other files does maven copy to the repo?

Can I control what files are copied/installed and what are not to be copied.

答案1

得分: 2

Maven将POM复制到本地或远程仓库。

此外,还会生成校验文件。如果适用,还会上传“sources”和“javadoc” JAR文件。这两个额外的文件不需要上传。

但需要上传POM。没有POM的JAR无法被Maven访问。

英文:

Maven copies the POM to the local or remote repository.

Additionally, checksum files are generated. If applicable, sources and javadoc JARs are uploaded, too. These two extra files do not need to be uploaded.

The POM needs to uploaded, though. A JAR without a POM cannot be accessed by Maven.

huangapple
  • 本文由 发表于 2020年10月16日 22:11:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/64390848.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定