2

我正在尝试使用 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 运行,但我的应用程序没有成功构建,我得到了错误

"Failed to execute goal com.sap.prd.mobile.ios.mios:xcode-maven-plugin:1.14.0:prepare-xcode-build (default-prepare-xcode-build) on project SampleMaven: Execution default-prepare-xcode-build of goal com.sap.prd.mobile.ios.mios:xcode-maven-plugin:1.14.0:prepare-xcode-build failed: A required class was missing while executing com.sap.prd.mobile.ios.mios:xcode-maven-plugin:1.14.0:prepare-xcode-build: Lorg/sonatype/aether/RepositorySystem"

请你帮我解决这个问题。

4

1 回答 1

1

您需要降级到 Maven 3.0.x,因为该插件与更高版本的 Maven 不兼容。原因是 Java 包 org.sonatype.aether.*已重命名为org.eclipse.aether.*.

于 2014-06-11T02:44:17.600 回答