`
www-hello
  • 浏览: 99034 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

maven 中 flex 编译选项的local

    博客分类:
  • flex
阅读更多

The flexmojos goal "flexbuilder" does not configure the compiler settings in FlexBuilder/FlashBuilder correctly. To be able to compile and run the application in the Builder you have to set the compiler settings similar to this:

-locale=en_US,de_DE -source-path=..\resources\locale\{locale} -allow-source-path-overlap=true


In this example english and german localizations are available and the locale property files are located in the folder resources/locale/en_US and resources/locale/de_DE.

 

-------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------

%USERPROFILE%\.m2\settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <profiles>
     <profile>
        <id>flex-mojos</id>
            <repositories>
                <!-- Required for regular plugin use until moved over to Maven central repo. -->
                <repository>
                    <id>flex-mojos-repository</id>
                    <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
                    <releases> <enabled>true</enabled> </releases>
                    <snapshots> <enabled>false</enabled> </snapshots>
                </repository>
                
                <!-- Required for building plugin from source. -->
                <repository>
                    <id>flex-mojos-internal-repository</id>
                    <url>http://repository.sonatype.org/content/groups/public/</url>
                    <releases> <enabled>true</enabled> </releases>
                    <snapshots> <enabled>true</enabled> </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <!-- Required for regular plugin use until moved over to Maven central repo. -->
                <pluginRepository>
                    <id>flex-mojos-plugin-repository</id>
                    <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
                    <releases> <enabled>true</enabled> </releases>
                    <snapshots> <enabled>false</enabled> </snapshots>
                </pluginRepository>
                
                <!-- Required for building plugin from source. -->
                <pluginRepository>
                    <id>flex-mojos-internal-plugins-repository</id>
                    <url>http://repository.sonatype.org/content/groups/public/</url>
                    <releases> <enabled>true</enabled> </releases>
                    <snapshots> <enabled>true</enabled> </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>

    <activeProfiles>
        <activeProfile>flex-mojos</activeProfile>
    </activeProfiles>
</settings>
 

 

分享到:
评论
1 楼 zhuzhijia 2010-09-01  
我感觉maven在编译flex的时候,总是会出现很多问题,经常性在命令行中mvn install后,回报大量的错,而这些failure主要又是因为maven无法自动下载plugin造成的,完后会提示MISSING信息,建议你去sonatype\maven2站点上去手动下载那些需要的jar文件,然后需要手动去install,而且再次编译,又会翻来覆去报missing的错误,而且有些jar文件在sonatype\maven2已经不存在了,这就更加要命了,不知道楼主有没有遇到过这种问题啊,还是有什么好的办法可以去解决下?

相关推荐

Global site tag (gtag.js) - Google Analytics