[英]deployment assembly using maven-eclipse-plugin
I am using maven-eclipse-plugin for working with a war project. 我正在使用maven-eclipse-plugin处理战争项目。 This war project uses maven overlay method to include another war.
该战争项目使用maven覆盖方法包括其他战争。 When I deploy it using Maven, everything goes well.
当我使用Maven部署它时,一切顺利。 When I test the war locally in eclipse, it fails because the dependent war resources are available only in the target folder.
当我在Eclipse中本地测试战争时,它失败了,因为相关的战争资源仅在目标文件夹中可用。 To solve this, I go the deployment assembly and manually add the target folder.
为了解决这个问题,我去了部署程序集并手动添加了目标文件夹。 Is there way I could tell eclipse-maven-plugin to add the following line to org.eclipse.wst.common.component file inside the .settings folder when running the eclipse:eclipse goal.
有什么办法可以让eclipse-maven-plugin在运行eclipse:eclipse目标时将以下行添加到.settings文件夹内的org.eclipse.wst.common.component文件中。
<wb-resource deploy-path="/" source-path="/target/finalname"/>
You can embed any additional eclipse properties in your pom for mvn eclipse:eclipse. 您可以在pom中为mvn eclipse:eclipse嵌入任何其他的eclipse属性。
The plugin reference has some examples for adding build commands, resources, facets, and of course also adhoc configuration. 插件参考中有一些示例,用于添加构建命令,资源,构面,当然也包括临时配置。
You can probably copy paste something from there to help you. 您可能可以从那里复制粘贴内容以帮助您。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.