MuleStudio工作室:工作室目标无法执行 [英] MuleStudio studio:studio goal failed to execute

查看:65
本文介绍了MuleStudio工作室:工作室目标无法执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mule Studio工作区中(从Mule Studio中)复制/粘贴了一个正在工作的项目,以创建一个新项目.之后,我可以在新项目上进行mvn全新安装,一切正常.

I copied/pasted a working project in my Mule Studio workspace (from within Mule Studio) to create a new project. After that, I could do a mvn clean install on the new project and everything worked fine.

然后,在pom上进行任何修改(即添加空白行)后,出现以下错误(在项目名称上带有感叹号).我仍然可以正确执行mvn clean install并获得可以部署的jar.但是,我想消除该错误.

Then, after any modification on the pom (i.e. add a blank line), I'm getting the following error (On an exclamation mark over the project name). I can still execute mvn clean install without errors and obtain a jar that I can deploy. However, I'd like to eliminate the error.

项目ProjectName上的构建问题,studio:studio目标失败 执行,检查Maven输出控制台中的日志

Build problem on project ProjectName, studio:studio goal failed to execute, check the Maven Output console for logs

编辑

这是我在控制台中可以读取的内容

EDIT

This is what I can read in the console

[ERROR] No plugin found for prefix 'studio' in the current project and in the plugin groups [org.apache.maven.plugins, mojo.codehaus.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\_jde\maven\repo), nexus (http://nexusserver00:8080/nexus/content/groups/public)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'studio' in the current project and in the plugin groups [org.apache.maven.plugins, mojo.codehaus.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\_jde\maven\repo), nexus (http://nexusserver00:8080/nexus/content/groups/public)]
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:94)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR] 

观察:

当我在没有在Mule Studio上显示错误的项目上运行此版本时,我会得到完全相同的错误消息.

When I run this build on the project that doesn't show the error on Mule Studio, I get exactly the same error message.

推荐答案

最后我以这种方式解决了这个问题:

Finally I solved it this way:

  1. 将新项目复制到另一个文件夹,并将其从当前工作空间中删除.

  1. Copy the new project to another folder and remove it from current workspace.

在窗口/首选项/Mule Studio/Maven设置"中,取消选中两个复选框(启用Maven支持"和启用自动维护".)

In Window/Preferences/Mule Studio/Maven Settings, uncheck both checkboxes (Enable Maven Suppport and Enable Automatic Maintenance).

导入项目.

选中第2步中未选中的两个复选框.

Check both checkboxes unchecked in step 2.

该错误不再显示.

这篇关于MuleStudio工作室:工作室目标无法执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆