joshtynjala opened a new issue #103: royale-maven-plugin does not support MXML 
tags for core types like Array, String, etc.
URL: https://github.com/apache/royale-compiler/issues/103
 
 
   Original bug report by @carlosrovira in this comment:
   
   https://github.com/apache/royale-compiler/issues/102#issuecomment-559560120
   
   I have determined that royale-maven-plugin does not provide the "components" 
from 
[_mxml-2009-manifest.xml_](https://github.com/apache/royale-asjs/blob/develop/frameworks/mxml-2009-manifest.xml)
 when it generates a config XML file to compile a project.
   
   In a distribution's 
[_royale-config.xml_](https://github.com/apache/royale-asjs/blob/develop/frameworks/royale-config-template.xml)
 file, this manifest file is referenced using the `namespace` compiler option:
   
   ```
   <namespaces>
     <namespace>
       <uri>http://ns.adobe.com/mxml/2009</uri>
       <manifest>mxml-2009-manifest.xml</manifest>
     </namespace>
   </namespaces>
   ```
   
   The royale-maven-plugin generates a config file with an empty namespaces 
tag, so these classes cannot be resolved from tags like `<fx:Array>` or 
`<fx:String>`, and it results in a compiler error:
   
   > Error: This tag is unexpected. It will be ignored.
   
   There's no way to provide the mappings directly in the config XML file, so 
the royale-maven-plugin will need to create a similar _mxml-2009-manifest.xml_ 
somewhere on the file system and reference that path in the config XML file. 
Presumably, the manifest would be created in the local _target_ folder.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to