Hi,

trying to create a RemoteObject AMF class in Network lib

I need to use reflection API (getClassByAlias, registerClassAlias,...), so
I add to the pom a dependency

<dependencies>

...


<dependency>
      <groupId>org.apache.flex.flexjs.framework</groupId>
      <artifactId>Reflection</artifactId>
      <version>0.8.0-SNAPSHOT</version>
      <type>swc</type>
    </dependency>


But compilation fails:

[INFO] Executing COMPC in tool group FlexJS with args:
[-load-config=/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/frameworks/projects/Network/target/compile-js-config.xml,
-js-output-type=FLEXJS, -compiler.strict-xml=true]
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/frameworks/projects/Network/src/main/flex/org/apache/flex/net/RemoteObject.as(25):
col: 9 Definition org.apache.flex.reflection.getClassByAlias could not be
found.
import org.apache.flex.reflection.getClassByAlias;
      ^
/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/frameworks/projects/Network/src/main/flex/org/apache/flex/net/RemoteObject.as(26):
col: 9 Definition org.apache.flex.reflection.registerClassAlias could not
be found.
import org.apache.flex.reflection.registerClassAlias;
      ^


So something that should be basic does not work for me. I'm sure that is
something obvious that I can't see.
Why I can use other SWC dependencies in my SWC library?

Thanks


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to