java - Maven 插件创建找不到错误

标签 java maven mule mule-studio

我在我的 Maven 项目中使用以下插件

<plugin>
    <groupId>org.mule.tools.maven</groupId>
    <artifactId>mule-app-maven-plugin</artifactId>
    <version>${mule.tools.version}</version>
    <extensions>true</extensions>
    <configuration>
        <copyToAppsDirectory>true</copyToAppsDirectory>
        <inclusions>
            <inclusion>
                <groupId>org.mule.modules</groupId>
                <artifactId>mule-module-extensions-support</artifactId>
            </inclusion>
            <inclusion>
                <groupId>org.mule.modules</groupId>
                <artifactId>mule-module-extensions-spring-support</artifactId>
            </inclusion>
        </inclusions>
    </configuration>
</plugin> 

使用该插件时,我收到以下错误

Project build error: Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.5.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar

但是我已经配置了 JDK 而不是 JRE.I a

最佳答案

检查此链接:

Unresolveable error occured in org.mule.tools.maven

最后一行中的错误确实表明它仍然指向 JRE: C:\program files\java\jre...

应该是c:\program files\java\jdl1.x.xX\jre

关于java - Maven 插件创建找不到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43419750/

相关文章:

exception - 配置了 maxRedeliveryAttempts 和 VM 入站的回滚策略不会重新传送消息

java - 如何让 IntelliJ 识别 Play Framework *.scala.xml 模板

java - 连接 mongolab 上 mongoDB 中的端口

java - eclipse 。在 list 配置中发现错误。如何解决?

java - mule http 中的错误请求(400)

Mule - 无法找到流类型 : class java. lang.String 的 StreamCloser

java - 使用POI Word API,如何在后续页面上重复表格标题?

java.lang.IllegalStateException : No WebApplicationContext found: no ContextLoaderListener or DispatcherServlet registered error 错误

maven - 运行未修改的原型(prototype) CXF JAX RS 项目时出错

java.lang.ClassCastException : org. hibernate.action.DelayedPostInsertIdentifier 无法转换为 java.lang.Long