title: Flex & Maven : How to upgrade playerglobal version in pom.xml
body: <p>I'm currently developping an flex application, and i've used native cursor support to dynamically change cursor in particular conditions.</p>
  
  <p>My application runs with Flex Sdk 4.1.0.16076, which use flash player 10.0 by default. 
  I have upgrade this version to 10.2 in project preferences, in order to use MouseCursorData class.</p>
  
  <p>It works fine in eclipse but i'm using maven for dependencies and I have compilation error when doing a maven build, saying MouseCursorData Class can't be found.</p>
  
  <p>It's pretty normal since i'm using player 10 in my dependencies. So I tried to update my pom.xml file for upgrading player to 10.2 : </p>
  
  <pre><code>     &lt;plugin&gt;
              &lt;groupId&gt;org.sonatype.flexmojos&lt;/groupId&gt;
              &lt;artifactId&gt;flexmojos-maven-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;targetPlayer&gt;10.0&lt;/targetPlayer&gt;
                  &lt;compiledLocales&gt;
                      &lt;locale&gt;en_US&lt;/locale&gt;
                      &lt;locale&gt;fr_FR&lt;/locale&gt;
                  &lt;/compiledLocales&gt;
                  &lt;warnings&gt;
                      &lt;noConstructor&gt;false&lt;/noConstructor&gt;
                  &lt;/warnings&gt;
                  &lt;sourceFile&gt;Opale.mxml&lt;/sourceFile&gt;
                  &lt;generateHtmlWrapper&gt;true&lt;/generateHtmlWrapper&gt;
                  &lt;contextRoot&gt;opale-web&lt;/contextRoot&gt;
                  &lt;services&gt;${basedir}/src/main/resources/services-config.xml&lt;/services&gt;
                  &lt;output&gt;target/opale-ui.swf&lt;/output&gt;
              &lt;/configuration&gt;
              &lt;version&gt;${flexmojos.version}&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;com.adobe.flex&lt;/groupId&gt;
                      &lt;artifactId&gt;compiler&lt;/artifactId&gt;
                      &lt;version&gt;${flex.sdk.version}&lt;/version&gt;
                      &lt;type&gt;pom&lt;/type&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;             
          &lt;/plugin&gt;
  </code></pre>
  
  <p>First, I have changed the targetPlayer in flex mojo plugin from 10.0 to 10.2. 
  Then I obtain the compilation error : </p>
  
  <p>[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.9:compile-swf (default-compile-swf) on project opale-ui: TargetPlayer and playerglobal dependency version doesn't match! Target player: 10.2, player global: 10.0 -> [Help 1]</p>
  
  <p>So, i had a dependency to force playerglobal version : </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
      &lt;artifactId&gt;playerglobal&lt;/artifactId&gt;
      &lt;version&gt;${flex.sdk.version}&lt;/version&gt;
      &lt;classifier&gt;10.2.0&lt;/classifier&gt;
      &lt;type&gt;swc&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Then, i have the following error : </p>
  
  <pre><code>Downloading:     http://repo.maven.apache.org/maven2/com/adobe/flex/framework/playerglobal/4.1.0.16076/playerglobal-4.1.0.16076-10.2.0.swc
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 19.698s
  [INFO] Finished at: Wed Sep 12 12:29:57 CEST 2012
  [INFO] Final Memory: 9M/124M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project opale-ui: Could not resolve dependencies for     project com.igc.opale:opale-ui:swf:1.9-SNAPSHOT: Could not transfer artifact     com.adobe.flex.framework:playerglobal:swc:10.2.0:4.1.0.16076 from/to jboss     (http://repository.jboss.org/maven2/): Access denied to:     http://repository.jboss.org/maven2/com/adobe/flex/framework/playerglobal/4.1.0.16076/playerglobal-4.1.0.16076-10.2.0.swc, ReasonPhrase:Forbidden. -&gt; [Help 1]
  </code></pre>
  
  <p>I new to maven so maybe i'm doing this pretty badly.</p>