maven embedded error

Sammy在构建一个多模块的Maven项目时遇到了问题,其中一个网站模块依赖于服务模块,在编译过程中出现了错误提示,指出无法复制服务模块的相关文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Hello, I have a multi-module maven project. One of the modules is a
website that depends upon a services module. When I try to compile the
website I get the following error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to copy file for artifact[active project artifact:
        artifact = com.company.project:project-services:jar:0.0.1-SNAPSHOT:compile;
        project: MavenProject:
com.company.project:project-services:0.0.1-SNAPSHOT @
/Users/Sammy/Development/Projects/Project/services/pom.xml]

Embedded error:
/Users/Sammy/Development/Projects/Project/services/target/classes (No
such file or directory)

I have the services project added as a dependency for the website. Any ideas?

--
Thank you,
Sammy

 

m2e 0.9.7 enables workspace artifact resolution when launching maven
build for most projects now and not all Maven plugins like that. Current
workaround is to create explicit launch configuration (Run As->Maven
Build...) and disable workspace artifact resolution.

--
Regards,
Igor

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值