使用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>
另外有个 maven 的 xcode 插件也可以: maven-xcode-plugin
使用exec插件运行命令行 cocoa 就可以
另外有个 maven 的 xcode 插件也可以: maven-xcode-plugin