用Maven构建可可项目 [英] building cocoa project with maven

查看:79
本文介绍了用Maven构建可可项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可可项目,我想用Maven构建它.是否有用于构建Objective-C代码的Maven插件?

i have a cocoa project and i'd like to build it with maven. is there any maven plugin for building objective-c code?

推荐答案

我使用exec插件运行命令行可可产生了很好的效果.

I have used the exec plugin to run command line cocoa to good affect.

    <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>

这篇关于用Maven构建可可项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆