Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Problem debugging mojo using aether referring to a project in workspace


Hello,

I'm getting the exception below when debugging a mojo that is using aether api to install some artifacts in a local repository:

InstallRequest installRequest = new InstallRequest();
        installRequest.setArtifacts(artifactsToSave.values());
        try {
            repositorySystem.install(session, installRequest);
        } catch (InstallationException e) {
            getLog().error(e);


It seems that the error is related to the fact that the artifact to be an open project in the eclipse workspace. right ?

org.eclipse.aether.installation.InstallationException: Failed to install artifact org.lunifera.runtime.kernel:org.lunifera.runtime.kernel.provisioning:jar:0.1.1-SNAPSHOT: /home/cvgaviao/Development/C4Biz_Projects/Lunifera-Workspace/lunifera-runtime-kernel/org.lunifera.runtime.kernel.provisioning/target/classes (Is a directory)

any workaround other than close the complained project ?

thanks,

Cristiano

Back to the top