天天看點

maven embedded error

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

繼續閱讀