qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Can't Compile Code Which Uses DropShadowFilter #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Flex application that uses a DropShadowFilter

<mx:Label text="test">
   <mx:filters>
        <mx:DropShadowFilter />
   </mx:filters>
</mx:Label>

2. Use Maven to compile the application

What is the expected output? What do you see instead?
You expect the application to compile successfully.  Instead the compiler
spits out, "Could not resolve <mx:DropShadowFilter> to a component
implementation."

What version of the product are you using? On what operating system?
My POM is configured with:
groupId=info.rvin.mojo
artifactId=flex-compiler-mojo
version=1.0
extensions=true

Operating System is Windows XP Pro.

Original issue reported on code.google.com by codecr...@gmail.com on 17 Sep 2008 at 4:29

GoogleCodeExporter commented 9 years ago
A temporary work around is to add "<namespaces>" to your flex-mojos 
configuration
section, for example:

<plugin>
    <groupId>info.rvin.mojo</groupId>
    <artifactId>flex-compiler-mojo</artifactId>
    <version>1.0</version>
    <extensions>true</extensions>
    <configuration>
        <includeSources>
            <param>${project.build.sourceDirectory}</param>
        </includeSources>
        <locales>
            <param>en_US</param>
        </locales>
        <namespaces>
          <namespace>
            <uri>http://www.adobe.com/2006/mxml</uri>
            <manifest>mxml-manifest.xml</manifest>
          </namespace>
        </namespaces> 
        <contextRoot>my_web_project</contextRoot>
        <sourceFile>com/acme/MyApp.mxml</sourceFile>
    </configuration>
</plugin>

Original comment by codecr...@gmail.com on 17 Sep 2008 at 4:53

GoogleCodeExporter commented 9 years ago
Forgot to mention, also need to put the mxml-manifest.xml (my was under my
FlexBuilder install directory: C:\apps\Adobe\Flex Builder 3
Plug-in\sdks\3.0.0\frameworks) in the root directory of your project, for the
workaround mentioned in the previous comment I posted.

So, if your project is located at,
C:\myproject\pom.xml

Make sure the mxml-manifest.xml is located in:
c:\myproject\mxml-manifest.xml

I attached the xml file that came with my Flex Builder 3.0 to this comment.

Original comment by codecr...@gmail.com on 17 Sep 2008 at 4:57

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by velo...@gmail.com on 25 Sep 2008 at 2:14

GoogleCodeExporter commented 9 years ago
Fixed at revision 762.

Must add the following dependency at your pom:
    <dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>framework</artifactId>
      <version>3.1.0.2710</version>
      <type>zip</type>
      <classifier>configs</classifier>
    </dependency>

Or you must reinstall your FDK using the newer install-mojo

Original comment by velo...@gmail.com on 29 Sep 2008 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by velo...@gmail.com on 2 Oct 2008 at 11:42