英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论