我有一个可可项目,我想用maven构建它。是否有用于构建objective-c代码的maven插件?
答案 0 :(得分:2)
我已经使用了exec插件来运行命令行cocoa,效果很好。
<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>