题
我有一个可可的项目,我想用Maven构建它。有用于构建目标c代码的任何行家插件?
解决方案
我已经使用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>
不隶属于 StackOverflow