java - MuleStudio 工作室 :studio goal failed to execute

标签 java maven mule mule-studio

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

然后,在对 pom 进行任何修改(即添加一个空行)之后,我收到以下错误(在项目名称上方的感叹号上)。我仍然可以毫无错误地执行 mvn clean install 并获得一个我可以部署的 jar。但是,我想消除错误。

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

编辑

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

[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 上未显示错误的项目上运行此构建时,我收到完全相同的错误消息。

最佳答案

尝试将此存储库定义添加到 pom.xml 或 settings.xml 中的 pluginRepository 部分:

<pluginRepositories>
    ...
    <pluginRepository>
        <id>mule-ee-public</id>
        <url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>           
    </pluginRepository>
    ...
</pluginRepositories>

可能是因为 Studio 错误,未考虑此存储库,因此需要下载插件。

关于java - MuleStudio 工作室 :studio goal failed to execute,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24554383/

相关文章:

Java类加载器,加载的类类依赖怎么办?

java.lang.NoSuchMethodError : org. mortbay.thread.Timeout.tick(J)V

Mule ESB 3.6.0 谷歌云消息传递

java - Mock Mule JavaComponent

java - 某些函数文本在 netbeans ide 上显示为横线

java - Weblogic FileStore 中的 OutOfMemoryError

java - ImageIcon 加载速度越来越慢

java - Maven 程序集 : NoClassDefFoundError

maven - 使用 ansible 模块运行 "mvn clean install"maven 命令

http - 如何在Mule的http请求连接器中动态设置完整的url