我已经安装了Maven。在命令提示符// vue.config.js
module.exports = {
chainWebpack: config => {
config.module
.rule('images')
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, { limit: 10240 }))
}
}
中显示正确的信息。在Mule中,是“测试Maven配置”。
我尝试对项目进行Mavenize,或者从一开始就使用Maven创建项目,或者更新项目依赖项,我在控制台上收到以下错误消息
mvn - version
POM文件
The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.*****.mule:******-system-service:1.0.2-SNAPSHOT (C:\GIT\mainframe-system-service\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.2 or one of its dependencies could not be resolved: Failure to find org.mule.tools.maven:mule-app-maven-plugin:jar:1.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR] Unknown packaging: mule @ line 8, column 16
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
我检查了JDK的设置是否正确。我还检查了Maven,它的配置也正确。
答案 0 :(得分:-1)
关于Your new Maven friend – the Mule Maven Plugin 2.0和Mule Plugin for Maven,我们应将pluginRepositories
配置如下:-
<pluginRepositories>
<pluginRepository>
<id>mule-public</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
</pluginRepository>
</pluginRepositories>
我们可以通过访问
在线进行浏览