0

为了告诉 Flexmojo Maven 插件您的项目应该使用特定的主题,有必要向您的项目添加一个范围“主题”依赖项,如下所示:

            <dependency>
                    <groupId>com.adobe.flex.framework</groupId>
                    <artifactId>spark</artifactId>
                    <version>4.1.0.16076</version>
                    <type>swc</type>
                    <scope>theme</scope>
            </dependency>

这可以正常工作,但会产生以下看起来很吓人的警告:

[WARNING] Some problems were encountered while building the effective
model for com.mycorp.core:myapp-core-flex-client:swf:1.0.0-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for
com.adobe.flex.framework:spark:swc must be one of [provided, compile,
runtime, test, system] but is 'theme'. @ line 48, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.

有没有办法将新类型的范围添加到 Maven 以便它接受它是合法的?或者至少摆脱警告?

4

1 回答 1

1

Maven 中作用域的数量是固定的,请参阅 POM 参考

于 2011-10-27T21:33:40.833 回答