Hi Everyone,

Here is the latest update on this issue.

I have downloaded and built version 0.9.8 from source. I created an
actionscript library using the simple library archetype.

I am getting the same error as before i.e. when using 0.9.7

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

[INFO] Executing COMPC in tool group Royale with args:
[-load-config=C:\Users\nyemi\git\spacio_as3\spacio_as3\target\compile-extern-config.xml,
-compiler.targets=SWF]
args:
-load-config=C:\Users\nyemi\git\spacio_as3\spacio_as3\target\compile-extern-config.xml
-compiler.targets=SWF
target:SWF
COMPC
Loading configuration:
C:\Users\nyemi\git\spacio_as3\spacio_as3\target\compile-extern-config.xml

C:\Users\nyemi\git\spacio_as3\spacio_as3\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(3):
col: 12 Warning: Definition mx.collections.ArrayCollection could not be
found.

    import mx.collections.ArrayCollection;
           ^

C:\Users\nyemi\git\spacio_as3\spacio_as3\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(19):
col: 31 Error: Type was not found or was not a compile-time constant:
ArrayCollection.

          private var _errors:ArrayCollection;
                              ^

C:\Users\nyemi\git\spacio_as3\spacio_as3\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(69):
col: 41 Error: Type was not found or was not a compile-time constant:
ArrayCollection.

      public function set errors(errors:ArrayCollection) : void
                                        ^

C:\Users\nyemi\git\spacio_as3\spacio_as3\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(74):
col: 37 Error: Type was not found or was not a compile-time constant:
ArrayCollection.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I noticed that it is failing at compile-extern-config.xml while
compile-swf-config.xml and compile-js-config.xml compile successfully.

Upon looking at the generated config files. I can see that
compile-swf-config.xml and compile-js-config.xml

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\MXRoyale\0.9.8\MXRoyale-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Binding\0.9.8\Binding-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Basic\0.9.8\Basic-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Graphics\0.9.8\Graphics-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Collections\0.9.8\Collections-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\DragDrop\0.9.8\DragDrop-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Express\0.9.8\Express-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Effects\0.9.8\Effects-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Formatters\0.9.8\Formatters-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Charts\0.9.8\Charts-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Network\0.9.8\Network-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\XML\0.9.8\XML-0.9.8-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Core\0.9.7\Core-0.9.7-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Language\0.9.7\Language-0.9.7-js.swc</path-element>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\framework\Reflection\0.9.7\Reflection-0.9.7-js.swc</path-element>


while compile-extern-config.xml

  <library-path>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\typedefs\royale-typedefs-gcl\0.9.8\royale-typedefs-gcl-0.9.8-typedefs.swc</path-element>
        </library-path>

        <external-library-path>

 
<path-element>C:\Users\nyemi\.m2\repository\org\apache\royale\typedefs\royale-typedefs-js\0.9.8\royale-typedefs-js-0.9.8-typedefs.swc</path-element>
        </external-library-path>

the royale libraries are not referenced.

Could this be the issue ?

This config xmls are regenerated each time "mvn clean install" is executed
so as result, I cannot modify  compile-extern-config.xml

Any Ideas ?



On Thu, Sep 2, 2021 at 9:15 PM Yishay Weiss <yishayj...@hotmail.com> wrote:

> I suspect you have not added the MX dependencies. In Ant you would just
> set the compiler’s configuration argument to ‘flex’, but I’m not sure how
> that’s done in Maven . It’s a bit trickier than just adding a dependency as
> I recall. Let’s wait and see if someone remembers this and responds,
> otherwise I’ll try to find out for you.
>
>
>
> *From: *Roman Isitua <romanisi...@gmail.com>
> *Sent: *Thursday, September 2, 2021 7:20 PM
> *To: *users@royale.apache.org
> *Subject: *Re: Errors building stand alone actionscript library
>
>
>
> I have seen the announcement for the release of version 0.9.8. I will
> proceed to download it.
>
>
>
> could it be that this issue is resolved in 0.9.8 ?
>
>
>
>
>
> Thanks,
>
>
>
>
>
> On Thu, Sep 2, 2021 at 5:14 PM Piotr Zarzycki <piotrzarzyck...@gmail.com>
> wrote:
>
> Could you please try 0.9.8 or 0.9.9-SNAPSHOT ?
>
>
>
> On Thu, 2 Sep 2021 at 18:06, Roman Isitua <romanisi...@gmail.com> wrote:
>
> Hi Everyone,
>
>
> I created a stand alone actionscript library to implement some custom data
> types (DTO) to be used in different royale projects.
>
> I noticed that compilation fails at the following point.
>
>
> [INFO] --- royale-maven-plugin:0.9.7:compile-extern
> (default-compile-extern) @ client_service_lib ---
> [INFO] Executing COMPC in tool group Royale with args:
> [-load-config=C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\target\compile-extern-config.xml,
> -compiler.targets=SWF]
> args:
>
> -load-config=C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\target\compile-extern-config.xml
> -compiler.targets=SWF
> target:SWF
> COMPC
> Loading configuration:
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\target\compile-extern-config.xml
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(3):
> col: 12 Warning: Definition mx.collections.ArrayCollection could not be
> found.
>
>     import mx.collections.ArrayCollection;
>            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(19):
>
> col: 31 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>           private var _errors:ArrayCollection;
>                               ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(69):
>
> col: 41 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>       public function set errors(errors:ArrayCollection) : void
>                                         ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(74):
>
> col: 37 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        public function get errors():ArrayCollection
>                                     ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ShortType.as(5):
> col: 12 Warning: Definition mx.collections.ArrayCollection could not be
> found.
>
>     import mx.collections.ArrayCollection;
>            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ShortType.as(14):
> col: 28 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        private var _values:ArrayCollection;
>                            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ShortType.as(44):
> col: 41 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>       public function set values(values:ArrayCollection) : void
>                                         ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ShortType.as(51):
> col: 37 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        public function get values():ArrayCollection
>                                     ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\StringType.as(5):
> col: 12 Warning: Definition mx.collections.ArrayCollection could not be
> found.
>
>     import mx.collections.ArrayCollection;
>            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\StringType.as(15):
> col: 28 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        private var _values:ArrayCollection;
>                            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\StringType.as(40):
> col: 41 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>       public function set values(values:ArrayCollection) : void
>                                         ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\StringType.as(45):
> col: 37 Error: Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        public function get values():ArrayCollection
>                                     ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(3):
> col: 12 Definition mx.collections.ArrayCollection could not be found.
>
>     import mx.collections.ArrayCollection;
>            ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(19):
>
> col: 31 Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>           private var _errors:ArrayCollection;
>                               ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(69):
>
> col: 41 Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>       public function set errors(errors:ArrayCollection) : void
>                                         ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ResponseDTO.as(74):
>
> col: 37 Type was not found or was not a compile-time constant:
> ArrayCollection.
>
>        public function get errors():ArrayCollection
>                                     ^
>
> C:\Users\nyemi\git\RoyaleCRM\RoyaleCRM\client_service\src\main\royale\com\spacio\mdx\generic\dto\ShortType.as(5):
> col: 12 Definition mx.collections.ArrayCollection could not be found.
>
>     import mx.collections.ArrayCollection;
>
>
>
>
>
> I have added the required dependencies
>
>
>
> <dependency>
>
>       <groupId>org.apache.royale.framework</groupId>
>
>       <artifactId>MXRoyale</artifactId>
>
>       <version>0.9.7</version>
>
>       <type>swc</type>
>
>       <classifier>js</classifier>
>
>     </dependency>
>
>     <dependency>
>
>       <groupId>org.apache.royale.framework</groupId>
>
>       <artifactId>MXRoyale</artifactId>
>
>       <version>0.9.7</version>
>
>       <type>swc</type>
>
>       <classifier>swf</classifier>
>
>     </dependency>
>
>
>
>
>
> I have also registered the classes in the myLibClasses.as
>
>
>
>
>
>
>
>
>
> import com.spacio.crm.service.ServiceWAO; ServiceWAO;
>
>     import com.spacio.mdx.generic.dto.Attribute; Attribute;
>
>     import com.spacio.mdx.generic.dto.Record; Record;
>
>     import com.spacio.mdx.generic.dto.ResponseDTO; ResponseDTO;
>
>     import com.spacio.mdx.generic.dto.ShortType; ShortType;
>
>     import com.spacio.mdx.generic.dto.StringType; StringType;
>
>     import com.spacio.mdx.generic.util.MDXUtil; MDXUtil;
>
>     import com.spacio.mdx.generic.dao.ServiceDAO; ServiceDAO;
>
>
>
> Registered them in the manifest file as well
>
>
>
> <component id="ServiceWAO" class="com.spacio.crm.service.ServiceWAO"/>
>
>     <component id="ServiceDAO" class=
> "com.spacio.mdx.generic.dao.ServiceDAO"/>
>
>     <component id="MDXUtil" class="com.spacio.mdx.generic.util.MDXUtil"/>
>
>     <component id="Attribute" class="com.spacio.mdx.generic.dto.Attribute"
> />
>
>     <component id="Record" class="com.spacio.mdx.generic.dto.Record"/>
>
>     <component id="ResponseDTO" class=
> "com.spacio.mdx.generic.dto.ResponseDTO"/>
>
>     <component id="ShortType" class="com.spacio.mdx.generic.dto.ShortType"
> />
>
>     <component id="StringType" class=
> "com.spacio.mdx.generic.dto.StringType"/>
>
>
>
>
>
> Regards,
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
>
>

Reply via email to