Announcement Announcement Module
Collapse
No announcement yet.
Upgrade to Flexmojos 4.0-SNAPSHOT N Flex SDK 4.5.0.18623 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upgrade to Flexmojos 4.0-SNAPSHOT N Flex SDK 4.5.0.18623

    一、
    Note:must use maven 3.0.2
    check out SAS 1.2-SNAPSHOT from svn https://src.springframework.org/svn/...cript-as/trunk, change the "spring-actionscript-superpom" pom.xml like this:
    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    
        <modelVersion>4.0.0</modelVersion>
        <groupId>org.springextensions.actionscript</groupId><artifactId>spring-actionscript-superpom</artifactId>
        <name>Spring ActionScript Base</name><version>1.2-SNAPSHOT</version><packaging>pom</packaging>
    
        <modules>
            <module>spring-actionscript-core</module>
            <module>spring-actionscript-test</module>
            <module>spring-actionscript-cairngorm</module>
            <!--<module>spring-actionscript-puremvc-standard</module>-->
        </modules>
    
        <properties>
            <!-- Replaces default system encoding. -->
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
            <flexmojos.version>4.0-SNAPSHOT</flexmojos.version>
            <flex-sdk.version>4.5.0.18623</flex-sdk.version>
            <!-- AS3Commons -->
            <as3commons-reflect.version>1.3.4</as3commons-reflect.version>
            <as3commons-lang.version>0.3.2</as3commons-lang.version>
            <as3commons-logging.version>1.2</as3commons-logging.version>
            <as3commons-bytecode.version>1.0-RC1</as3commons-bytecode.version>
            <as3commons-eventbus.version>1.1.1</as3commons-eventbus.version>        
            <!-- Other -->
            <flexunit.version>0.90</flexunit.version>
            <cairngorm.version>2.2.1</cairngorm.version>
            <puremvc-standard.version>2.0.4</puremvc-standard.version>
            <flex-pmd.version>1.2</flex-pmd.version>
    
        </properties>
        <repositories>
            <repository><id>flexmojos</id><url>http://repository.sonatype.org/content/groups/flexgroup</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository>
            <repository><id>springactionscript-releases</id><url>http://projects.yoolab.org/maven/content/repositories/releases</url></repository>
            <repository><id>springactionscript-snapshots</id><url>http://projects.yoolab.org/maven/content/repositories/snapshots</url></repository>        
        </repositories>
        <pluginRepositories>
            <pluginRepository><id>flexmojos-plugin</id><url>http://repository.sonatype.org/content/groups/flexgroup</url><releases><enabled>true</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository>
            <pluginRepository><id>flexpmd.opensource.adobe</id><url>http://opensource.adobe.com/svn/opensource/flexpmd/maven-repository/release</url></pluginRepository>
        </pluginRepositories>
        
        <dependencies>
            <dependency><groupId>com.adobe.flexunit</groupId><artifactId>flexunit</artifactId><version>${flexunit.version}</version><type>swc</type><scope>test</scope></dependency>
            
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>mx</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>flash-integration</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>framework</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>framework</artifactId><version>${flex-sdk.version}</version><type>zip</type>
                <classifier>configs</classifier>
            </dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>rpc</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>spark</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>        
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>sparkskins</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope>
                <classifier>10.2</classifier>
            </dependency>
    
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>rpc</artifactId><version>${flex-sdk.version}</version><type>rb.swc</type><scope>external</scope></dependency>
            <dependency><groupId>com.adobe.flex.framework</groupId><artifactId>textLayout</artifactId><version>${flex-sdk.version}</version><type>swc</type><scope>external</scope></dependency>
            <dependency><groupId>org.as3commons</groupId><artifactId>as3commons-lang</artifactId><version>${as3commons-lang.version}</version><type>swc</type><scope>external</scope>
                <exclusions>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>flex-framework</artifactId></exclusion>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId></exclusion>
                </exclusions>
            </dependency>
            <dependency><groupId>org.as3commons</groupId><artifactId>as3commons-reflect</artifactId><version>${as3commons-reflect.version}</version><type>swc</type><scope>external</scope>
                <exclusions>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>flex-framework</artifactId></exclusion>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId></exclusion>                
                        <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>sparkskins</artifactId></exclusion>
                        <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>textLayout</artifactId></exclusion>
                        <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>osmf</artifactId></exclusion>                
                </exclusions>
            </dependency>
            <dependency><groupId>org.as3commons</groupId><artifactId>as3commons-logging</artifactId><version>${as3commons-logging.version}</version><type>swc</type><scope>external</scope>
                <exclusions>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>flex-framework</artifactId></exclusion>
                    <exclusion><groupId>org.as3commons</groupId><artifactId>as3commons-logging</artifactId></exclusion>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId></exclusion>
                </exclusions>
            </dependency>        
            <dependency><groupId>org.as3commons</groupId><artifactId>as3commons-bytecode</artifactId><version>${as3commons-bytecode.version}</version><type>swc</type><scope>external</scope>
                <exclusions>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>flex-framework</artifactId></exclusion>
                    <exclusion><groupId>org.as3commons</groupId><artifactId>as3commons-bytecode</artifactId></exclusion>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId></exclusion>
                </exclusions>
            </dependency>
    
            <dependency><groupId>org.as3commons</groupId><artifactId>as3commons-eventbus</artifactId><version>${as3commons-eventbus.version}</version><type>swc</type>
                <exclusions>
                    <exclusion><groupId>com.adobe.flex.framework</groupId><artifactId>playerglobal</artifactId></exclusion>
                    <exclusion><groupId>com.adobe.flexunit</groupId><artifactId>flexunit</artifactId></exclusion>
                </exclusions>
            </dependency>
        </dependencies>
    continue
    Last edited by bencmai; Mar 7th, 2011, 04:58 AM.

  • #2
    Code:
        <build>
            <sourceDirectory>src/main/actionscript</sourceDirectory>
            <testSourceDirectory>src/test/actionscript</testSourceDirectory>
            <defaultGoal>install</defaultGoal>
            <resources>
                <resource><directory>src/main/resources</directory><filtering>true</filtering></resource>
            </resources>
            <testResources>
                <testResource><directory>src/test/resources</directory><targetPath>test-classes</targetPath><filtering>true</filtering></testResource>
            </testResources>
    
            <plugins>
                  <plugin><artifactId>maven-clean-plugin</artifactId><version>2.4.1</version>
                      <configuration>
                          <filesets>
                              <fileset><directory>src/main/actionscript</directory><includes><include>FlexUnitApplication.mxml</include></includes></fileset>
                          </filesets>
                      </configuration>
                  </plugin>            
                 <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>2.4.3</version>
                     <configuration>
                         <escapeWindowsPaths>false</escapeWindowsPaths>
                         <outputDirectory>${project.build.directory}</outputDirectory>
                         <nonFilteredFileExtensions>
                             <nonFilteredFileExtension>swf</nonFilteredFileExtension>
                         </nonFilteredFileExtensions>
                     </configuration>
                 </plugin>            
    
                <plugin><groupId>org.sonatype.flexmojos</groupId><artifactId>flexmojos-maven-plugin</artifactId><version>${flexmojos.version}</version>
                    <dependencies>
                        <!--<dependency><groupId>org.sonatype.flexmojos</groupId><artifactId>flexmojos-flex3-compatibility-layer</artifactId><version>${flexmojos.version}</version></dependency>-->
                        <dependency><groupId>com.adobe.flex</groupId><artifactId>compiler</artifactId><version>${flex-sdk.version}</version><type>pom</type></dependency></dependencies>
                    <extensions>true</extensions>
                    <configuration>
                        <keepAs3Metadatas>
                            <param>Autowired</param><param>Inject</param><param>Command</param><param>Component</param><param>Constructor</param>
                            <param>Event</param><param>EventHandler</param><param>Property</param><param>Invoke</param><param>PostConstruct</param>
                            <param>PreDestroy</param><param>Required</param><param>RouteEvents</param><param>RouteMVCEvents</param>
                        </keepAs3Metadatas>
                        <updateSecuritySandbox>true</updateSecuritySandbox>
                        <configurationReport>true</configurationReport>
                       <includeClasses>
                             <scan>
                               <includes>
                                 <include>org.springextensions.actionscript.*</include><include>org.springextensions.actionscript.*.*</include><include>org.springextensions.actionscript.*.*.*</include>
                                 <include>org.springextensions.actionscript.*.*.*.*</include><include>org.springextensions.actionscript.*.*.*.*.*</include><include>org.springextensions.actionscript.*.*.*.*.*.*</include>
                               </includes>
                             </scan>               
                       </includeClasses>
                        <skipRSLCreation>true</skipRSLCreation><ditaSkip>true</ditaSkip>
                        <testFailureIgnore>true</testFailureIgnore><firstConnectionTimeout>100000</firstConnectionTimeout><testTimeout>100000</testTimeout><!--   
                        <localesCompiled><locale>zh_CN</locale></localesCompiled>
                        <toolsLocale>zh_CN</toolsLocale>                                    
                    --></configuration>
                </plugin>
            </plugins>
        </build>
    </project>
    二、
    according to http://forums.adobe.com/thread/646690 upgrade to use http://sourceforge.net/adobe/cairngorm/wiki/Downloads/ cairngorm2.2.2 and install to local repository

    三、
    change to root dir of svn checked out soures mvn clean compile test
    most test is pass but two ,they are:
    "spring-actionscript-core"
    Code:
       org.springextensions.actionscript.context.support.XMLApplicationContextTest.testLoadWithAutoWireByTypeAndDependencyCheck()
       org.springextensions.actionscript.core.mvc.MVCRouteEventsMetaDataPostProcessorTest.testProcess()
    Code:
         The testLoadWithAutoWireByTypeAndDependencyCheck() is not so stable ,when I change addAsync test to 5000ns,some time test pass ,but some time fail
         Who can make these fail two test pass ?
    Last edited by bencmai; Mar 7th, 2011, 05:04 AM.

    Comment

    Working...
    X