转载

Maven不会创建“/ target / m2e-wtp / web-resources”文件夹

我正在使用Eclipse Luna.我正在开发一个Maven项目.当我尝试在weblogic的应用程序服务器上运行我的应用程序,并且使用该消息抛出异常:

weblogic.application.ModuleException: [HTTP:101027][WebAppModule(_auto_generated_ear_:MyAppName)] Document root: "D:/MGelbana/workspace/my-app-name/target/m2e-wtp/web-resources" does not exist.

我查看了项目的部署程序集配置,并发现以下错误消息:找不到条目:“/ target / m2e-wtp / web-resources”

所以我认为Luna的默认Maven安装不是我需要我卸载它,我从这个URL( http://download.eclipse.org/m2e-wtp/releases/luna/ )安装M2E-WTP,但我相信我最终使用相同的版本和相同的选项.

我了解这个插件可以选择生成这个文件夹/ target / m2e-wtp / web-resources,这有助于Eclipse将应用程序部署到应用程序服务器中(运行在服务器选项上)

(Which is my end goal but I’m having issues with deploying

the application with it’s needed dependencies. If I generate the

application’s WAR file by Install ing the maven project and deploying the generated

that WAR manually, the application works, but I need to be able to debug/run

it on the application server using Eclipse.)

但是这个文件夹(即/ target / m2e-wtp / web-resources)不会被创建!

在Eclipse的Maven> Java EE集成> WAR项目首选项> Maven archiver生成的文件在build目录下(我选中了这个选项)

在项目特定的选项中,我只有一个Maven菜单和一个生命周期映射子菜单,与maven归档器生成文件无关!

那么如何直接maven输出与WTP相关的文件?

原文  https://codeday.me/bug/20181016/291446.html
正文到此结束
Loading...