我在我的 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/