Java Anypoint studio中的Maven错误:无法解决的生成扩展

Java Anypoint studio中的Maven错误:无法解决的生成扩展,java,maven,mule,anypoint-studio,Java,Maven,Mule,Anypoint Studio,我正在尝试在anypoint studio中使用maven构建一个新项目。但是,我得到以下错误: [16:42:59] Running: mvn clean package mvn clean install [INFO] Scanning for projects... [INFO] Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/org/mule/tools/maven/mule-a

我正在尝试在anypoint studio中使用maven构建一个新项目。但是,我得到以下错误:

[16:42:59] Running: mvn clean package mvn clean install
[INFO] Scanning for projects...
[INFO] Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/org/mule/tools/maven/mule-app-maven-plugin/1.1/mule-app-maven-plugin-1.1.pom
[INFO] Downloading: http://repository.mulesoft.org/releases/org/mule/tools/maven/mule-app-maven-plugin/1.1/mule-app-maven-plugin-1.1.pom
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/mule/tools/maven/mule-app-maven-plugin/1.1/mule-app-maven-plugin-1.1.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-app-maven-plugin:jar:1.1 @ 
[ERROR] Unknown packaging: mule @ line 8, column 16
@ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.mycompany:soap_wsclient_maven:1.0.0-SNAPSHOT (C:\Users\Mahsa\Desktop\AnypointStudio\Workspace\soap_wsclient_maven\pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-app-maven-plugin:jar:1.1: Could not transfer artifact org.mule.tools.maven:mule-app-maven-plugin:pom:1.1 from/to mule-public (https://repository.mulesoft.org/nexus/content/repositories/public): Connect to repository.mulesoft.org:443 [repository.mulesoft.org/52.7.200.18] failed: Connection timed out: connect -> [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
在首选项中,我将“已安装的JRE”设置为指向JDK安装(JDK1.8.0131)。我使用的maven版本是3.5.0

POM配置如下(仅包括错误中的相关部分):

4.0.0
com.mycompany
soap\u wsclient\u maven
1.0.0-SNAPSHOT
骡子
Mule soap\u wsclient\u maven应用程序
....
org.mule.tools.maven
mule应用程序maven插件
${mule.tools.version}
真的
真的

我知道这个问题已经被问过好几次了。但我无法通过查看类似的问题来解决我的问题。

显然,这是一个代理问题。因此,我通过在maven中的setting.xml上添加代理配置解决了这个问题:

 <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>proxyuser</username>
  <password>proxypass</password>
  <host>proxy.host.net</host>
  <port>80</port>
  <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>

可选择的
真的
http
代理用户
proxypass
proxy.host.net
80
local.net | some.host.com
 <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>proxyuser</username>
  <password>proxypass</password>
  <host>proxy.host.net</host>
  <port>80</port>
  <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>