如何为Maven插件指定执行目录?
我更新了原始问题,添加了以下内容,解决了问题:如何为Maven插件指定执行目录?,maven,extjs,sencha-cmd,Maven,Extjs,Sencha Cmd,我更新了原始问题,添加了以下内容,解决了问题: <workingDirectory>src/main/extApps/usx</workingDirectory> src/main/extApps/usx 我正在Maven中执行Sencha Cmd,但pom文件不在工具需要执行的应用程序目录中 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId&g
<workingDirectory>src/main/extApps/usx</workingDirectory>
src/main/extApps/usx
我正在Maven中执行Sencha Cmd,但pom文件不在工具需要执行的应用程序目录中
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<configuration>
<mainClass>com.atlantis.amc.AmcWebApp</mainClass>
</configuration>
<executions>
<execution>
<id>sencha-compile</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>sencha</executable>
<workingDirectory>src/main/extApps/usx</workingDirectory>
<arguments>
<argument>app</argument>
<argument>build</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
org.codehaus.mojo
execmaven插件
1.2
com.atlantis.amc.AmcWebApp
sencha编译
编译
执行官
森查
src/main/extApps/usx
应用程序
建造
或其他方式:
<arguments>
<argument>-sdk</argument>
<argument>${basedir}/src/main/extApps/usx</argument>
<argument>app</argument>
<argument>build</argument>
<argument>--clean</argument>
<argument>--environment</argument>
<argument>production</argument>
<argument>--destination</argument>
<argument>${basedir}/src/main/extApps/usx/build</argument>
</arguments>
$ sencha help app build