You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by "Hepzy X, Anto (CW) (E)" <an...@mcafee.com> on 2021/10/28 13:23:10 UTC

Maven settings for mx components

Hi,
I am pretty much new to Royale and I am trying to compile with Maven and my query is how to set the pom.xml to combine mx components with basic , express or Jewel.
There is an error which says the tag is not recognized if I add mx tags in basic, I have worked in moonshine ide where we can set the additional config as, +configname=flex which eliminates the error.

Just wanted to know how it is set in the Maven.

Appreciate your response.

Regards,
Anto Hepzy

RE: Maven settings for mx components

Posted by "Hepzy X, Anto (CW) (E)" <an...@mcafee.com>.
Thanks Yishey, the explanation and example provided was really helpful. Will try that out.

Regards,
Anto Hepzy

-----Original Message-----
From: Yishay Weiss <yi...@apache.org> 
Sent: Thursday, October 28, 2021 9:50 PM
To: users@royale.apache.org
Subject: Re: Maven settings for mx components

CAUTION: External email. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Hepzy,

Welcome to Royale. 

This (see link below) [1] is the smallest pom.xml I could come up with to run an MX example with Maven. There may be redundancies, so anyone with more maven experience is welcome to comment on it. 

If you want to add spark components you should replace 

<artifactId>MXRoyale</artifactId>
with
<artifactId>SparkRoyale</artifactId>

SparkRoyale itself depends on MXRoyale so I think that's sufficient for both libs.

>combine mx components with basic , express or Jewel

MX behavior will likely break in runtime if you mix in components sets but I think you should be able to compile with these components sets if you add them as dependencies, same wat I added MXRoyale.

Hope this helps.

[1]  https://paste.apache.org/fze86

On 2021/10/28 13:23:10, "Hepzy X, Anto (CW) (E)" <an...@mcafee.com> wrote: 
> Hi,
> I am pretty much new to Royale and I am trying to compile with Maven and my query is how to set the pom.xml to combine mx components with basic , express or Jewel.
> There is an error which says the tag is not recognized if I add mx tags in basic, I have worked in moonshine ide where we can set the additional config as, +configname=flex which eliminates the error.
> 
> Just wanted to know how it is set in the Maven.
> 
> Appreciate your response.
> 
> Regards,
> Anto Hepzy
> 


Re: Maven settings for mx components

Posted by Yishay Weiss <yi...@apache.org>.
Hi Hepzy,

Welcome to Royale. 

This (see link below) [1] is the smallest pom.xml I could come up with to run an MX example with Maven. There may be redundancies, so anyone with more maven experience is welcome to comment on it. 

If you want to add spark components you should replace 

<artifactId>MXRoyale</artifactId>
with
<artifactId>SparkRoyale</artifactId>

SparkRoyale itself depends on MXRoyale so I think that's sufficient for both libs.

>combine mx components with basic , express or Jewel

MX behavior will likely break in runtime if you mix in components sets but I think you should be able to compile with these components sets if you add them as dependencies, same wat I added MXRoyale.

Hope this helps.

[1]  https://paste.apache.org/fze86

On 2021/10/28 13:23:10, "Hepzy X, Anto (CW) (E)" <an...@mcafee.com> wrote: 
> Hi,
> I am pretty much new to Royale and I am trying to compile with Maven and my query is how to set the pom.xml to combine mx components with basic , express or Jewel.
> There is an error which says the tag is not recognized if I add mx tags in basic, I have worked in moonshine ide where we can set the additional config as, +configname=flex which eliminates the error.
> 
> Just wanted to know how it is set in the Maven.
> 
> Appreciate your response.
> 
> Regards,
> Anto Hepzy
>