使用sencha的构建项目失败

时间:2020-09-30 11:13:36

标签: maven sencha-touch

当我使用Maven构建项目时,出现错误

Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.3.2: java (default-cli) on project project-name: The parameters 'mainClass' for goal org.codehaus. mojo: exec-maven-plugin: 1.3.2: java are missing or invalid

试图单独组装模块。在终端intelij想法中运行-> sencha应用程序构建-干净-环境测试-目标project-client \ target \ project

C:\Users\bin\Sencha\Cmd\6.5.3.6\plugin.xml:325: The following error occurred while executing this line:
C:\Users\bin\Sencha\Cmd\6.5.3.6\ant\build\app\build-impl.xml:387: The following error occurred while executing this line:
C:\Users\bin\Sencha\Cmd\6.5.3.6\ant\build\app\init-impl.xml:436: com.sencha.exceptions.ExBuild: Failed to find any files for C:\Users\eduard.farkhutdinov\Desktop\project-MAVEN\project\project-client\ui-app\ext\classic\classic\src\fx\Manager.js::ClassRequire::Ext.fx.target.Element
     at com.sencha.ant.AntScript.execute(AntScript.java:121

     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>com.project</groupId>
    <artifactId>project</artifactId>
    <version>5.0.37</version>
</parent>
<artifactId>project-client</artifactId>
<packaging>war</packaging>
<version>${project.version}</version>

<build>
    <finalName>project</finalName>
    <plugins>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>${exec-plugin.version}</version>
            <executions>
                <execution>
                    <id>generate-resources</id>
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                    <configuration>
                        <executable>sencha</executable>
                        <arguments>
                            <argument>app</argument>
                            <argument>build</argument>
                            <argument>--clean</argument>
                            <argument>--environment</argument>
                            <argument>testing</argument>
                            <argument>--destination</argument>
                            <argument>${basedir}/target/project</argument>
                        </arguments>
                        <workingDirectory>${basedir}/ui-app</workingDirectory>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

0 个答案:

没有答案