5 Replies Latest reply on Sep 29, 2011 3:13 AM by tobRim

    Compiling OSMF 1.6 in Maven for 10.1 or 10.0

    tobRim Level 1

      Hi every one,

       

      i have some problems to find the correct setup for my maven project to compile against the OSMF 1.6

      library. The client should be able to request the player with 10.1 / 10.0.

       

      I checked out the OSMF 1.6 release version.

      Previously i had a working setup for 1.5. I have to switch to 1.6 because i need the

      abilitiy to modify the timout and elay settings of a NetConnection.

       

      I played around a bit and got different errors,

      like StageVideoEvent not found or incomptible version errors

       

      What are the correct compiler settings?

       

      current state of my parent pom

        • 1. Re: Compiling OSMF 1.6 in Maven for 10.1 or 10.0
          tobRim Level 1

          ...

          <properties>

          <flexVersion>

            4.5.0.19786

          </flexVersion>

          <flexmojos.version>

            4.0-RC1

          </flexmojos.version>

          <targetPlayerVersion>

            10.2

          </targetPlayerVersion>

          ...

          • 2. Re: Compiling OSMF 1.6 in Maven for 10.1 or 10.0
            tobRim Level 1

            and the current state of my project pom

             

            ...

             

            <dependency><groupId>com.adobe.flex</groupId><artifactId>compiler</artifactId><version>4.5 .0.19786</version><type>pom</type><scope>internal</scope></dependency>

             

            ...

             

            <dependency><groupId>org.adobe.osmf</groupId><artifactId>osmf-framework</artifactId><vers ion>1.6</version><type>swc</type><scope>internal</scope></dependency>

             

            ...

             

            <build>

            <plugin><groupId>org.sonatype.flexmojos</groupId><artifactId>flexmojos-maven-plugin</artif actId>

            <dependencies><dependency><groupId>com.adobe.flex</groupId><artifactId>compiler</artifactI d><version>4.5.0.19786</version><type>pom</type></dependency></dependencies>

            <version>${flexmojos.version}</version><extensions>true</extensions><configuration><target Player>${targetPlayerVersion}</targetPlayer>

            <configFiles><configFile>flex-config-swf-version-10.xml</configFile></configFiles>

            <defines><property><name>CONFIG::LOGGING</name><value>false</value></property><property><n ame>CONFIG::debug</name><value>${ming.debug}</value></property></defines>

            • 3. Re: Compiling OSMF 1.6 in Maven for 10.1 or 10.0
              tobRim Level 1

              the config includes:

               

              <flex-config><swf-version>10</swf-version></flex-config>

              • 4. Re: Compiling OSMF 1.6 in Maven for 10.1 or 10.0
                Silviu Vergoti Adobe Employee

                Please check the release notes for OSMF to find the new conditional compile parameters that you need to use :

                CONFIG::PLATFORM=true and CONFIG::MOCK=false.

                Besides, swfversion should be 11 and it's recommended that you upgrade to flex SDK 4.5.

                 

                Let me know it that worked,

                 

                S.

                • 5. Re: Compiling OSMF 1.6 in Maven for 10.1 or 10.0
                  tobRim Level 1

                  Thanks for the reply.

                   

                  I have to solve another problem previously.

                   

                  I have to find the problem for this message:

                  Flex compiler and flex framework versions doesn't match. Compiler: '4.5.0.19786' - Framework: '4.1.0.16076'.

                   

                  I hope this caused by: <scope>caching</scope>...