building cocoa project with maven

元气小坏坏 提交于 2019-12-09 05:55:03

问题


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


回答1:


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>


来源:https://stackoverflow.com/questions/1899021/building-cocoa-project-with-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!