7

我有一个可可项目,我想用 maven 构建它。是否有任何用于构建objective-c代码的maven插件?

4

1 回答 1

2

我已经使用 exec 插件来运行命令行可可,效果很好。

    <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>1.1</version>
          <executions>
             <execution>
                  <phase>${cocoa.phase}</phase>
                  <goals>
                     <goal>exec</goal>
                  </goals>
             </execution>
          </executions>
          <configuration>
             <executable>xcodebuild</executable>
             <workingDirectory>${project.build.directory}/</workingDirectory>
          </configuration>
        </plugin>
于 2011-07-15T19:41:25.700 回答