Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为Maven插件指定执行目录?_Maven_Extjs_Sencha Cmd - Fatal编程技术网

如何为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