简体   繁体   English

使用maven-eclipse-plugin进行部署组装

[英]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.

相关问题 目录的maven-eclipse-plugin配置 - maven-eclipse-plugin configuration of directories 如何使XmlBeans与Eclipse(和Maven-eclipse-plugin)完美配合 - How to make XmlBeans play nicely with eclipse (and the maven-eclipse-plugin) maven-eclipse-plugin其他源目录不起作用 - maven-eclipse-plugin additional source directory not working 使用maven-eclipse-plugin将文件夹中的伪装jar文件指定到eclipse项目中,而不是M2_REPO变量 - using maven-eclipse-plugin for to specifiy depedency jar files from a folder into eclipse project, not M2_REPO variable 使用maven-eclipse-plugin的Maven webapp不会生成<dependent-module> - Maven webapp with maven-eclipse-plugin doesn't generate <dependent-module> 在Indigo中新的M2Eclipse不再需要maven-eclipse-plugin了吗? - Is maven-eclipse-plugin no longer needed with the new M2Eclipse in Indigo? maven-eclipse-plugin:如何强制使用jar依赖项而不是项目依赖项 - maven-eclipse-plugin: how to force to use a jar dependency rather than project dependency 使用Eclipse插件清理部署程序集 - Cleaning Deployment Assembly with Eclipse Plugin 如何在Eclipse中打开Java项目(使用Maven)? (我使用M2E还是maven-eclipse-plugin) - How do I open a Java project (that uses maven) in Eclipse? (Do I use M2E or maven-eclipse-plugin) 用于Maven构建覆盖选项的Eclipse部署程序集 - Eclipse Deployment assembly for Maven build overlay option
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM