Okay Piotr.

Find attached to this mail the pom for the actionscript library project.



On Thu, Sep 2, 2021 at 9:51 PM Piotr Zarzycki <piotrzarzyck...@gmail.com>
wrote:

> Roman,
>
> It may be helpful if you could post somehow here pom file. Maybe do not
> post whole code in the email, cause it hard to analyze, but rather upload
> it somewhere. If it doesn't contains any sensitive information.
>
> Thanks,
> Piotr
>
> czw., 2 wrz 2021 o 22:37 Roman Isitua <romanisi...@gmail.com> napisał(a):
>
>> 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 *
>>>
>>>
>>>
>>
>
> --
>
> Piotr Zarzycki
>
<?xml version="1.0" encoding="UTF-8"?>
<!--

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

-->
<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/xsd/maven-4.0.0.xsd";>

  <modelVersion>4.0.0</modelVersion>

  <artifactId>spacio_as3</artifactId>
  <groupId>com.spacio</groupId>
  <version>1.0</version>
  <packaging>swc</packaging>

  <build>
    <sourceDirectory>src/main/royale</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.royale.compiler</groupId>
        <artifactId>royale-maven-plugin</artifactId>
        <version>0.9.8</version>
        <extensions>true</extensions>
        <configuration>
          <namespaces>
            <!-- Make the classes listed in the manifest be available under the given namespace -->
            <namespace>
              <uri>library://ns.apache.org/royale/mylib</uri>
              <manifest>${project.basedir}/src/main/resources/mylib-manifest.xml</manifest>
            </namespace>
          </namespaces>
          <!-- Tell the compiler which classes to compile and include -->
          <includeClasses>
            <includeClass>MylibClasses</includeClass>
          </includeClasses>
          <skipExtern>false</skipExtern>
<!--           <skipExtern>true</skipExtern>-->
          <allowSubclassOverrides>true</allowSubclassOverrides>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.apache.royale.compiler</groupId>
            <artifactId>compiler-jx</artifactId>
            <version>0.9.8</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <!-- For flash compilation, we need the airglobal or playerglobal 
    <dependency>
      <groupId>com.adobe.air.framework</groupId>
      <artifactId>airglobal</artifactId>
      <version>20.0</version>
      <type>swc</type>
      <scope>provided</scope>
    </dependency>
      -->
    <dependency>
      <groupId>com.adobe.flash.framework</groupId>
      <artifactId>playerglobal</artifactId>
      <version>32.0</version>
      <type>swc</type>
      <scope>provided</scope>
    </dependency> 

    <!-- For JavaScript compilation, we need some other base classes -->
    <dependency>
      <groupId>org.apache.royale.typedefs</groupId>
      <artifactId>royale-typedefs-gcl</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>typedefs</classifier>
    </dependency>

    <!-- Add dependencies you might be needing here -->
    <!--   --> 
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>MXRoyale</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>   
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>MXRoyale</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>swf</classifier>
    </dependency> 
    <!-- mx royale dependencies --> 
     <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Core</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Core</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>swf</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Reflection</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Reflection</artifactId>
      <version>0.9.8</version>
      <type>swc</type>
      <classifier>swf</classifier>
    </dependency> 
  </dependencies>

</project>

Reply via email to