在Eclipse中执行项目时,我面临以下问题:
Publishing failed with multiple errors
File not found: D:\Programs\j2ee\OnlineLibrary\target\m2e-wtp\web-resources\META-INF\maven\OnlineLibrary\OnlineLibrary\pom.properties.
D:\Programs\j2ee\OnlineLibrary\target\m2e-wtp\web-resources\META-INF\maven\OnlineLibrary\OnlineLibrary\pom.properties (The system cannot find the path specified)
File not found: D:\Programs\j2ee\OnlineLibrary\target\m2e-wtp\web-resources\META-INF\maven\OnlineLibrary\OnlineLibrary\pom.xml.
D:\Programs\j2ee\OnlineLibrary\target\m2e-wtp\web-resources\META-INF\maven\OnlineLibrary\OnlineLibrary\pom.xml (The system cannot find the path specified)系统配置:
步骤如下:
- Click **Project-->Preferences-->Maven**. Selected the artifacts download options
- Click **Maven-->Installations**. Added the maven installation (C:\apache-maven-3.3.9) and set it as default
- Click **Maven-->Templates**. Below mention Templates are in "Off" mode "m2e profile","m2e-wtp activation,"m2e-wtp JAX-RS activation","m2e-wtp JPA activation","m2e-wtp JSF activation", "m2e-wtp's specific context root property".
- Click **Maven-->User Settings**. Global Setting, Local Settings points to C:\apache-maven-3.3.9\conf\settings.xml Local Repository points to custom repositories path as below: D:\Programs\Maven\Maven\_Repositories
但是,当我试图在服务器上执行/运行项目时,会显示错误:
发布于 2019-05-07 06:07:39
这并不能解释这个问题,但我用Maven->Update (S)解决了同样的问题
发布于 2016-12-11 08:46:14
转到"Servers“选项卡,然后首先启动服务器。确保这是您的项目所使用的同一服务器。如果尚未添加服务器,则添加新服务器。
现在运行您的项目,它将要求服务器“继续”到“重新启动服务器”。选择“继续”,它应该运行良好。对我起作用了。
https://stackoverflow.com/questions/34854522
复制相似问题