简体   繁体   English

Maven获得与安装名称相同的安装名称和部署名称

[英]Maven getting the same install name and deploy name as the build name

I have project with a parent pom that has 我有一个带有父pom的项目

<modules>
  <module>a</module>
  <module>b</module>
  <module>original_ear</module>
  <module>original_web</module>
</modules>

I tried using <finalName>changed_Web</finalName> in webmodule POM and <finalName>changed_ear</finalName> in EAR module POM. 我尝试在<finalName>changed_ear</finalName>模块POM中使用<finalName>changed_Web</finalName> ,在EAR模块POM中使用<finalName>changed_Web</finalName> I am getting getting desired xy_Web.war and xy_ear.ear in target but the install and deploy, I am still getting original_ear-version.ear and original_web-version.ear . 我在target越来越希望得到xy_Web.warxy_ear.ear ,但是在安装和部署时,我仍然会获得original_ear-version.earoriginal_web-version.ear

How can I get the same name to deploy and install as well? 如何获得相同的名称以进行部署和安装?

Maven will not do that. Maven不会那样做。 You will have to rename the files you make based on the file type. 您将必须根据文件类型重命名创建的文件。 You might want to make a bat file for that or add it to the bat file you are using. 您可能要为此制作一个bat文件或将其添加到您正在使用的bat文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM