You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by yishayw <yi...@hotmail.com> on 2016/12/28 15:22:11 UTC

[FlexJS] Using Maven with Flash Builder

I got the framework built using maven. The wiki [1] page was very helpful. My
next steps are to achieve the workflow I used with Ant. Basically I need
help to do the following:

1) Build a Flash Builder (e.g. DataBindingExample) project with maven, JS
version.
2) Ditto with the flash version.
3) Make changes in the framework and build the related package (e.g. changes
in HTML)

Can anyone point me in the right direction? Thanks.

[1]
https://cwiki.apache.org/confluence/display/FLEX/Building+FlexJS+with+Maven



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Alex Harui <ah...@adobe.com>.
Copy a pom.xml from flex-asjs/examples/flexjs/DataBindingExample or
FlexJSStore or MDLExample.

Then run:
  mvn clean install

And adjust the pom as needed.

-Alex

On 1/2/17, 2:12 AM, "yishayw" <yi...@hotmail.com> wrote:

>Ok, I don't mind using the command line to build. How do I create a
>minimal
>FlexJS project? What is the minimal pom.xml?
>
>Reading a thread you and Chris has on the subject, I tried doing this:
>
>C:\dev\printui\project>mvn -s
>C:\dev\mvn_flexjs\flex-asjs\settings-template.xml archetype:generate
>-DarchetypeGroupId=org.apache.flex.flexjs.framework
>-DarchetypeArtifactId=flexjs-application-archetype
>-DarchetypeVersion=0.8.0-SNAPSHOT
>
>The result was:
>
>[ERROR] Failed to execute goal
>org.apache.maven.plugins:maven-archetype-plugin:2
>.4:generate (default-cli) on project standalone-pom: The desired archetype
>does
>not exist
>(org.apache.flex.flexjs.framework:flexjs-application-archetype:0.8.0-S
>NAPSHOT) -> [Help 1]
>
>
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-wi
>th-Flash-Builder-tp57612p57745.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Yishayw,

MDLExample is 6.2sec in my macbookpro
MaterialDesginLibrary.swc is 6.1sec and so on,

Maybe your app has a lot of classes and code, and goes up to 1 min...

1) I only compile JS (you can check MDLExample)
2) don't know about this, maybe others...
3) Yes. You pass "mvn clean install" in the module you change and then
recompile your App (again mvn clean install in your App). Or CTRL+CMD+B in
VSCode + NExtGenAs
4) clean is the most secure way and the cost in time is very few secs. It
removes all content in "target" folder. You can do mvn install, but maybe
only when you know the changes in your project will allow that...




2017-01-03 9:46 GMT+01:00 yishayw <yi...@hotmail.com>:

> Using the correct artifactId the stub was created. I changed
> <sourceDirectory>, and <mainClass>, added some framework dependencies, and
> I
> now have our app compiling in maven.
>
> The build is still to slow to my liking (1 minute on my machine). So I have
> some questions:
>
> 1) Can I compile to JS debug only (no release, no flash)?
> 2) Can I do an incremental build?
> 3) Most of the time I'm not changing framework code, I'd like to compile
> the
> app code and keep the framework products as they were. Is that possible?
> 4) Possibly related to (2) or (3): is the clean argument necessary or can I
> just do mvn install?
>
> Thanks.
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
> Flash-Builder-tp57612p57797.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Yeeeeeaaahhh … actually Carlos is right … I meant to say “Hi Carlos” ;-)

Chris

Am 03.01.17, 21:16 schrieb "carlos.rovira@gmail.com im Auftrag von Carlos Rovira" <carlos.rovira@gmail.com im Auftrag von carlos.rovira@codeoscopic.com>:

    I think Chris, wanted to say "Hi Carlos" instead of "Hi Om"
    
    right?
    
    :)
    
    2017-01-03 19:45 GMT+01:00 OmPrakash Muppirala <bi...@gmail.com>:
    
    > On Tue, Jan 3, 2017 at 8:25 AM, Christofer Dutz <christofer.dutz@c-ware.de
    > >
    > wrote:
    >
    > > Hi Om,
    > >
    > > Well this should be the default, so if you set “debug=false” or simply
    > > omit the setting, the debug and the release version should be created.
    > >
    >
    > Chris, what is the context, or did you refer to me by mistake?
    >
    > Thanks,
    > Om
    >
    >
    > >
    > > Chris
    > >
    > > Am 03.01.17, 16:52 schrieb "carlos.rovira@gmail.com im Auftrag von
    > Carlos
    > > Rovira" <carlos.rovira@gmail.com im Auftrag von
    > > carlos.rovira@codeoscopic.com>:
    > >
    > >     Thanks Chris,
    > >
    > >     Ok, so I'm creating the default debug release, (without
    > > <debug>true</debug>)
    > >     So, what's the way to tell maven to create the release version?
    > >
    > >     Thanks
    > >
    > >
    > >
    > >
    >
    
    
    
    -- 
    
    Carlos Rovira
    Director General
    M: +34 607 22 60 05
    http://www.codeoscopic.com
    http://www.avant2.es
    
    Este mensaje se dirige exclusivamente a su destinatario y puede contener
    información privilegiada o confidencial. Si ha recibido este mensaje por
    error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
    proceda a su destrucción.
    
    De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
    que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
    S.A. La finalidad de dicho tratamiento es facilitar la prestación del
    servicio o información solicitados, teniendo usted derecho de acceso,
    rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
    oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
    necesaria.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
I think Chris, wanted to say "Hi Carlos" instead of "Hi Om"

right?

:)

2017-01-03 19:45 GMT+01:00 OmPrakash Muppirala <bi...@gmail.com>:

> On Tue, Jan 3, 2017 at 8:25 AM, Christofer Dutz <christofer.dutz@c-ware.de
> >
> wrote:
>
> > Hi Om,
> >
> > Well this should be the default, so if you set “debug=false” or simply
> > omit the setting, the debug and the release version should be created.
> >
>
> Chris, what is the context, or did you refer to me by mistake?
>
> Thanks,
> Om
>
>
> >
> > Chris
> >
> > Am 03.01.17, 16:52 schrieb "carlos.rovira@gmail.com im Auftrag von
> Carlos
> > Rovira" <carlos.rovira@gmail.com im Auftrag von
> > carlos.rovira@codeoscopic.com>:
> >
> >     Thanks Chris,
> >
> >     Ok, so I'm creating the default debug release, (without
> > <debug>true</debug>)
> >     So, what's the way to tell maven to create the release version?
> >
> >     Thanks
> >
> >
> >
> >
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Tue, Jan 3, 2017 at 8:25 AM, Christofer Dutz <ch...@c-ware.de>
wrote:

> Hi Om,
>
> Well this should be the default, so if you set “debug=false” or simply
> omit the setting, the debug and the release version should be created.
>

Chris, what is the context, or did you refer to me by mistake?

Thanks,
Om


>
> Chris
>
> Am 03.01.17, 16:52 schrieb "carlos.rovira@gmail.com im Auftrag von Carlos
> Rovira" <carlos.rovira@gmail.com im Auftrag von
> carlos.rovira@codeoscopic.com>:
>
>     Thanks Chris,
>
>     Ok, so I'm creating the default debug release, (without
> <debug>true</debug>)
>     So, what's the way to tell maven to create the release version?
>
>     Thanks
>
>
>
>

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Om,

Well this should be the default, so if you set “debug=false” or simply omit the setting, the debug and the release version should be created.

Chris

Am 03.01.17, 16:52 schrieb "carlos.rovira@gmail.com im Auftrag von Carlos Rovira" <carlos.rovira@gmail.com im Auftrag von carlos.rovira@codeoscopic.com>:

    Thanks Chris,
    
    Ok, so I'm creating the default debug release, (without <debug>true</debug>)
    So, what's the way to tell maven to create the release version?
    
    Thanks
    
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Thanks Chris,

Ok, so I'm creating the default debug release, (without <debug>true</debug>)
So, what's the way to tell maven to create the release version?

Thanks



2017-01-03 14:46 GMT+01:00 Christofer Dutz <ch...@c-ware.de>:

> Hi Carlos,
>
> As far as I understand things is, that the compiler automatically produces
> the debug version as default output. When doing a release build, this debug
> output is passed to the closure compiler which produces the release version
> from that. So you can disble the release compilation, but not the
> generation of the debug version.
>
> Chris
>
>
> Am 03.01.17, 12:39 schrieb "carlos.rovira@gmail.com im Auftrag von Carlos
> Rovira" <carlos.rovira@gmail.com im Auftrag von
> carlos.rovira@codeoscopic.com>:
>
>     Hi Chris,
>
>     about <debug>true</debug>, I don't have it in MDLExample, but I'm
> always
>     creating a debug version...maybe is set in a parent pom?
>
>     2017-01-03 12:14 GMT+01:00 Christofer Dutz <christofer.dutz@c-ware.de
> >:
>
>     > Hi,
>     >
>     > 1) If you add “<debug>true</debug>” to the configuration of the
>     > flexjs-maven-plugin it will not do the release compilation.
>     > 2) Haven’t experimented too much with that, but a “mvn package”
> should do
>     > something like that
>     > 3) You shouldn’t need to compile the framework in order to build an
>     > application. Maven doesn’t reference the other projects sources, but
> their
>     > artifacts. So whenever an artifact is built with “mvn install” the
> swc is
>     > copied to the maven local repo (which is usually in
> “~/.m2/repository”) So
>     > you should be able to just build the application and it should pull
> in the
>     > latest version of the framework. You shouldn’t even be required to
> have the
>     > Framework at all. Maven should pull the latest version from the
> Apache
>     > Maven repo.
>     > 4) In general, it is even an anti-pattern to use “mvn clean
> install”, but
>     > I like to use it in projects with a lot of generated code as this
> makes
>     > sure you have all code clean and fresh. I will have to check if
> running
>     > just “mvn package” (which should be enough) will work as we do some
> other
>     > stuff in FlexJS compared to a plain Java compilation. In a Java
> project a
>     > “mvn package” would be an incremental build.
>     >
>     > Chris
>     >
>     > Am 03.01.17, 09:46 schrieb "yishayw" <yi...@hotmail.com>:
>     >
>     >     Using the correct artifactId the stub was created. I changed
>     >     <sourceDirectory>, and <mainClass>, added some framework
> dependencies,
>     > and I
>     >     now have our app compiling in maven.
>     >
>     >     The build is still to slow to my liking (1 minute on my
> machine). So I
>     > have
>     >     some questions:
>     >
>     >     1) Can I compile to JS debug only (no release, no flash)?
>     >     2) Can I do an incremental build?
>     >     3) Most of the time I'm not changing framework code, I'd like to
>     > compile the
>     >     app code and keep the framework products as they were. Is that
>     > possible?
>     >     4) Possibly related to (2) or (3): is the clean argument
> necessary or
>     > can I
>     >     just do mvn install?
>     >
>     >     Thanks.
>     >
>     >
>     >
>     >     --
>     >     View this message in context: http://apache-flex-
>     > development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
>     > Flash-Builder-tp57612p57797.html
>     >     Sent from the Apache Flex Development mailing list archive at
>     > Nabble.com.
>     >
>     >
>     >
>
>
>     --
>
>     Carlos Rovira
>     Director General
>     M: +34 607 22 60 05
>     http://www.codeoscopic.com
>     http://www.avant2.es
>
>     Este mensaje se dirige exclusivamente a su destinatario y puede
> contener
>     información privilegiada o confidencial. Si ha recibido este mensaje
> por
>     error, le rogamos que nos lo comunique inmediatamente por esta misma
> vía y
>     proceda a su destrucción.
>
>     De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> comunicamos
>     que sus datos forman parte de un fichero cuyo responsable es
> CODEOSCOPIC
>     S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>     servicio o información solicitados, teniendo usted derecho de acceso,
>     rectificación, cancelación y oposición de sus datos dirigiéndose a
> nuestras
>     oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>     necesaria.
>
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Carlos,

As far as I understand things is, that the compiler automatically produces the debug version as default output. When doing a release build, this debug output is passed to the closure compiler which produces the release version from that. So you can disble the release compilation, but not the generation of the debug version.

Chris


Am 03.01.17, 12:39 schrieb "carlos.rovira@gmail.com im Auftrag von Carlos Rovira" <carlos.rovira@gmail.com im Auftrag von carlos.rovira@codeoscopic.com>:

    Hi Chris,
    
    about <debug>true</debug>, I don't have it in MDLExample, but I'm always
    creating a debug version...maybe is set in a parent pom?
    
    2017-01-03 12:14 GMT+01:00 Christofer Dutz <ch...@c-ware.de>:
    
    > Hi,
    >
    > 1) If you add “<debug>true</debug>” to the configuration of the
    > flexjs-maven-plugin it will not do the release compilation.
    > 2) Haven’t experimented too much with that, but a “mvn package” should do
    > something like that
    > 3) You shouldn’t need to compile the framework in order to build an
    > application. Maven doesn’t reference the other projects sources, but their
    > artifacts. So whenever an artifact is built with “mvn install” the swc is
    > copied to the maven local repo (which is usually in “~/.m2/repository”) So
    > you should be able to just build the application and it should pull in the
    > latest version of the framework. You shouldn’t even be required to have the
    > Framework at all. Maven should pull the latest version from the Apache
    > Maven repo.
    > 4) In general, it is even an anti-pattern to use “mvn clean install”, but
    > I like to use it in projects with a lot of generated code as this makes
    > sure you have all code clean and fresh. I will have to check if running
    > just “mvn package” (which should be enough) will work as we do some other
    > stuff in FlexJS compared to a plain Java compilation. In a Java project a
    > “mvn package” would be an incremental build.
    >
    > Chris
    >
    > Am 03.01.17, 09:46 schrieb "yishayw" <yi...@hotmail.com>:
    >
    >     Using the correct artifactId the stub was created. I changed
    >     <sourceDirectory>, and <mainClass>, added some framework dependencies,
    > and I
    >     now have our app compiling in maven.
    >
    >     The build is still to slow to my liking (1 minute on my machine). So I
    > have
    >     some questions:
    >
    >     1) Can I compile to JS debug only (no release, no flash)?
    >     2) Can I do an incremental build?
    >     3) Most of the time I'm not changing framework code, I'd like to
    > compile the
    >     app code and keep the framework products as they were. Is that
    > possible?
    >     4) Possibly related to (2) or (3): is the clean argument necessary or
    > can I
    >     just do mvn install?
    >
    >     Thanks.
    >
    >
    >
    >     --
    >     View this message in context: http://apache-flex-
    > development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
    > Flash-Builder-tp57612p57797.html
    >     Sent from the Apache Flex Development mailing list archive at
    > Nabble.com.
    >
    >
    >
    
    
    -- 
    
    Carlos Rovira
    Director General
    M: +34 607 22 60 05
    http://www.codeoscopic.com
    http://www.avant2.es
    
    Este mensaje se dirige exclusivamente a su destinatario y puede contener
    información privilegiada o confidencial. Si ha recibido este mensaje por
    error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
    proceda a su destrucción.
    
    De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
    que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
    S.A. La finalidad de dicho tratamiento es facilitar la prestación del
    servicio o información solicitados, teniendo usted derecho de acceso,
    rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
    oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
    necesaria.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Chris,

about <debug>true</debug>, I don't have it in MDLExample, but I'm always
creating a debug version...maybe is set in a parent pom?

2017-01-03 12:14 GMT+01:00 Christofer Dutz <ch...@c-ware.de>:

> Hi,
>
> 1) If you add “<debug>true</debug>” to the configuration of the
> flexjs-maven-plugin it will not do the release compilation.
> 2) Haven’t experimented too much with that, but a “mvn package” should do
> something like that
> 3) You shouldn’t need to compile the framework in order to build an
> application. Maven doesn’t reference the other projects sources, but their
> artifacts. So whenever an artifact is built with “mvn install” the swc is
> copied to the maven local repo (which is usually in “~/.m2/repository”) So
> you should be able to just build the application and it should pull in the
> latest version of the framework. You shouldn’t even be required to have the
> Framework at all. Maven should pull the latest version from the Apache
> Maven repo.
> 4) In general, it is even an anti-pattern to use “mvn clean install”, but
> I like to use it in projects with a lot of generated code as this makes
> sure you have all code clean and fresh. I will have to check if running
> just “mvn package” (which should be enough) will work as we do some other
> stuff in FlexJS compared to a plain Java compilation. In a Java project a
> “mvn package” would be an incremental build.
>
> Chris
>
> Am 03.01.17, 09:46 schrieb "yishayw" <yi...@hotmail.com>:
>
>     Using the correct artifactId the stub was created. I changed
>     <sourceDirectory>, and <mainClass>, added some framework dependencies,
> and I
>     now have our app compiling in maven.
>
>     The build is still to slow to my liking (1 minute on my machine). So I
> have
>     some questions:
>
>     1) Can I compile to JS debug only (no release, no flash)?
>     2) Can I do an incremental build?
>     3) Most of the time I'm not changing framework code, I'd like to
> compile the
>     app code and keep the framework products as they were. Is that
> possible?
>     4) Possibly related to (2) or (3): is the clean argument necessary or
> can I
>     just do mvn install?
>
>     Thanks.
>
>
>
>     --
>     View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
> Flash-Builder-tp57612p57797.html
>     Sent from the Apache Flex Development mailing list archive at
> Nabble.com.
>
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
I'm using our application, not an example.

I'm comparing the Ant and Maven run times to the app launched from a run
(debug actually) configuration in FB.

The Maven output is here. Ant times are similar. Most of the time is spent
on compilation and dependency calculation (I removed most of the proprietary
class information for obvious reasons). I don't know how to log a maven
install with timestamps, but I got the rough idea nonetheless.

[1] https://paste.apache.org/6nqI



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57961.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
I did disable windows defender (the built in antivirus) but I only noticed a
slight difference if at all. I'm probably going to upgrade my machine
because of this, but obviously we need to cater to windows developers who
would rather not do that.



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p58974.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Alex Harui <ah...@adobe.com>.

On 1/31/17, 5:49 AM, "yishayw" <yi...@hotmail.com> wrote:

>Well Harbs is using a Mac which definitely runs the build  faster so that
>could indeed be the issue. Maybe I'll post something on github so other
>people with Windows can report compile time. Thanks.

Windows tends to have more virus checkers, especially the check-on-write
that really slow down the build.  Try disabling all virus checking and
running a build.  Also, if your SSD is using encryption, that will also
cost you.  If you are using Cygwin or a Bash Shell that will also cost you.

-Alex


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Well Harbs is using a Mac which definitely runs the build  faster so that
could indeed be the issue. Maybe I'll post something on github so other
people with Windows can report compile time. Thanks.



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p58847.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Yishay,

Well the thing is that during compilation more VMs are spawned.
I doubt this problem is related to memory as memory consumption has been quite moderate. Right now I would assume that eventually most time is lost in the OS handing filesystem operations. I remember some of my bigger projects maven builds taking significantly longer on Windows (dual boot config) than on Linux for example and the huge majority of time was wasted in the OS handling File-System operations. During the debug compilation a lot of little files are read and a lot of little files are written to the filesystem, so I would assume this could be a reason for your problems.

Chris


Am 31.01.17, 12:36 schrieb "yishayw" <yi...@hotmail.com>:

    anyone


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Hi All,

I'm revisiting this. Given that compilation is relatively slow I'd like to
try and optimize what I can.

I tried increasing the java heap size [1] and excluding the output folder on
my windows defender but there hasn't been a noticeable difference. 

I'm running windows 10 with an i5 dual core, and SSD. The performance
monitor shows CPU spikes on the java process but IO and memory look ok.

Does anyone have thoughts on this? Thanks.

[1] http://www.wikihow.com/Increase-Java-Memory-in-Windows-7



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p58842.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Alex Harui <ah...@adobe.com>.

On 1/5/17, 10:03 AM, "yishayw" <yi...@hotmail.com> wrote:

>Hi Chris,
>
>I think the interesting statistic is that on the same machine the flash
>build takes 6 seconds and the Js build takes 40.
>
>This is probably a problem with the compiler, not the build script.
>

Yishay, can you explain this further?  The SWF build can certainly be much
faster, especially if you are not building a release version of the JS.

What is the test you are running to get your timing?  Is it running Ant
for just the JS compile on some code and comparing to Maven and comparing
to launching from a FB run configuration?  Or something else?  Also, are
you using your application or one of our examples?

Thanks,
-Alex


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Hi Chris,

I think the interesting statistic is that on the same machine the flash
build takes 6 seconds and the Js build takes 40.

This is probably a problem with the compiler, not the build script.





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57947.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Chris, very useful update, I'm sure I will try it soon

Thanks! :)

2017-01-04 20:29 GMT+01:00 Christofer Dutz <ch...@c-ware.de>:

> Hi all,
>
> I just pushed some updates to the “flexjs-simple-application-archetype”.
> I noticed that the example didn’t correctly package the output of the JS
> build as a war file to the maven build, but that’s fixed now.
> Also I added two new archetypes: “flexjs-simple-application-pure-js-archetype”
> and “flexjs-simple-application-pure-swf-archetype”, which build pure js
> and swf applications in debug-mode. If you want a release build, all you
> have to do is use the “release” profile by adding “-P release” to the
> command line.
>
> Chris
>
> Am 04.01.17, 17:50 schrieb "Christofer Dutz" <ch...@c-ware.de>:
>
>     Hi Yishay,
>
>     I’ll try and add a new archetype for your usecase this evening.
>
>     Chris
>
>     Am 04.01.17, 15:41 schrieb "yishayw" <yi...@hotmail.com>:
>
>         I tried that, but I'm getting:
>
>         [ERROR] Failed to execute goal
>         org.apache.maven.plugins:maven-install-plugin:2.5
>         .2:install (default-install) on project printui: The packaging for
> this
>         project
>         did not assign a file to the build artifact -> [Help 1]
>
>         Here's [1] my up2date pom.
>
>         [1] https://paste.apache.org/TFlX
>
>
>
>
>
>         --
>         View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
> Flash-Builder-tp57612p57902.html
>         Sent from the Apache Flex Development mailing list archive at
> Nabble.com.
>
>
>
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Glad it works now … but the build times are strange. I just ran the build on my machine and I get something like this:

[INFO] Total time: 3.859s

But eventually this depends on your OS and the type of harddrive you have. I know Windows filesystems handle operations on loads of files a lot slower than Mac or Linux do and if you are stuck to spinning disks instead of SSDs you will encounter quite a decrease of performance. So eventually my MacBook Pro with SSD is just a lot faster. But ten times as fast is still strange.

Chris

Am 05.01.17, 09:38 schrieb "Yishay Weiss" <yi...@hotmail.com>:

    I just tried flexjs-simple-application-pure-js-archetype and it works.
    
    
    
    Performance is still not good compared to flash. It takes me 6 seconds to build the flash version of our application in Flash Builder, and 40 seconds to build the JS version in the command line.
    
    
    
    Thanks for making this work.
    
    
    
    From: Christofer Dutz<ma...@c-ware.de>
    Sent: Wednesday, January 4, 2017 9:30 PM
    To: dev@flex.apache.org<ma...@flex.apache.org>
    Subject: Re: [FlexJS] Using Maven with Flash Builder
    
    
    
    Hi all,
    
    I just pushed some updates to the “flexjs-simple-application-archetype”. I noticed that the example didn’t correctly package the output of the JS build as a war file to the maven build, but that’s fixed now.
    Also I added two new archetypes: “flexjs-simple-application-pure-js-archetype” and “flexjs-simple-application-pure-swf-archetype”, which build pure js and swf applications in debug-mode. If you want a release build, all you have to do is use the “release” profile by adding “-P release” to the command line.
    
    Chris
    
    Am 04.01.17, 17:50 schrieb "Christofer Dutz" <ch...@c-ware.de>:
    
        Hi Yishay,
    
        I’ll try and add a new archetype for your usecase this evening.
    
        Chris
    
        Am 04.01.17, 15:41 schrieb "yishayw" <yi...@hotmail.com>:
    
            I tried that, but I'm getting:
    
            [ERROR] Failed to execute goal
            org.apache.maven.plugins:maven-install-plugin:2.5
            .2:install (default-install) on project printui: The packaging for this
            project
            did not assign a file to the build artifact -> [Help 1]
    
            Here's [1] my up2date pom.
    
            [1] https://paste.apache.org/TFlX
    
    
    
    
    
            --
            View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57902.html
            Sent from the Apache Flex Development mailing list archive at Nabble.com.
    
    
    
    
    


RE: [FlexJS] Using Maven with Flash Builder

Posted by Yishay Weiss <yi...@hotmail.com>.
I just tried flexjs-simple-application-pure-js-archetype and it works.



Performance is still not good compared to flash. It takes me 6 seconds to build the flash version of our application in Flash Builder, and 40 seconds to build the JS version in the command line.



Thanks for making this work.



From: Christofer Dutz<ma...@c-ware.de>
Sent: Wednesday, January 4, 2017 9:30 PM
To: dev@flex.apache.org<ma...@flex.apache.org>
Subject: Re: [FlexJS] Using Maven with Flash Builder



Hi all,

I just pushed some updates to the “flexjs-simple-application-archetype”. I noticed that the example didn’t correctly package the output of the JS build as a war file to the maven build, but that’s fixed now.
Also I added two new archetypes: “flexjs-simple-application-pure-js-archetype” and “flexjs-simple-application-pure-swf-archetype”, which build pure js and swf applications in debug-mode. If you want a release build, all you have to do is use the “release” profile by adding “-P release” to the command line.

Chris

Am 04.01.17, 17:50 schrieb "Christofer Dutz" <ch...@c-ware.de>:

    Hi Yishay,

    I’ll try and add a new archetype for your usecase this evening.

    Chris

    Am 04.01.17, 15:41 schrieb "yishayw" <yi...@hotmail.com>:

        I tried that, but I'm getting:

        [ERROR] Failed to execute goal
        org.apache.maven.plugins:maven-install-plugin:2.5
        .2:install (default-install) on project printui: The packaging for this
        project
        did not assign a file to the build artifact -> [Help 1]

        Here's [1] my up2date pom.

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





        --
        View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57902.html
        Sent from the Apache Flex Development mailing list archive at Nabble.com.





Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,

I just pushed some updates to the “flexjs-simple-application-archetype”. I noticed that the example didn’t correctly package the output of the JS build as a war file to the maven build, but that’s fixed now.
Also I added two new archetypes: “flexjs-simple-application-pure-js-archetype” and “flexjs-simple-application-pure-swf-archetype”, which build pure js and swf applications in debug-mode. If you want a release build, all you have to do is use the “release” profile by adding “-P release” to the command line.

Chris

Am 04.01.17, 17:50 schrieb "Christofer Dutz" <ch...@c-ware.de>:

    Hi Yishay,
    
    I’ll try and add a new archetype for your usecase this evening.
    
    Chris
    
    Am 04.01.17, 15:41 schrieb "yishayw" <yi...@hotmail.com>:
    
        I tried that, but I'm getting:
        
        [ERROR] Failed to execute goal
        org.apache.maven.plugins:maven-install-plugin:2.5
        .2:install (default-install) on project printui: The packaging for this
        project
        did not assign a file to the build artifact -> [Help 1]
        
        Here's [1] my up2date pom.
        
        [1] https://paste.apache.org/TFlX
        
        
        
        
        
        --
        View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57902.html
        Sent from the Apache Flex Development mailing list archive at Nabble.com.
        
    
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Yishay,

I’ll try and add a new archetype for your usecase this evening.

Chris

Am 04.01.17, 15:41 schrieb "yishayw" <yi...@hotmail.com>:

    I tried that, but I'm getting:
    
    [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-install-plugin:2.5
    .2:install (default-install) on project printui: The packaging for this
    project
    did not assign a file to the build artifact -> [Help 1]
    
    Here's [1] my up2date pom.
    
    [1] https://paste.apache.org/TFlX
    
    
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57902.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
I tried that, but I'm getting:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.5
.2:install (default-install) on project printui: The packaging for this
project
did not assign a file to the build artifact -> [Help 1]

Here's [1] my up2date pom.

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





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57902.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
In your case, just omit the entire executions block and add the “configuration” element to the direct plugin configuration … so just delete:

<executions>
              
              <execution>
                <id>compile-javascript</id>
                <phase>compile</phase>
                <goals>
                  <goal>compile-app</goal>
                </goals>

and 
 
              </execution>
            </executions>
    
That should do the trick

Chris

Am 04.01.17, 15:14 schrieb "yishayw" <yi...@hotmail.com>:

    Christofer Dutz wrote
    > Ok … then just add a configuration option:
    >                 
    > <outputJavaScript>
    > true
    > </outputJavaScript>
    > That should switch from Flash to Javascript
    
    Below is my <executions> node. As you can see, it's got a single execution
    which already has <outputJavaScript>true</outputJavaScript>. The problem is
    default flash execution which I can't seem to configure. Thanks for your
    help.
    
            <executions>
              
              <execution>
                <id>compile-javascript</id>
                <phase>compile</phase>
                <goals>
                  <goal>compile-app</goal>
                </goals>
                <configuration>
                  <outputJavaScript>true</outputJavaScript>
                </configuration>
              </execution>
            </executions>
    
    
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57900.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Christofer Dutz wrote
> Ok … then just add a configuration option:
>                 
> <outputJavaScript>
> true
> </outputJavaScript>
> That should switch from Flash to Javascript

Below is my <executions> node. As you can see, it's got a single execution
which already has <outputJavaScript>true</outputJavaScript>. The problem is
default flash execution which I can't seem to configure. Thanks for your
help.

        <executions>
          
          <execution>
            <id>compile-javascript</id>
            <phase>compile</phase>
            <goals>
              <goal>compile-app</goal>
            </goals>
            <configuration>
              <outputJavaScript>true</outputJavaScript>
            </configuration>
          </execution>
        </executions>





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57900.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Ok … then just add a configuration option:
                <outputJavaScript>true</outputJavaScript>
That should switch from Flash to Javascript

Chris

Am 04.01.17, 13:00 schrieb "yishayw" <yi...@hotmail.com>:

    Christofer Dutz wrote
    > Right now the only way I see is to not set the parent to the examples
    > parent and to configure all the manual way.
    > om the Apache Flex Development mailing list archive at Nabble.com.
    
    As far as I know, I'm not setting the parent to the examples parent. I'm
    using the pom generated by flexjs-simple-application-archetype.
    
    This [1] is what it looks like
    
    [1] https://paste.apache.org/DkeG
    
    
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57898.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Christofer Dutz wrote
> Right now the only way I see is to not set the parent to the examples
> parent and to configure all the manual way.
> om the Apache Flex Development mailing list archive at Nabble.com.

As far as I know, I'm not setting the parent to the examples parent. I'm
using the pom generated by flexjs-simple-application-archetype.

This [1] is what it looks like

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





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57898.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi,

Well I think I should eventually rework the example configuration a little and eventually introduce a “skip” option, which I thought was in there to disable things.
Right now the only way I see is to not set the parent to the examples parent and to configure all the manual way.

Chris

Am 04.01.17, 12:21 schrieb "yishayw" <yi...@hotmail.com>:

    Christofer Dutz wrote
    > When using a packaging of type swf (as is with all examples) the
    > flexjs-maven-plugin automatically defines a default execution. The default
    > for this is building an SWF (I am considering on changing the default to
    > building the JS version per default). If you go up two poms from each
    > example, you will see the flexjs-framework/examples/pom.xml. This is where
    > the second execution is defined
    
    So I can not add the second execution, but can I change the first execution?
    I don't need swf in the cmd line build. I use FB for that.
    
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57896.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Christofer Dutz wrote
> When using a packaging of type swf (as is with all examples) the
> flexjs-maven-plugin automatically defines a default execution. The default
> for this is building an SWF (I am considering on changing the default to
> building the JS version per default). If you go up two poms from each
> example, you will see the flexjs-framework/examples/pom.xml. This is where
> the second execution is defined

So I can not add the second execution, but can I change the first execution?
I don't need swf in the cmd line build. I use FB for that.




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57896.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi,

1) Well 40 Seconds still sounds quite long … wonder why.

2) I currently setup the examples to always build the swf and the js version. This is done by running the compiler twice. In Maven a plugins execution is called an “execution”. When using a packaging of type swf (as is with all examples) the flexjs-maven-plugin automatically defines a default execution. The default for this is building an SWF (I am considering on changing the default to building the JS version per default). If you go up two poms from each example, you will see the flexjs-framework/examples/pom.xml. This is where the second execution is defined. It adds a second run of the compiler to the build. You can see this in the output of the build: 

[INFO] --- flexjs-maven-plugin:0.8.0-SNAPSHOT:compile-app (default-compile-app) @ TreeExample ---

…

[INFO] --- flexjs-maven-plugin:0.8.0-SNAPSHOT:compile-app (compile-javascript) @ TreeExample ---

Hope this brings some light to your questions.

Chris


Am 04.01.17, 08:07 schrieb "yishayw" <yi...@hotmail.com>:

    1) <debug>tue</debug> worked and got it down to 40 seconds.
    2) Tried mvn package, but didn't notice a significant difference in build
    time.
    3) You're right, the swcs are copied, not compiled.
    
    I still don't see how to compile js without flash? I looked in Carlos' MDL
    example, but I couldn't figure it out from there. Any clues?
    
    Also, it seems all files are now being compiled, whether they're accessed
    from the main app or not. If I'm correct, is there a way to tell the
    compiler to ignore the files not being used?
    
    Thanks.
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57883.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
1) <debug>tue</debug> worked and got it down to 40 seconds.
2) Tried mvn package, but didn't notice a significant difference in build
time.
3) You're right, the swcs are copied, not compiled.

I still don't see how to compile js without flash? I looked in Carlos' MDL
example, but I couldn't figure it out from there. Any clues?

Also, it seems all files are now being compiled, whether they're accessed
from the main app or not. If I'm correct, is there a way to tell the
compiler to ignore the files not being used?

Thanks.



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57883.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi,

1) If you add “<debug>true</debug>” to the configuration of the flexjs-maven-plugin it will not do the release compilation.
2) Haven’t experimented too much with that, but a “mvn package” should do something like that
3) You shouldn’t need to compile the framework in order to build an application. Maven doesn’t reference the other projects sources, but their artifacts. So whenever an artifact is built with “mvn install” the swc is copied to the maven local repo (which is usually in “~/.m2/repository”) So you should be able to just build the application and it should pull in the latest version of the framework. You shouldn’t even be required to have the Framework at all. Maven should pull the latest version from the Apache Maven repo.
4) In general, it is even an anti-pattern to use “mvn clean install”, but I like to use it in projects with a lot of generated code as this makes sure you have all code clean and fresh. I will have to check if running just “mvn package” (which should be enough) will work as we do some other stuff in FlexJS compared to a plain Java compilation. In a Java project a “mvn package” would be an incremental build.

Chris

Am 03.01.17, 09:46 schrieb "yishayw" <yi...@hotmail.com>:

    Using the correct artifactId the stub was created. I changed
    <sourceDirectory>, and <mainClass>, added some framework dependencies, and I
    now have our app compiling in maven.
    
    The build is still to slow to my liking (1 minute on my machine). So I have
    some questions:
    
    1) Can I compile to JS debug only (no release, no flash)?
    2) Can I do an incremental build?
    3) Most of the time I'm not changing framework code, I'd like to compile the
    app code and keep the framework products as they were. Is that possible?
    4) Possibly related to (2) or (3): is the clean argument necessary or can I
    just do mvn install?
    
    Thanks. 
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57797.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Using the correct artifactId the stub was created. I changed
<sourceDirectory>, and <mainClass>, added some framework dependencies, and I
now have our app compiling in maven.

The build is still to slow to my liking (1 minute on my machine). So I have
some questions:

1) Can I compile to JS debug only (no release, no flash)?
2) Can I do an incremental build?
3) Most of the time I'm not changing framework code, I'd like to compile the
app code and keep the framework products as they were. Is that possible?
4) Possibly related to (2) or (3): is the clean argument necessary or can I
just do mvn install?

Thanks. 



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57797.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Christofer Dutz <ch...@c-ware.de>.
The name of the artifactId is flexjs-simple-application-archetype (notice the additional “-simple” in there?)
Hope I didn’t change the name after publishing anything on it.

Chris

Am 02.01.17, 11:12 schrieb "yishayw" <yi...@hotmail.com>:

    Ok, I don't mind using the command line to build. How do I create a minimal
    FlexJS project? What is the minimal pom.xml? 
    
    Reading a thread you and Chris has on the subject, I tried doing this:
    
    C:\dev\printui\project>mvn -s
    C:\dev\mvn_flexjs\flex-asjs\settings-template.xml archetype:generate
    -DarchetypeGroupId=org.apache.flex.flexjs.framework
    -DarchetypeArtifactId=flexjs-application-archetype
    -DarchetypeVersion=0.8.0-SNAPSHOT
    
    The result was:
    
    [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-archetype-plugin:2
    .4:generate (default-cli) on project standalone-pom: The desired archetype
    does
    not exist
    (org.apache.flex.flexjs.framework:flexjs-application-archetype:0.8.0-S
    NAPSHOT) -> [Help 1]
    
    
    
    
    
    --
    View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57745.html
    Sent from the Apache Flex Development mailing list archive at Nabble.com.
    


Re: [FlexJS] Using Maven with Flash Builder

Posted by yishayw <yi...@hotmail.com>.
Ok, I don't mind using the command line to build. How do I create a minimal
FlexJS project? What is the minimal pom.xml? 

Reading a thread you and Chris has on the subject, I tried doing this:

C:\dev\printui\project>mvn -s
C:\dev\mvn_flexjs\flex-asjs\settings-template.xml archetype:generate
-DarchetypeGroupId=org.apache.flex.flexjs.framework
-DarchetypeArtifactId=flexjs-application-archetype
-DarchetypeVersion=0.8.0-SNAPSHOT

The result was:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2
.4:generate (default-cli) on project standalone-pom: The desired archetype
does
not exist
(org.apache.flex.flexjs.framework:flexjs-application-archetype:0.8.0-S
NAPSHOT) -> [Help 1]





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-Flash-Builder-tp57612p57745.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Alex,

FWIK, Maven support for eclipse was never working for Flex, that was the
main reason at Codeoscopic we changed from FB to IntelliJ IDEA that had
full maven support. I suppose that due to the deprecated state of FB since
6-7 years from now, the situation right now must be critical for that IDE.

IMHO, the way to go is the Josh vision about an Open Source IDE that goes
along Apache Flex efforts, since it's new technology growing aside the
compilers, languages and frameworks we are doing here.

Even although IntelliJ is far superior to FB and VSCode (now), I think
stick with VSCode should be our way of thinking.

Just my 2ctns





2016-12-28 17:53 GMT+01:00 Alex Harui <ah...@adobe.com>:

> Like Carlos, when I'm doing Maven builds I only use my IDE (Flash Builder)
> as a code editor and build from the command line.
>
> If you are interested in exploring Maven and Flash Builder further, feel
> free to do so.  Flash Builder is based on Eclipse and I believe the
> version of Eclipse bundled with FB has Maven Project Builder support.  The
> plugin for that might be missing in FB or disabled, not sure.  But it
> would be interesting for a volunteer to look into that.  If it turned out
> the compiler output errors in a format that the Maven Project Builder
> didn't like, I'd be open to changing the output format.
>
> There's probably also a hack where you use the Ant Builder to launch Maven.
>
> -Alex
>
> On 12/28/16, 7:58 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com>
> wrote:
>
> >Hi Yishaw,
> >
> >great you upload to the maven train ;)
> >
> >
> >
> >> 1) Build a Flash Builder (e.g. DataBindingExample) project with maven,
> >>JS
> >> version.
> >>
> >
> >I can't help you here since I'm not using FB for several years now since
> >it's a deprecated IDE no longer maintained for Adobe.
> >I recommend you to go with VSCode + NextGenAS extension or IntelliJ.
> >All IDEs has a problem with Maven, they does not recognize maven sdk
> >artifacts so this makes you must rely in flexjs sdk downloaded (nightly)
> >until we get maven sdk distribution working or find the way IDEs recognize
> >maven sdk...
> >
> >
> >> 2) Ditto with the flash version.
> >>
> >
> >I didn't use flash version yet, but you can check example poms since
> >there's some with flash output.
> >
> >
> >> 3) Make changes in the framework and build the related package (e.g.
> >> changes
> >> in HTML)
> >>
> >>
> >with all projects you can go to the project home in terminal and instead
> >of
> >use "ant" to build use "mvn clean install". And you are all set.
> >
> >Normaly in MDL I make changes in MaterialDesginLibrary and in MDLExample,
> >so I go to the first and execute "mvn clean install" and the go to the
> >second folder and exectute the same line again and I'm ready to test in a
> >browser.
> >
> >Opcional, if you 're on VSCode+NextGenAS, I setup to build with CTRL+CMD+B
> >on both projects, so I don't need to go to terminal making this extremely
> >fast and easy.
> >
> >Hope you get up speed quickly with this suggestions :)
> >
> >Carlos
> >
> >
> >
> >> Can anyone point me in the right direction? Thanks.
> >>
> >> [1]
> >> https://cwiki.apache.org/confluence/display/FLEX/
> >> Building+FlexJS+with+Maven
> >>
> >>
> >>
> >> --
> >> View this message in context: http://apache-flex-
> >> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
> >> Flash-Builder-tp57612.html
> >> Sent from the Apache Flex Development mailing list archive at
> >>Nabble.com.
> >>
> >
> >
> >
> >--
> >
> >Carlos Rovira
> >Director General
> >M: +34 607 22 60 05
> >http://www.codeoscopic.com
> >http://www.avant2.es
> >
> >Este mensaje se dirige exclusivamente a su destinatario y puede contener
> >información privilegiada o confidencial. Si ha recibido este mensaje por
> >error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> >proceda a su destrucción.
> >
> >De la vigente Ley Orgánica de Protección de Datos (15/1999), le
> >comunicamos
> >que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> >S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> >servicio o información solicitados, teniendo usted derecho de acceso,
> >rectificación, cancelación y oposición de sus datos dirigiéndose a
> >nuestras
> >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> >necesaria.
>
>


-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [FlexJS] Using Maven with Flash Builder

Posted by Alex Harui <ah...@adobe.com>.
Like Carlos, when I'm doing Maven builds I only use my IDE (Flash Builder)
as a code editor and build from the command line.

If you are interested in exploring Maven and Flash Builder further, feel
free to do so.  Flash Builder is based on Eclipse and I believe the
version of Eclipse bundled with FB has Maven Project Builder support.  The
plugin for that might be missing in FB or disabled, not sure.  But it
would be interesting for a volunteer to look into that.  If it turned out
the compiler output errors in a format that the Maven Project Builder
didn't like, I'd be open to changing the output format.

There's probably also a hack where you use the Ant Builder to launch Maven.

-Alex

On 12/28/16, 7:58 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com> wrote:

>Hi Yishaw,
>
>great you upload to the maven train ;)
>
>
>
>> 1) Build a Flash Builder (e.g. DataBindingExample) project with maven,
>>JS
>> version.
>>
>
>I can't help you here since I'm not using FB for several years now since
>it's a deprecated IDE no longer maintained for Adobe.
>I recommend you to go with VSCode + NextGenAS extension or IntelliJ.
>All IDEs has a problem with Maven, they does not recognize maven sdk
>artifacts so this makes you must rely in flexjs sdk downloaded (nightly)
>until we get maven sdk distribution working or find the way IDEs recognize
>maven sdk...
>
>
>> 2) Ditto with the flash version.
>>
>
>I didn't use flash version yet, but you can check example poms since
>there's some with flash output.
>
>
>> 3) Make changes in the framework and build the related package (e.g.
>> changes
>> in HTML)
>>
>>
>with all projects you can go to the project home in terminal and instead
>of
>use "ant" to build use "mvn clean install". And you are all set.
>
>Normaly in MDL I make changes in MaterialDesginLibrary and in MDLExample,
>so I go to the first and execute "mvn clean install" and the go to the
>second folder and exectute the same line again and I'm ready to test in a
>browser.
>
>Opcional, if you 're on VSCode+NextGenAS, I setup to build with CTRL+CMD+B
>on both projects, so I don't need to go to terminal making this extremely
>fast and easy.
>
>Hope you get up speed quickly with this suggestions :)
>
>Carlos
>
>
>
>> Can anyone point me in the right direction? Thanks.
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/FLEX/
>> Building+FlexJS+with+Maven
>>
>>
>>
>> --
>> View this message in context: http://apache-flex-
>> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
>> Flash-Builder-tp57612.html
>> Sent from the Apache Flex Development mailing list archive at
>>Nabble.com.
>>
>
>
>
>-- 
>
>Carlos Rovira
>Director General
>M: +34 607 22 60 05
>http://www.codeoscopic.com
>http://www.avant2.es
>
>Este mensaje se dirige exclusivamente a su destinatario y puede contener
>información privilegiada o confidencial. Si ha recibido este mensaje por
>error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
>proceda a su destrucción.
>
>De la vigente Ley Orgánica de Protección de Datos (15/1999), le
>comunicamos
>que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
>S.A. La finalidad de dicho tratamiento es facilitar la prestación del
>servicio o información solicitados, teniendo usted derecho de acceso,
>rectificación, cancelación y oposición de sus datos dirigiéndose a
>nuestras
>oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
>necesaria.


Re: [FlexJS] Using Maven with Flash Builder

Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Yishaw,

great you upload to the maven train ;)



> 1) Build a Flash Builder (e.g. DataBindingExample) project with maven, JS
> version.
>

I can't help you here since I'm not using FB for several years now since
it's a deprecated IDE no longer maintained for Adobe.
I recommend you to go with VSCode + NextGenAS extension or IntelliJ.
All IDEs has a problem with Maven, they does not recognize maven sdk
artifacts so this makes you must rely in flexjs sdk downloaded (nightly)
until we get maven sdk distribution working or find the way IDEs recognize
maven sdk...


> 2) Ditto with the flash version.
>

I didn't use flash version yet, but you can check example poms since
there's some with flash output.


> 3) Make changes in the framework and build the related package (e.g.
> changes
> in HTML)
>
>
with all projects you can go to the project home in terminal and instead of
use "ant" to build use "mvn clean install". And you are all set.

Normaly in MDL I make changes in MaterialDesginLibrary and in MDLExample,
so I go to the first and execute "mvn clean install" and the go to the
second folder and exectute the same line again and I'm ready to test in a
browser.

Opcional, if you 're on VSCode+NextGenAS, I setup to build with CTRL+CMD+B
on both projects, so I don't need to go to terminal making this extremely
fast and easy.

Hope you get up speed quickly with this suggestions :)

Carlos



> Can anyone point me in the right direction? Thanks.
>
> [1]
> https://cwiki.apache.org/confluence/display/FLEX/
> Building+FlexJS+with+Maven
>
>
>
> --
> View this message in context: http://apache-flex-
> development.2333347.n4.nabble.com/FlexJS-Using-Maven-with-
> Flash-Builder-tp57612.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.