0 Replies Latest reply on Apr 27, 2011 2:23 AM by Karl_Sigiscar_1971

    TargetPlayer and playerglobal dependency version doesn't match! Target player: 10.0.0, player global

    Karl_Sigiscar_1971 Level 3

      Hi,

       

      I have a simple project in Flash Builder 4 that uses Fiber. I am writing a Maven build for it now. Made progress but something is bugging me.

       

      When building, I get the following error:

      TargetPlayer and playerglobal dependency version doesn't match! Target player: 10.0.0, player global: 9

       

      I double-checked that the playerglobal dependency version is 10, not 9. It has been uploaded to our Nexus server from the following location:

      C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\player\10.0

       

      Here is the pom.xml file:

       

      <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/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
          <parent>
              <groupId>com.mycompany.tradepublication</groupId>
              <artifactId>ftl-parent</artifactId>
              <version>1.5-SNAPSHOT</version>       
          </parent>
         
          <properties>
              <flex.version>4.0.0.14159</flex.version>
              <flash.version>10.0.0</flash.version>
              <flash.player.classifier>10</flash.player.classifier>
              <flashplayer.version.major>10</flashplayer.version.major>
              <flashplayer.version.minor>0</flashplayer.version.minor>
              <flashplayer.version.revision>0</flashplayer.version.revision>
              <flashplayer.version>${flashplayer.version.major}.${flashplayer.version.minor}.${flashpla yer.version.revision}</flashplayer.version>
              <playerglobal.version>${flashplayer.version.major}</playerglobal.version>
          </properties>

       

          <groupId>com.mycompany.tradepublication</groupId>
          <artifactId>ftladmin-flex</artifactId>
          <packaging>swf</packaging>
          <name>FTL Admin Flex</name>
          <version>1.0.0</version>

       

          <build>
              <sourceDirectory>gui/src/main/flex</sourceDirectory>
              <testSourceDirectory>gui/src/main/flex</testSourceDirectory>

       

              <plugins>
                  <!-- FlexMojos -->
                  <plugin>
                      <groupId>org.sonatype.flexmojos</groupId>
                      <artifactId>flexmojos-maven-plugin</artifactId>
                      <version>3.7.1</version>
                      <extensions>true</extensions>

       

                      <dependencies>
                          <dependency>
                              <groupId>com.adobe.flex</groupId>
                              <artifactId>compiler</artifactId>
                              <version>4.0.0.14159</version>
                              <type>pom</type>
                          </dependency>
                      </dependencies>

       

                      <configuration>
                          <targetPlayer>10.0.0</targetPlayer>
                          <incremental>false</incremental>
                          <debug>false</debug>
                          <locale>en_US</locale>
                          <optimize>true</optimize>
                          <showWarnings>true</showWarnings>
                          <strict>true</strict>
                          <useNetwork>true</useNetwork>
                          <allowSourcePathOverlap>true</allowSourcePathOverlap>
                          <sourceFile>GridTest.mxml</sourceFile>
                          <contextRoot>${context.root}</contextRoot>
                      </configuration>
                  </plugin>
              </plugins>
          </build>

       

          <dependencies>
              <dependency>
                  <groupId>com.adobe.flex.framework</groupId>
                  <artifactId>framework</artifactId>
                  <version>4.0.0.14159</version>
                  <type>pom</type>
                  <scope>compile</scope>
                  <exclusions>
                    <exclusion>
                      <groupId>com.adobe.flex.framework</groupId>
                      <artifactId>playerglobal</artifactId>
                    </exclusion>
                  </exclusions>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flex.framework</groupId>
                  <artifactId>playerglobal</artifactId>
                  <version>4.0.0.14159</version>
                  <classifier>10</classifier>
                  <scope>external</scope>
                  <type>swc</type>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flexbuilder.dcrad</groupId>
                  <artifactId>fiber</artifactId>
                  <version>4.0</version>
                  <type>swc</type>
                  <scope>compile</scope>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flexbuilder.dcrad</groupId>
                  <artifactId>fiber_rb</artifactId>
                  <version>4.0</version>
                  <type>swc</type>
                  <classifier>en_US</classifier>
                  <scope>external</scope>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flexbuilder.dcrad</groupId>
                  <artifactId>serializers</artifactId>
                  <version>4.0</version>
                  <type>swc</type>
                  <scope>compile</scope>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flexbuilder.dcrad</groupId>
                  <artifactId>serializers_rb</artifactId>
                  <version>4.0</version>
                  <type>swc</type>
                  <classifier>en_US</classifier>
                  <scope>external</scope>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flexunit</groupId>
                  <artifactId>flexunit</artifactId>
                  <type>swc</type>
              </dependency>
              <dependency>
                  <groupId>org.sonatype.flexmojos</groupId>
                  <artifactId>flexmojos-unittest-support</artifactId>
                  <version>3.8</version>
                  <type>swc</type>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flex.framework</groupId>
                  <artifactId>spark</artifactId>
                  <version>4.0.0.14159</version>
                   <type>swc</type>
              </dependency>
              <dependency>
                  <groupId>com.adobe.flex.framework</groupId>
                  <artifactId>sparkskins</artifactId>
                  <version>4.0.0.14159</version>
                  <type>swc</type>
              </dependency>
          </dependencies>

       

          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>com.adobe.flex</groupId>
                      <artifactId>compiler</artifactId>
                      <version>4.0.0.14159</version>
                      <type>pom</type>
                      <scope>compile</scope>
                  </dependency>
                  <dependency>
                      <groupId>com.adobe.flexunit</groupId>
                      <artifactId>flexunit</artifactId>
                      <version>4.0-rc-1</version>
                      <type>swc</type>
                      <scope>compile</scope>
                  </dependency>           
              </dependencies>
          </dependencyManagement>   
      </project>