You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by choirul anam <ic...@gmail.com> on 2020/11/12 18:39:21 UTC
MainApp and Module compiled successfully, but the module wont
loading
I am trying to build royale module in the provided blog example folder.
Folder in my computer is :
D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules
What i am doing is:
1. Build both MainJewelApp and JewelModule with Ctrl+Shift+B command in
VsCode
2. Copy files from
D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\JewelModule\bin\js-debug
into
D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\MainJewelApp\bin\js-debug\modules
3. When open MainJewelApp/bin/js-debug/index.html page is loaded
4. But when i click Load Module button, the module did not appear
5. in chrome console show these error message :
<http://apache-royale-users.20374.n8.nabble.com/file/t62/error_loading_module.png>
6.complete source code :
BE0013_Dividing_an_Apache_Royale_application_with_modules.7z
<http://apache-royale-users.20374.n8.nabble.com/file/t62/BE0013_Dividing_an_Apache_Royale_application_with_modules.7z>
Please help.
Thanks in advance.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: MainApp and Module compiled successfully, but the module wont loading
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
congrats to make it work! :)
About "option-with-sass-compile": that maven profile is used to generate
CSS files from SASS. In Jewel and JewelTheme the final CSS file is
generated from several SASS files to keep it organized and structured (like
use AS3 instead of JS). But to avoid always launch the CSS generation we
separated the task in its own profile. So that profile is just needed when
something in CSS changed and we need to generate all themes. So in your
case, it's not needed.
El vie, 20 nov 2020 a las 20:20, choirul anam (<ic...@gmail.com>)
escribió:
> Finally, success building jewel module with maven.
> <http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png>
>
> Build with java version 1.8
>
> C:\Users\Rhea ASUS>mvn -version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: C:\apache-maven-3.6.3\bin\..
> Java version: 1.8.0_271, vendor: Oracle Corporation, runtime: C:\Program
> Files (
> x86)\Java\jre1.8.0_271
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 8.1", version: "6.3", arch: "x86", family: "windows"
>
> But there is warning :
>
> [WARNING] The requested profile "option-with-sass-compile" could not be
> activated because it does not exist.
>
> is this normal ?
>
>
> Thankyou Carlos
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: MainApp and Module compiled successfully, but the module wont
loading
Posted by choirul anam <ic...@gmail.com>.
Finally, success building jewel module with maven.
<http://apache-royale-users.20374.n8.nabble.com/file/t62/Untitled.png>
Build with java version 1.8
C:\Users\Rhea ASUS>mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\apache-maven-3.6.3\bin\..
Java version: 1.8.0_271, vendor: Oracle Corporation, runtime: C:\Program
Files (
x86)\Java\jre1.8.0_271
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "x86", family: "windows"
But there is warning :
[WARNING] The requested profile "option-with-sass-compile" could not be
activated because it does not exist.
is this normal ?
Thankyou Carlos
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: MainApp and Module compiled successfully, but the module wont loading
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
I think Maven is ok, but you're using Java 7, I think you need at least 8
since some artifacts now required at least Java 8.
Then you the flex-maven-converter is failing to download. Please try with
Java 8 and lets see if that solves the problem.
If not, hope Chris can help here since he has far more knowledge about
maven issues.
El vie., 20 nov. 2020 a las 4:35, choirul anam (<ic...@gmail.com>)
escribió:
> Thankyou Carlos,
>
> Trying to build with Maven as your suggestion,but still not work.
>
> My mvn version:
>
> C:\Windows\System32>mvn -version
> Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
> 2018-10-25T01:41:4
> 7+07:00)
> Maven home: D:\apache-maven-3.6.0\bin\..
> Java version: 1.7.0_45, vendor: Oracle Corporation, runtime: C:\Program
> Files (x
> 86)\Java\jdk1.7.0_45\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>
> My tasks.json file
>
> #set($dollar = '$')
> {
> // See https://go.microsoft.com/fwlink/?LinkId=733558
> // for the documentation about the tasks.json format
> "version": "2.0.0",
> "tasks": [
> // MAVEN
> {
> "label": "Build with Maven",
> "type": "shell",
> "command": "mvn",
> "args": [
> "clean",
> "install",
> // "-P option-with-swf",
> "-DskipTests"
> ],
> "group": "build",
> "presentation": {
> "echo": true,
> "reveal": "always",
> "focus": true,
> "panel": "dedicated"
> },
> "problemMatcher": []
> },
> // AS3&MXML (Debug)
> {
> "label": "Build with AS3&MXML (Debug)",
> "type": "actionscript",
> "debug": true,
> "group": "build",
> "presentation": {
> "echo": true,
> "reveal": "always",
> "focus": true,
> "panel": "dedicated"
> },
> "problemMatcher": []
> },
> // AS3&MXML (Release)
> {
> "label": "Build with AS3&MXML (Release)",
> "type": "actionscript",
> "debug": false,
> "group": "build",
> "presentation": {
> "echo": true,
> "reveal": "always",
> "focus": true,
> "panel": "dedicated"
> },
> "problemMatcher": []
> },
> // ASCONFIGC
> {
> "label": "build with asconfigc",
> "type": "shell",
> "command": "asconfigc",
> "args": [
> "--sdk=${dollar}{config:as3mxml.sdk.framework}"
> ],
> "group": "build",
> "presentation": {
> "echo": true,
> "reveal": "always",
> "focus": true,
> "panel": "dedicated"
> },
> "problemMatcher": []
> }
> ]
> }
>
> And this is terminal window after executing "Build With Maven" in my Vscode
> :
>
> Executing task: mvn clean install -DskipTests <
>
> Downloading from central:
>
> https://repo.maven.apache.org/maven2/org/apache/flex/utilities/converter/flex-sdk-converter-maven-extension/1.0.0/flex-sdk-converter-maven-extension-1.0.0.pom
> [WARNING] Failed to read extensions descriptor
>
> D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\.mvn\extensions.xml:
> Plugin
>
> org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:1.0.0
> or one of its dependencies could not be resolved: Failed to read artifact
> descriptor for
>
> org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:jar:1.0.0
> [INFO] Scanning for projects...
> Downloading from central:
> https://repo.maven.apache.org/maven2/org/apache/apache/23/apache-23.pom
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [FATAL] Non-resolvable parent POM for
> org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT: Could
> not transfer artifact org.apache:apache:pom:23 from/to central
> (https://repo.maven.apache.org/maven2): Received fatal alert:
> protocol_version and 'parent.relativePath' points at no local POM @
> org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT,
> D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\pom.xml, line
> 23,
> column 11
> @
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR] The project
>
> org.apache.royale.examples:BE0013_Dividing_an_Apache_Royale_application_with_modules:0.9.8-SNAPSHOT
>
> (D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM for
> org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT: Could
> not transfer artifact org.apache:apache:pom:23 from/to central
> (https://repo.maven.apache.org/maven2): Received fatal alert:
> protocol_version and
> 'parent.relativePath' points at no local POM @
> org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT,
> D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\pom.xml, line
> 23,
> column 11 -> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> The terminal process "C:\Windows\system32\cmd.exe /d /c mvn clean install
> -DskipTests" terminated with exit code: 1.
>
> Terminal will be reused by tasks, press any key to close it.
>
> Is there any configuration miss in my project ?
> Thanks in advance
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: MainApp and Module compiled successfully, but the module wont
loading
Posted by choirul anam <ic...@gmail.com>.
Thankyou Carlos,
Trying to build with Maven as your suggestion,but still not work.
My mvn version:
C:\Windows\System32>mvn -version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
2018-10-25T01:41:4
7+07:00)
Maven home: D:\apache-maven-3.6.0\bin\..
Java version: 1.7.0_45, vendor: Oracle Corporation, runtime: C:\Program
Files (x
86)\Java\jdk1.7.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
My tasks.json file
#set($dollar = '$')
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
// MAVEN
{
"label": "Build with Maven",
"type": "shell",
"command": "mvn",
"args": [
"clean",
"install",
// "-P option-with-swf",
"-DskipTests"
],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": []
},
// AS3&MXML (Debug)
{
"label": "Build with AS3&MXML (Debug)",
"type": "actionscript",
"debug": true,
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": []
},
// AS3&MXML (Release)
{
"label": "Build with AS3&MXML (Release)",
"type": "actionscript",
"debug": false,
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": []
},
// ASCONFIGC
{
"label": "build with asconfigc",
"type": "shell",
"command": "asconfigc",
"args": [
"--sdk=${dollar}{config:as3mxml.sdk.framework}"
],
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated"
},
"problemMatcher": []
}
]
}
And this is terminal window after executing "Build With Maven" in my Vscode
:
Executing task: mvn clean install -DskipTests <
Downloading from central:
https://repo.maven.apache.org/maven2/org/apache/flex/utilities/converter/flex-sdk-converter-maven-extension/1.0.0/flex-sdk-converter-maven-extension-1.0.0.pom
[WARNING] Failed to read extensions descriptor
D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\.mvn\extensions.xml:
Plugin
org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:1.0.0
or one of its dependencies could not be resolved: Failed to read artifact
descriptor for
org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:jar:1.0.0
[INFO] Scanning for projects...
Downloading from central:
https://repo.maven.apache.org/maven2/org/apache/apache/23/apache-23.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for
org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT: Could
not transfer artifact org.apache:apache:pom:23 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version and 'parent.relativePath' points at no local POM @
org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT,
D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\pom.xml, line 23,
column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project
org.apache.royale.examples:BE0013_Dividing_an_Apache_Royale_application_with_modules:0.9.8-SNAPSHOT
(D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM for
org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT: Could
not transfer artifact org.apache:apache:pom:23 from/to central
(https://repo.maven.apache.org/maven2): Received fatal alert:
protocol_version and
'parent.relativePath' points at no local POM @
org.apache.royale.framework:royale-framework-parent:0.9.8-SNAPSHOT,
D:\xampp\htdocs\apache-royale-0.9.8-bin-js-swf\royale-asjs\pom.xml, line 23,
column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
The terminal process "C:\Windows\system32\cmd.exe /d /c mvn clean install
-DskipTests" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Is there any configuration miss in my project ?
Thanks in advance
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: MainApp and Module compiled successfully, but the module wont loading
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
yes I use VSCode too. So just hit CTRL (or CMD in Mac) + SHIFT + B in
VSCode, then choose "Build with Maven"
That will run the maven with the pom.xml file in that project, that is the
definition of the project in maven.
El dom., 15 nov. 2020 a las 5:25, choirul anam (<ic...@gmail.com>)
escribió:
> Thankyou Carlos,
>
> I am not familiar with maven build,
> How i use maven build with VSCode? is it posiible?
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: MainApp and Module compiled successfully, but the module wont
loading
Posted by choirul anam <ic...@gmail.com>.
Thankyou Carlos,
I am not familiar with maven build,
How i use maven build with VSCode? is it posiible?
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: MainApp and Module compiled successfully, but the module wont loading
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
Currently the module feature still has some issues to be solved. I think it
needs more work to be done by people like Greg or Josh.
About your issue. The example is working if you use Maven build, since it
needed copying the module to the main app target folder so the runtime
example could find the module.
That work was never done for ANT or for IDEs.
Anyone wanting to use modules seriously should talk with Greg and Josh to
allow solve all the problems, also I think (but is my opinion) contract
them for payed hours would be the best to make it real soon.
Just my 2
El jue., 12 nov. 2020 a las 19:39, choirul anam (<ic...@gmail.com>)
escribió:
> I am trying to build royale module in the provided blog example folder.
> Folder in my computer is :
> D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules
>
>
> What i am doing is:
> 1. Build both MainJewelApp and JewelModule with Ctrl+Shift+B command in
> VsCode
> 2. Copy files from
> D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\JewelModule\bin\js-debug
>
> into
> D:\Website\apache-royale-0.9.8-bin-js-swf\royale-asjs\examples\blog\BE0013_Dividing_an_Apache_Royale_application_with_modules\MainJewelApp\bin\js-debug\modules
>
> 3. When open MainJewelApp/bin/js-debug/index.html page is loaded
> 4. But when i click Load Module button, the module did not appear
> 5. in chrome console show these error message :
> [image: error loading module]
> 6.complete source code :
> BE0013_Dividing_an_Apache_Royale_application_with_modules.7z
> <http://apache-royale-users.20374.n8.nabble.com/file/t62/BE0013_Dividing_an_Apache_Royale_application_with_modules.7z>
> Please help.
> Thanks in advance.
> ------------------------------
> Sent from the Apache Royale Users mailing list archive
> <http://apache-royale-users.20374.n8.nabble.com/> at Nabble.com.
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira