Hi Josh I think it should be "runtime" for this from [1]:
*provided* This is much like compile, but indicates you expect the JDK or a container to provide the dependency at *runtime*. ... *runtime* This *scope* indicates that the dependency is not required for compilation, but is for execution. It is in the *runtime*and test classpaths, but not the compile classpath going to try to add scope runtime, and will report here. Thanks :) [1] Maven scopes vs. Gradle configurations – Andres Almirayandresalmiray.com/maven-scopes-vs-gradle-configurations/ <https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiAvpqThcnjAhULyIUKHc11Af0QFjABegQICxAF&url=http%3A%2F%2Fandresalmiray.com%2Fmaven-scopes-vs-gradle-configurations%2F&usg=AOvVaw3mDdHGOHaiF7TI-0u_iHbe> El lun., 22 jul. 2019 a las 19:17, Josh Tynjala (<[email protected]>) escribió: > When you compile a SWC, the framework libraries need to be on > external-library-path (or js-external-library-path or > swf-external-library-path). When you changed forceSwcExternalLibraryPath to > false, this may have moved some of the libraries to the library-path > instead. You don't want that. You can check the > target/compile-js-config.xml file generated for your library to see if > Maven is using library-path or external-library-path for each framework > SWC. > > I took a look at the source code for the Royale Maven tasks. To add a > framework library to the external-library-path, you need to specify the > scope in pom.xml. It should be either "provided" or "runtime" to add them > to the external-library-path instead of the library-path. I don't know what > the difference between "provided" and "runtime" is, but I assume that you > do since you know Maven much better than I do. > > I should point out that you should use "provided" or "runtime" for > framework SWCs only when you are when compiling a SWC. When compiling an > app, you definitely want these SWCs added to the library-path. > > -- > Josh Tynjala > Bowler Hat LLC <https://bowlerhat.dev> > > > On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <[email protected]> > wrote: > > > Hi, > > > > the compilation was ok, but I'm facing now a blank page. I'm getting in > > debug mode: > > > > [Error] Error: Undefined nameToPath for > > org.apache.royale.events.EventDispatcher > > visitNode (base.js:1357) > > visitNode (base.js:1355) > > visitNode (base.js:1355) > > writeScripts_ (base.js:1369) > > require (base.js:706) > > Código global (tablet-debug:418) > > > > and > > > > [Error] ReferenceError: Can't find variable: App > > Código global (tablet-debug:425) > > > > > > do you know what's could be wrong? > > > > thanks > > > > Carlos > > > > > > > > > > > > El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (< > [email protected] > > >) > > escribió: > > > > > Hi, > > > > > > I think finally reach to the problem, I had more of this in each > library > > > > > > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> > > > > > > So now I'm getting all the rest libs compiling properly > > > > > > thanks for the help :) > > > > > > Carlos > > > > > > > > > > > > > > > > > > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (< > > [email protected]>) > > > escribió: > > > > > >> I get the following progress: > > >> > > >> first library was compiled by commenting forceSwcExternalLibraryPath > > >> since I have all libraries in the same folder "roaylelibs" > > >> > > >> <build> > > >> <plugins> > > >> <plugin> > > >> <groupId>org.apache.royale.compiler</groupId> > > >> <artifactId>royale-maven-plugin</artifactId> > > >> <version>${royale.compiler.version}</version> > > >> <configuration> > > >> <!-- We don't want dependencies to be linked into the resulting > > libraries > > >> --> > > >> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> > --> > > >> </configuration> > > >> </plugin> > > >> </plugins> > > >> </build> > > >> > > >> but now the next one is failing in the same way as the previous one > was > > >> failing :? > > >> > > >> I removed all compile-swf-config.xml in all projects, and what I don't > > >> understand is where comes the config maven is using: > > >> > > >> Executing COMPC in tool group Royale with args: > > >> > > > [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml, > > >> -js-default-initializers=false, -source-map=true, > > >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true] > > >> > > >> > > >> > > >> > > >> > > >> > > >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (< > > >> [email protected]>) escribió: > > >> > > >>> I think the license header would be added in all files at some point > > for > > >>> all files to prevent RAT plugin to make compilation fail, so I'm > > figuring > > >>> it was something done manual > > >>> > > >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (< > > >>> [email protected]>) escribió: > > >>> > > >>>> You're right. I remember seeing that the Royale Maven plugin > generates > > >>>> compile-swf-config.xml and compile-js-config.xml. > > >>>> > > >>>> It's strange that your Codeoscopic copyright header is added to > > >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do > that... > > >>>> unless maybe you have some other plugin that adds it? > > >>>> > > >>>> -- > > >>>> Josh Tynjala > > >>>> Bowler Hat LLC <https://bowlerhat.dev> > > >>>> > > >>>> > > >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira < > > [email protected]> > > >>>> wrote: > > >>>> > > >>>> > Hi Josh, > > >>>> > > > >>>> > since my build is JS, I removed all "compile-swf-config.xml", but > > >>>> executing > > >>>> > again "mvn clean install", makes a "compile-swf-config.xml" file > be > > >>>> > generated in target folder > > >>>> > so I think is something in royale maven plugin that creates that > > file > > >>>> in > > >>>> > target folder. But is strange since as I say I'm working against > JS > > >>>> > although SWF is present but although always was compiling ok, it > > does > > >>>> not > > >>>> > really works since Jewel is still not implemented fully in SWF > > >>>> > > > >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (< > > >>>> > [email protected]>) > > >>>> > escribió: > > >>>> > > > >>>> > > The append attribute has existed since the Flex days. > > >>>> > > > > >>>> > > -- > > >>>> > > Josh Tynjala > > >>>> > > Bowler Hat LLC <https://bowlerhat.dev> > > >>>> > > > > >>>> > > > > >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira < > > >>>> [email protected]> > > >>>> > > wrote: > > >>>> > > > > >>>> > > > Hi Harbs, > > >>>> > > > thanks, the append attribute is new one? it was introduced > > >>>> recently? > > >>>> > > > > > >>>> > > > thanks > > >>>> > > > > > >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (< > > [email protected] > > >>>> >) > > >>>> > > > escribió: > > >>>> > > > > > >>>> > > > > Make sure you have for the JS config: > > >>>> > > > > <js-external-library-path append=“true”> > > >>>> > > > > > > >>>> > > > > The append wil make sure you keep the default values. > > >>>> > > > > > > >>>> > > > > Here’s where I updated some of the libs I’m using: > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842 > > >>>> > > > > < > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842 > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28 > > >>>> > > > > < > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28 > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira < > > >>>> > [email protected]> > > >>>> > > > > wrote: > > >>>> > > > > > > > >>>> > > > > > Hi Josh, > > >>>> > > > > > > > >>>> > > > > > playerglobal.swc is ok, but can you point me to some place > > >>>> where > > >>>> > > > "js.swc" > > >>>> > > > > > is used? > > >>>> > > > > > > > >>>> > > > > > contents of compile-swf-config.xml are the following: > > >>>> > > > > > > > >>>> > > > > > <!-- > > >>>> > > > > > > > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved > > >>>> > > > > > Unauthorized copying of this file, via any medium is > > strictly > > >>>> > > > prohibited > > >>>> > > > > > Proprietary and confidential > > >>>> > > > > > > > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos > > >>>> > Reservados > > >>>> > > > > > La copia no autorizada de este archivo, a través de > > cualquier > > >>>> medio > > >>>> > > > está > > >>>> > > > > > estrictamente prohibida > > >>>> > > > > > Privado y confidencial > > >>>> > > > > > > > >>>> > > > > > --> > > >>>> > > > > > <royale-config> > > >>>> > > > > > > > >>>> > > > > > <compiler> > > >>>> > > > > > <accessible>false</accessible> > > >>>> > > > > > <!-- build both SWF and JS. --> > > >>>> > > > > > <targets> > > >>>> > > > > > <target>SWF</target> > > >>>> > > > > > <target>JSRoyale</target> > > >>>> > > > > > </targets> > > >>>> > > > > > <strict-xml>true</strict-xml> > > >>>> > > > > > > > >>>> > > > > > <external-library-path> > > >>>> > > > > > > > >>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</ > > >>>> > > > > > path-element> > > >>>> > > > > > > <path-element>../../../../../libs/Binding.swc</path-element> > > >>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element> > > >>>> > > > > > > > <path-element>../../../../../libs/Graphics.swc</path-element> > > >>>> > > > > > > > >>>> <path-element>../../../../../libs/Collections.swc</path-element> > > >>>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element> > > >>>> > > > > > </external-library-path> > > >>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides> > > >>>> > > > > > <mxml> > > >>>> > > > > > <children-as-data>true</children-as-data> > > >>>> > > > > > </mxml> > > >>>> > > > > > <binding-value-change-event> > > >>>> > > > > > > > >>>> > > > > >>>> > org.apache.royale.events.ValueChangeEvent</binding-value-change-event> > > >>>> > > > > > <binding-value-change-event-kind> > > >>>> > > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind> > > >>>> > > > > > <binding-value-change-event-type>valueChange</ > > >>>> > > > > > binding-value-change-event-type> > > >>>> > > > > > > > >>>> > > > > > <define> > > >>>> > > > > > <name>COMPILE::SWF</name> > > >>>> > > > > > <value>true</value> > > >>>> > > > > > </define> > > >>>> > > > > > <define> > > >>>> > > > > > <name>COMPILE::JS</name> > > >>>> > > > > > <value>false</value> > > >>>> > > > > > </define> > > >>>> > > > > > > > >>>> > > > > > <keep-as3-metadata> > > >>>> > > > > > <name>Bindable</name> > > >>>> > > > > > <name>Managed</name> > > >>>> > > > > > <name>ChangeEvent</name> > > >>>> > > > > > <name>NonCommittingChangeEvent</name> > > >>>> > > > > > <name>Transient</name> > > >>>> > > > > > </keep-as3-metadata> > > >>>> > > > > > > > >>>> > > > > > <locale/> > > >>>> > > > > > <library-path/> > > >>>> > > > > > > > >>>> > > > > > <namespaces> > > >>>> > > > > > <namespace> > > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri> > > >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest> > > >>>> > > > > > </namespace> > > >>>> > > > > > </namespaces> > > >>>> > > > > > <source-path> > > >>>> > > > > > <path-element>../royale</path-element> > > >>>> > > > > > </source-path> > > >>>> > > > > > <warn-no-constructor>false</warn-no-constructor> > > >>>> > > > > > </compiler> > > >>>> > > > > > <include-classes> > > >>>> > > > > > <class>IconsClasses</class> > > >>>> > > > > > </include-classes> > > >>>> > > > > > <include-namespaces> > > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri> > > >>>> > > > > > </include-namespaces> > > >>>> > > > > > <target-player>${playerglobal.version}</target-player> > > >>>> > > > > > > > >>>> > > > > > </royale-config> > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > I don't know too much about this file, have we docs about > > it? > > >>>> > > > > > the compiler generates the file itself? > > >>>> > > > > > it uses the global config.xml as a base? > > >>>> > > > > > > > >>>> > > > > > thanks Josh > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (< > > >>>> > > > > [email protected]>) > > >>>> > > > > > escribió: > > >>>> > > > > > > > >>>> > > > > >> Error: Missing builtin type Object > > >>>> > > > > >> > > >>>> > > > > >> This error usually means that either playerglobal.swc or > > >>>> js.swc is > > >>>> > > > > missing. > > >>>> > > > > >> > > >>>> > > > > >> It would be difficult to suggest anything more without > > >>>> seeing the > > >>>> > > > > contents > > >>>> > > > > >> of compile-swf-config.xml. > > >>>> > > > > >> > > >>>> > > > > >> -- > > >>>> > > > > >> Josh Tynjala > > >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev> > > >>>> > > > > >> > > >>>> > > > > >> > > >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira < > > >>>> > > > [email protected]> > > >>>> > > > > >> wrote: > > >>>> > > > > >> > > >>>> > > > > >>> Hi, > > >>>> > > > > >>> > > >>>> > > > > >>> after latest changes with "library-path" I'm trying to > > >>>> update my > > >>>> > > > > project > > >>>> > > > > >>> with no luck. > > >>>> > > > > >>> > > >>>> > > > > >>> Hope someone could let me know some guide since all > what I > > >>>> tried > > >>>> > > > didn't > > >>>> > > > > >>> work and always get this: > > >>>> > > > > >>> > > >>>> > > > > >>> [*INFO*] *--- > > *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as > > >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---* > > >>>> > > > > >>> > > >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args: > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >> > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml, > > >>>> > > > > >>> -js-default-initializers=false, -source-map=true, > > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale, > -compiler.strict-xml=true] > > >>>> > > > > >>> > > >>>> > > > > >>> args: > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >> > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml > > >>>> > > > > >>> > > >>>> > > > > >>> -js-default-initializers=false > > >>>> > > > > >>> > > >>>> > > > > >>> -source-map=true > > >>>> > > > > >>> > > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale > > >>>> > > > > >>> > > >>>> > > > > >>> -compiler.strict-xml=true > > >>>> > > > > >>> > > >>>> > > > > >>> target:SWF > > >>>> > > > > >>> > > >>>> > > > > >>> target:JSRoyale > > >>>> > > > > >>> > > >>>> > > > > >>> COMPC > > >>>> > > > > >>> > > >>>> > > > > >>> Loading configuration: > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >> > > >>>> > > > > > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> Error: Missing builtin type Object > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> Missing builtin type Object > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> > > >>>> > > > > >>> 0.553372072 seconds > > >>>> > > > > >>> > > >>>> > > > > >>> this is failing when maven tries to compile the first > > >>>> library > > >>>> > > project > > >>>> > > > > >>> > > >>>> > > > > >>> Thanks for any light on this > > >>>> > > > > >>> > > >>>> > > > > >>> -- > > >>>> > > > > >>> Carlos Rovira > > >>>> > > > > >>> http://about.me/carlosrovira > > >>>> > > > > >>> > > >>>> > > > > >> > > >>>> > > > > > > > >>>> > > > > > > > >>>> > > > > > -- > > >>>> > > > > > Carlos Rovira > > >>>> > > > > > http://about.me/carlosrovira > > >>>> > > > > > > >>>> > > > > > > >>>> > > > > > >>>> > > > -- > > >>>> > > > Carlos Rovira > > >>>> > > > http://about.me/carlosrovira > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > > >>>> > -- > > >>>> > Carlos Rovira > > >>>> > http://about.me/carlosrovira > > >>>> > > > >>>> > > >>> > > >>> > > >>> -- > > >>> Carlos Rovira > > >>> http://about.me/carlosrovira > > >>> > > >>> > > >> > > >> -- > > >> Carlos Rovira > > >> http://about.me/carlosrovira > > >> > > >> > > > > > > -- > > > Carlos Rovira > > > http://about.me/carlosrovira > > > > > > > > > > -- > > Carlos Rovira > > http://about.me/carlosrovira > > > -- Carlos Rovira http://about.me/carlosrovira
