title: Could not resolve <fx:Script> to a component implementation
body: <p>i created project with flexmojos maven archtype..i used flexmojos:flexbuilder 
  and compile/run with FlashBuilder 4 everything is okay but when i try 
  to compile project with flexmojos i got following error: </p>
  
  <hr>
  
  <p>[ERROR] Z:....\src\main\flex\Main.mxml:[6,-1] Could not resolve &lt; fx:Script > to a component implementation.</p>
  
  <p>[INFO] BUILD FAILURE </p>
  
  <hr>
  
  <p>my mxml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
  xmlns:s="library://ns.adobe.com/flex/spark" 
                             xmlns:mx="library://ns.adobe.com/flex/mx" 
                                  width="100%" height="100%" 
  creationComplete="application1_creationCompleteHandler(event)"&gt; 
          &lt;fx:Script&gt; 
                  &lt;![CDATA[ 
                          import mx.controls.Alert; 
                          import mx.events.FlexEvent; 
                          protected function 
  application1_creationCompleteHandler(event:FlexEvent):void 
                          { 
                                  Alert.show("success!!!!") 
                          } 
          ]]&gt;&lt;/fx:Script&gt; 
  &lt;/s:Application&gt; 
  </code></pre>
  
  <p>pom.xml like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.foo&lt;/groupId&gt;
      &lt;artifactId&gt;Bar&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;swf&lt;/packaging&gt;
  
      &lt;name&gt;Foobar&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;flex-sdk.version&gt;4.1.0.16076&lt;/flex-sdk.version&gt;
          &lt;flex-sdk.scope&gt;compile&lt;/flex-sdk.scope&gt;
          &lt;flexmojos.version&gt;3.8&lt;/flexmojos.version&gt;
          &lt;player.version&gt;10.0&lt;/player.version&gt;
      &lt;/properties&gt;
      &lt;pluginRepositories&gt;
          &lt;!--
              Required for regular plugin use until moved over to Maven central
              repo.
          --&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;flex-mojos-plugin-repository&lt;/id&gt;
              &lt;url&gt;http://repository.sonatype.org/content/groups/flexgroup/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
  
          &lt;!-- Required for building plugin from source. --&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;flex-mojos-internal-plugins-repository&lt;/id&gt;
              &lt;url&gt;http://repository.sonatype.org/content/groups/public/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
  
      &lt;repositories&gt;
          &lt;!--
              Required for regular plugin use until moved over to Maven central
              repo.
          --&gt;
          &lt;repository&gt;
              &lt;id&gt;flex-mojos-repository&lt;/id&gt;
              &lt;url&gt;http://repository.sonatype.org/content/groups/flexgroup/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
  
          &lt;!-- Required for building plugin from source. --&gt;
          &lt;repository&gt;
              &lt;id&gt;flex-mojos-internal-repository&lt;/id&gt;
              &lt;url&gt;http://repository.sonatype.org/content/groups/public/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
  
          &lt;repository&gt;
              &lt;id&gt;apache-internal-repository&lt;/id&gt;
              &lt;url&gt;https://repository.apache.org/content/repositories/maven-014/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;build&gt;
          &lt;sourceDirectory&gt;src/main/flex&lt;/sourceDirectory&gt;
          &lt;testSourceDirectory&gt;src/test/flex&lt;/testSourceDirectory&gt;
          &lt;plugins&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.sonatype.flexmojos&lt;/groupId&gt;
                  &lt;artifactId&gt;flexmojos-maven-plugin&lt;/artifactId&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;configuration&gt;
                      &lt;accessible&gt;false&lt;/accessible&gt;
                      &lt;targetPlayer&gt;${player.version}&lt;/targetPlayer&gt;
                      &lt;incremental&gt;false&lt;/incremental&gt;
                      &lt;debug&gt;false&lt;/debug&gt;
                      &lt;locale&gt;en_US&lt;/locale&gt;
                      &lt;optimize&gt;true&lt;/optimize&gt;
                      &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                      &lt;strict&gt;true&lt;/strict&gt;
                      &lt;useNetwork&gt;true&lt;/useNetwork&gt;
                      &lt;allowSourcePathOverlap&gt;true&lt;/allowSourcePathOverlap&gt;
                      &lt;sourcePaths&gt;
                          &lt;path&gt;${basedir}/src/main/flex&lt;/path&gt;
                      &lt;/sourcePaths&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;unpack-config&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;unpack-dependencies&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;phase&gt;generate-resources&lt;/phase&gt;
                          &lt;configuration&gt;
                              &lt;outputDirectory&gt;${project.build.directory}/generated-resources&lt;/outputDirectory&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;dependencies&gt;
          &lt;!-- Flex framework resource bundles --&gt;
          &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;type&gt;swc&lt;/type&gt;
              &lt;classifier&gt;${player.version}&lt;/classifier&gt;
          &lt;/dependency&gt;
          &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;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;textLayout&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;osmf&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;framework&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;spark&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;sparkskins&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;rpc&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;datavisualization&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;flash-integration&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;flex&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;framework&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;zip&lt;/type&gt;
              &lt;classifier&gt;configs&lt;/classifier&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;utilities&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;swc&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;datavisualization&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;flash-integration&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;framework&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;osmf&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;rpc&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;spark&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.adobe.flex.framework&lt;/groupId&gt;
              &lt;artifactId&gt;textLayout&lt;/artifactId&gt;
              &lt;version&gt;${flex-sdk.version}&lt;/version&gt;
              &lt;type&gt;rb.swc&lt;/type&gt;
              &lt;scope&gt;${flex-sdk.scope}&lt;/scope&gt;
          &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>maven output compiler config :</p>
  
  <pre><code>INFO] Flex compiler configurations: 
  -compiler.external-library-path C:\...\.m2\repository\com\adobe\flex 
  \framework\playerglobal\4.1.0.16076\10.0\playerglobal.swc 
  -compiler.include-libraries= 
  -compiler.library-path C:\...\.m2\repository\com\adobe\flex\framework 
  \datavisualization\4.1.0.16076\datavisualization-4.1.0.16076.swc C:\... 
  \.m2\repository\com\adobe\flex\framework\flash-integration 
  \4.1.0.16076\flash-integration-4.1.0.16076.swc C:\...\.m2\repository 
  \com\adobe\flex\framework\flex\4.1.0.16076\flex-4.1.0.16076.swc C:\... 
  \.m2\repository\com\adobe\flex\framework\framework 
  \4.1.0.16076\framework-4.1.0.16076.swc C:\...\.m2\repository\com\adobe 
  \flex\framework\osmf\4.1.0.16076\osmf-4.1.0.16076.swc C:\... 
  \.m2\repository\com\adobe\flex\framework\rpc 
  \4.1.0.16076\rpc-4.1.0.16076.swc C:\...\.m2\repository\com\adobe\flex 
  \framework\spark\4.1.0.16076\spark-4.1.0.16076.swc C:\... 
  \.m2\repository\com\adobe\flex\framework\sparkskins 
  \4.1.0.16076\sparkskins-4.1.0.16076.swc C:\...\.m2\repository\com\adobe 
  \flex\framework\textLayout\4.1.0.16076\textLayout-4.1.0.16076.swc C: 
  \...\.m2\repository\com\adobe\flex\framework\utilities 
  \4.1.0.16076\utilities-4.1.0.16076.swc C:\...\.m2\repository\com\adobe 
  \flex\framework\datavisualization 
  \4.1.0.16076\datavisualization-4.1.0.16076-en_US.rb.swc C:\... 
  \.m2\repository\com\adobe\flex\framework\framework 
  \4.1.0.16076\framework-4.1.0.16076-en_US.rb.swc C:\...\.m2\repository 
  \com\adobe\flex\framework\osmf\4.1.0.16076\osmf-4.1.0.16076- 
  en_US.rb.swc C:\...\.m2\repository\com\adobe\flex\framework\rpc 
  \4.1.0.16076\rpc-4.1.0.16076-en_US.rb.swc C:\...\.m2\repository\com 
  \adobe\flex\framework\spark\4.1.0.16076\spark-4.1.0.16076-en_US.rb.swc 
  C:\...\.m2\repository\com\adobe\flex\framework\textLayout 
  \4.1.0.16076\textLayout-4.1.0.16076-en_US.rb.swc C:\...\.m2\repository 
  \com\adobe\flex\framework\flash-integration\4.1.0.16076\flash- 
  integration-4.1.0.16076-en_US.rb.swc C:\...\.m2\repository\com\adobe 
  \flex\framework\playerglobal\4.1.0.16076\playerglobal-4.1.0.16076- 
  en_US.rb.swc 
  -compiler.theme Z:\.....\target\classes\configs\themes\Spark 
  \spark.css 
  -compiler.accessible=true 
  -compiler.allow-source-path-overlap=false 
  -compiler.as3=true 
  -compiler.debug=false 
  -compiler.es=false 
  -compiler.fonts.managers flash.fonts.JREFontManager 
  flash.fonts.BatikFontManager flash.fonts.AFEFontManager 
  flash.fonts.CFFFontManager 
  -compiler.fonts.local-fonts-snapshot Z:\.....\target\classes 
  \fonts.ser 
  -compiler.keep-generated-actionscript=false 
  -licenses.license flashbuilder4 952309948800588759250406 
  -licenses.license flexbuilder4.displayedStartPageAtLeastOneTime true 
  -compiler.locale en_US 
  -compiler.optimize=true 
  -compiler.source-path Z:\.....\src\main\flex 
  -compiler.strict=true 
  -use-network=true 
  -compiler.verbose-stacktraces=false 
  -compiler.actionscript-file-encoding UTF-8 
  -target-player 10.0.0 
  -default-background-color 8821927 
  -default-frame-rate 24 
  -default-script-limits 1000 60 
  -default-size 500 375 
  -compiler.headless-server=false 
  -compiler.keep-all-type-selectors=false 
  -compiler.use-resource-bundle-metadata=true 
  -metadata.date Fri Mar 04 14:04:37 EET 2011 
  -metadata.localized-title Main x-default 
  -verify-digests=true 
  -compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,Z:\..... 
  \target\classes\config-4.1.0.16076\mxml-2009-manifest.xml 
  -compiler.namespaces.namespace+=library://ns.adobe.com/flex/spark,Z: 
  \.....\target\classes\config-4.1.0.16076\spark-manifest.xml 
  -compiler.namespaces.namespace+=library://ns.adobe.com/flex/mx,Z:\..... 
  \target\classes\config-4.1.0.16076\mx-manifest.xml 
  -compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,Z:\..... 
  \PozitronUI\target\classes\config-4.1.0.16076\mxml-manifest.xml - 
  static-link-runtime-shared-libraries=false -load-config= 
  -metadata.language+=en_US 
  </code></pre>
  
  <p>any help...</p>
  
  <p>regards, </p>