0

我正在尝试从 Flex 库构建 SWC 文件,无论我做什么,flexmojos (3.6.1) 似乎在 bin/classes 文件夹中构建了一个“config.xml”文件,该文件为空,并使用它对于配置,完全忽略了我放入 plugin > configuration 元素中的所有内容。我已经尝试过通过 m2e 和 Jenkins 运行命令行,每次都遇到同样的问题。我被卡住了,我不知道我做错了什么。

这是我的 POM 的构建部分。

<sourceDirectory>${basedir}/src</sourceDirectory>
<directory>${basedir}/bin</directory>
<plugins>
    <plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>3.6.1</version>
        <extensions>true</extensions>
        <dependencies>
            <dependency>
                <groupId>com.adobe.flex</groupId>
                <artifactId>compiler</artifactId>
                <version>${flex.version}</version>
                <type>pom</type>
            </dependency>
        </dependencies>
        <configuration>
            <computeDigest>false</computeDigest>
            <allowSourcePathOverlap>true</allowSourcePathOverlap>
            <debug>false</debug>
            <warnings>
                <no-constructor>false</no-constructor>
            </warnings>
        </configuration>
    </plugin>
</plugins>
4

1 回答 1

0

Turns out I was running an older compile-swc target. When I flipped over to the new target I was fine. the m2e Eclipse plugin did not provide me the choice to select the latest target in their build configuration settings.

于 2012-07-13T18:49:46.110 回答