我正在尝试使用maven插件构建Xcode应用程序,我写了pom.xml
,如下所示
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yqlabsEnterprise.SampleMaven</groupId>
<artifactId>SampleMaven</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>xcode-lib</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>com.sap.prd.mobile.ios.mios</groupId>
<artifactId>xcode-maven-plugin</artifactId>
<version>1.14.0</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
我安装了maven,并使用终端运行maven,但我的应用程序没有成功构建,我得到了错误:
无法在项目SampleMaven上执行目标com.sap.prd.移动的.ios.米奥斯:xcode-maven-plugin:1.14.0:prepare-xcode-build(default-prepare-xcode-build):执行default-prepare-xcode-build of goal com.sap.prd.移动的.ios.米奥斯:xcode-maven-plugin:1.14.0:prepare-xcode-build failed:在执行com.sap.prd.移动的.ios.米奥斯:xcode-maven-plugin:1.14.0:prepare-xcode-build时缺少必需的类:Lorg/sonatype/aether/RepositorySystem
你能帮我解决这个问题吗?
1条答案
按热度按时间hkmswyz61#
您需要从the plugin is not compatible with later versions of Maven降级到Maven 3.0.x。原因是Java包
org.sonatype.aether.*
已重命名为org.eclipse.aether.*
。