You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2020/10/21 08:09:06 UTC

ANT vs Maven

Hi,

For test fix and possibility new features, I apply the code in Royale
source code and build with ANT but Royale also support build with Maven.
I never use Maven before, so, what is the advantage in Royale to build with
ANT or Maven.
I searched a lot and seems to be only a metter of personal preference.

Re: ANT vs Maven

Posted by Carlos Rovira <ca...@apache.org>.
Yeah, I think SVN vs Git although different systems and purposes captures
the essence.
In SVN you can do the same as in GIT, but GIT gives you much more and you
really can work on branches which is very very difficult in SVN and for
that reason all the industry is working with GIT these days.

El mié., 21 oct. 2020 a las 11:31, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Thank you all.
>
> I have known ANT for years but never used Maven before, just know that it's
> a build tool to do a similar job as ANT.
> It worked well the first time on my machine because as you said, I have
> everything in its place but for a server build or a new machine or just
> something that would change, will break ANT immediately.
> For your explanation, it seems to me that compared ANT with Maven it's more
> or less comparing SVN to Git. Both do the job well but have different pros
> and cons.
> ANT it's easier for me because I already know a little about it, however, I
> will switch to Maven.
> I like a lot of what I readed and seems very good and yes, ANT seems more
> difficult to maintain.
>
> Carlos Rovira <ca...@apache.org> escreveu no dia quarta, 21/10/2020
> à(s) 09:43:
>
> > In an example I think it can be better to understand. If you go to this
> > project I did some weeks ago:
> >
> > https://github.com/codeoscopic/avant2-website
> >
> > You should be able to do "mvn install" in the library and then in the
> > project without anything more in your machine.
> > Since Maven will download dependencies for you. If I release the library
> > and be in some maven repository out there, you can just build the main
> > project and the library will come from out there.
> >
> > Using ANT will require that you set up manually all things in your
> machine
> > and that could be a problem. Why if you change your machine?....probably
> > you must do all that again.
> >
> > Then if you must to put your project on a server for a team....here the
> > trouble could be epic. So ANT could be ok if you're working alone, but in
> > teams Maven excels clearly, so I prefer to standardize my way of
> "produce"
> > by always using Maven as a build tool.
> >
> > HTH
> >
> >
> > El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
> > piotrzarzycki21@gmail.com>) escribió:
> >
> > > My personal feelings of course. :) Ant is also good, but it all depends
> > how
> > > scripts are written, I know that I have no idea what is inside scripts
> > > after a week, with Maven when I get back to scripts after months I know
> > > what is happening - this is the advantage of having some specific
> > > structure.
> > >
> > > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <pi...@gmail.com>
> > > napisał(a):
> > >
> > > > Hi Hugo,
> > > >
> > > > Usually it is, but I have found Maven less problematic over the years
> > and
> > > > with new project much more easy to setup. If someone checkout your
> > > project
> > > > with Maven pom file - he doesn't need Royale SDK at all, cause
> > everything
> > > > will be downloaded on the first build.
> > > >
> > > > Plus Maven scripts are much more cleaner than ant - In ant you can do
> > > > whatever you want, in Maven you have some specific structure which
> you
> > > > follow.
> > > >
> > > > Just to mention - I haven't changed my Maven build for Royale in the
> > last
> > > > 3 years - maybe command has changed over that time, but not so much.
> > With
> > > >
> > > > When you push something without building SDK by Maven check here if
> > it's
> > > > not failing [1].
> > > >
> > > > [1] https://ci-builds.apache.org/job/Royale/
> > > >
> > > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
> > > > napisał(a):
> > > >
> > > >> Hi,
> > > >>
> > > >> For test fix and possibility new features, I apply the code in
> Royale
> > > >> source code and build with ANT but Royale also support build with
> > Maven.
> > > >> I never use Maven before, so, what is the advantage in Royale to
> build
> > > >> with
> > > >> ANT or Maven.
> > > >> I searched a lot and seems to be only a metter of personal
> preference.
> > > >>
> > > >
> > > >
> > > > --
> > > >
> > > > Piotr Zarzycki
> > > >
> > >
> > >
> > > --
> > >
> > > Piotr Zarzycki
> > >
> >
> >
> > --
> > Carlos Rovira
> > Apache Member & Apache Royale PMC
> > *Apache Software Foundation*
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: ANT vs Maven

Posted by Hugo Ferreira <hf...@gmail.com>.
Nice.
It's one place with many presentations for newcomers.

Carlos Rovira <ca...@apache.org> escreveu no dia quarta, 21/10/2020
à(s) 16:33:

> Hi,
>
> I added to presentations here:
> https://apache.github.io/royale-docs/presentations/presentations.html
> There's also another one from Chris for the ApacheCon 2017 in that page ;)
>
>
>    - Building FlexJS applications with Maven <https://youtu.be/Fcq38JDTtNs>
> -
>    Christofer Dutz, codecentric AG
>
>
>
> El mié., 21 oct. 2020 a las 12:20, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > Hi Christofer,
> >
> > This is very helpful.
> > Thank you very much.
> >
> >
> > Christofer Dutz <ch...@c-ware.de> escreveu no dia quarta,
> > 21/10/2020 à(s) 11:09:
> >
> > > Hi Hugo,
> > >
> > > if you are interested in learning:
> > > https://vimeo.com/167857327
> > >
> > > I did a recording of one of my Maven Trainings which was adjusted
> > > explicitly for the Flex project (There was no Royale project then) ;-)
> > >
> > > Chris
> > >
> > >
> > >
> > > Am 21.10.20, 11:31 schrieb "Hugo Ferreira" <hf...@gmail.com>:
> > >
> > >     Thank you all.
> > >
> > >     I have known ANT for years but never used Maven before, just know
> > that
> > > it's
> > >     a build tool to do a similar job as ANT.
> > >     It worked well the first time on my machine because as you said, I
> > have
> > >     everything in its place but for a server build or a new machine or
> > just
> > >     something that would change, will break ANT immediately.
> > >     For your explanation, it seems to me that compared ANT with Maven
> > it's
> > > more
> > >     or less comparing SVN to Git. Both do the job well but have
> different
> > > pros
> > >     and cons.
> > >     ANT it's easier for me because I already know a little about it,
> > > however, I
> > >     will switch to Maven.
> > >     I like a lot of what I readed and seems very good and yes, ANT
> seems
> > > more
> > >     difficult to maintain.
> > >
> > >     Carlos Rovira <ca...@apache.org> escreveu no dia quarta,
> > > 21/10/2020
> > >     à(s) 09:43:
> > >
> > >     > In an example I think it can be better to understand. If you go
> to
> > > this
> > >     > project I did some weeks ago:
> > >     >
> > >     > https://github.com/codeoscopic/avant2-website
> > >     >
> > >     > You should be able to do "mvn install" in the library and then in
> > the
> > >     > project without anything more in your machine.
> > >     > Since Maven will download dependencies for you. If I release the
> > > library
> > >     > and be in some maven repository out there, you can just build the
> > > main
> > >     > project and the library will come from out there.
> > >     >
> > >     > Using ANT will require that you set up manually all things in
> your
> > > machine
> > >     > and that could be a problem. Why if you change your
> > > machine?....probably
> > >     > you must do all that again.
> > >     >
> > >     > Then if you must to put your project on a server for a
> team....here
> > > the
> > >     > trouble could be epic. So ANT could be ok if you're working
> alone,
> > > but in
> > >     > teams Maven excels clearly, so I prefer to standardize my way of
> > > "produce"
> > >     > by always using Maven as a build tool.
> > >     >
> > >     > HTH
> > >     >
> > >     >
> > >     > El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
> > >     > piotrzarzycki21@gmail.com>) escribió:
> > >     >
> > >     > > My personal feelings of course. :) Ant is also good, but it all
> > > depends
> > >     > how
> > >     > > scripts are written, I know that I have no idea what is inside
> > > scripts
> > >     > > after a week, with Maven when I get back to scripts after
> months
> > I
> > > know
> > >     > > what is happening - this is the advantage of having some
> specific
> > >     > > structure.
> > >     > >
> > >     > > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <
> > piotrzarzycki21@gmail.com
> > > >
> > >     > > napisał(a):
> > >     > >
> > >     > > > Hi Hugo,
> > >     > > >
> > >     > > > Usually it is, but I have found Maven less problematic over
> the
> > > years
> > >     > and
> > >     > > > with new project much more easy to setup. If someone checkout
> > > your
> > >     > > project
> > >     > > > with Maven pom file - he doesn't need Royale SDK at all,
> cause
> > >     > everything
> > >     > > > will be downloaded on the first build.
> > >     > > >
> > >     > > > Plus Maven scripts are much more cleaner than ant - In ant
> you
> > > can do
> > >     > > > whatever you want, in Maven you have some specific structure
> > > which you
> > >     > > > follow.
> > >     > > >
> > >     > > > Just to mention - I haven't changed my Maven build for Royale
> > in
> > > the
> > >     > last
> > >     > > > 3 years - maybe command has changed over that time, but not
> so
> > > much.
> > >     > With
> > >     > > >
> > >     > > > When you push something without building SDK by Maven check
> > here
> > > if
> > >     > it's
> > >     > > > not failing [1].
> > >     > > >
> > >     > > > [1] https://ci-builds.apache.org/job/Royale/
> > >     > > >
> > >     > > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <
> hferreira.80@gmail.com
> > >
> > >     > > > napisał(a):
> > >     > > >
> > >     > > >> Hi,
> > >     > > >>
> > >     > > >> For test fix and possibility new features, I apply the code
> in
> > > Royale
> > >     > > >> source code and build with ANT but Royale also support build
> > > with
> > >     > Maven.
> > >     > > >> I never use Maven before, so, what is the advantage in
> Royale
> > > to build
> > >     > > >> with
> > >     > > >> ANT or Maven.
> > >     > > >> I searched a lot and seems to be only a metter of personal
> > > preference.
> > >     > > >>
> > >     > > >
> > >     > > >
> > >     > > > --
> > >     > > >
> > >     > > > Piotr Zarzycki
> > >     > > >
> > >     > >
> > >     > >
> > >     > > --
> > >     > >
> > >     > > Piotr Zarzycki
> > >     > >
> > >     >
> > >     >
> > >     > --
> > >     > Carlos Rovira
> > >     > Apache Member & Apache Royale PMC
> > >     > *Apache Software Foundation*
> > >     > http://about.me/carlosrovira
> > >     >
> > >
> > >
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>

Re: ANT vs Maven

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

I added to presentations here:
https://apache.github.io/royale-docs/presentations/presentations.html
There's also another one from Chris for the ApacheCon 2017 in that page ;)


   - Building FlexJS applications with Maven <https://youtu.be/Fcq38JDTtNs> -
   Christofer Dutz, codecentric AG



El mié., 21 oct. 2020 a las 12:20, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Hi Christofer,
>
> This is very helpful.
> Thank you very much.
>
>
> Christofer Dutz <ch...@c-ware.de> escreveu no dia quarta,
> 21/10/2020 à(s) 11:09:
>
> > Hi Hugo,
> >
> > if you are interested in learning:
> > https://vimeo.com/167857327
> >
> > I did a recording of one of my Maven Trainings which was adjusted
> > explicitly for the Flex project (There was no Royale project then) ;-)
> >
> > Chris
> >
> >
> >
> > Am 21.10.20, 11:31 schrieb "Hugo Ferreira" <hf...@gmail.com>:
> >
> >     Thank you all.
> >
> >     I have known ANT for years but never used Maven before, just know
> that
> > it's
> >     a build tool to do a similar job as ANT.
> >     It worked well the first time on my machine because as you said, I
> have
> >     everything in its place but for a server build or a new machine or
> just
> >     something that would change, will break ANT immediately.
> >     For your explanation, it seems to me that compared ANT with Maven
> it's
> > more
> >     or less comparing SVN to Git. Both do the job well but have different
> > pros
> >     and cons.
> >     ANT it's easier for me because I already know a little about it,
> > however, I
> >     will switch to Maven.
> >     I like a lot of what I readed and seems very good and yes, ANT seems
> > more
> >     difficult to maintain.
> >
> >     Carlos Rovira <ca...@apache.org> escreveu no dia quarta,
> > 21/10/2020
> >     à(s) 09:43:
> >
> >     > In an example I think it can be better to understand. If you go to
> > this
> >     > project I did some weeks ago:
> >     >
> >     > https://github.com/codeoscopic/avant2-website
> >     >
> >     > You should be able to do "mvn install" in the library and then in
> the
> >     > project without anything more in your machine.
> >     > Since Maven will download dependencies for you. If I release the
> > library
> >     > and be in some maven repository out there, you can just build the
> > main
> >     > project and the library will come from out there.
> >     >
> >     > Using ANT will require that you set up manually all things in your
> > machine
> >     > and that could be a problem. Why if you change your
> > machine?....probably
> >     > you must do all that again.
> >     >
> >     > Then if you must to put your project on a server for a team....here
> > the
> >     > trouble could be epic. So ANT could be ok if you're working alone,
> > but in
> >     > teams Maven excels clearly, so I prefer to standardize my way of
> > "produce"
> >     > by always using Maven as a build tool.
> >     >
> >     > HTH
> >     >
> >     >
> >     > El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
> >     > piotrzarzycki21@gmail.com>) escribió:
> >     >
> >     > > My personal feelings of course. :) Ant is also good, but it all
> > depends
> >     > how
> >     > > scripts are written, I know that I have no idea what is inside
> > scripts
> >     > > after a week, with Maven when I get back to scripts after months
> I
> > know
> >     > > what is happening - this is the advantage of having some specific
> >     > > structure.
> >     > >
> >     > > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <
> piotrzarzycki21@gmail.com
> > >
> >     > > napisał(a):
> >     > >
> >     > > > Hi Hugo,
> >     > > >
> >     > > > Usually it is, but I have found Maven less problematic over the
> > years
> >     > and
> >     > > > with new project much more easy to setup. If someone checkout
> > your
> >     > > project
> >     > > > with Maven pom file - he doesn't need Royale SDK at all, cause
> >     > everything
> >     > > > will be downloaded on the first build.
> >     > > >
> >     > > > Plus Maven scripts are much more cleaner than ant - In ant you
> > can do
> >     > > > whatever you want, in Maven you have some specific structure
> > which you
> >     > > > follow.
> >     > > >
> >     > > > Just to mention - I haven't changed my Maven build for Royale
> in
> > the
> >     > last
> >     > > > 3 years - maybe command has changed over that time, but not so
> > much.
> >     > With
> >     > > >
> >     > > > When you push something without building SDK by Maven check
> here
> > if
> >     > it's
> >     > > > not failing [1].
> >     > > >
> >     > > > [1] https://ci-builds.apache.org/job/Royale/
> >     > > >
> >     > > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hferreira.80@gmail.com
> >
> >     > > > napisał(a):
> >     > > >
> >     > > >> Hi,
> >     > > >>
> >     > > >> For test fix and possibility new features, I apply the code in
> > Royale
> >     > > >> source code and build with ANT but Royale also support build
> > with
> >     > Maven.
> >     > > >> I never use Maven before, so, what is the advantage in Royale
> > to build
> >     > > >> with
> >     > > >> ANT or Maven.
> >     > > >> I searched a lot and seems to be only a metter of personal
> > preference.
> >     > > >>
> >     > > >
> >     > > >
> >     > > > --
> >     > > >
> >     > > > Piotr Zarzycki
> >     > > >
> >     > >
> >     > >
> >     > > --
> >     > >
> >     > > Piotr Zarzycki
> >     > >
> >     >
> >     >
> >     > --
> >     > Carlos Rovira
> >     > Apache Member & Apache Royale PMC
> >     > *Apache Software Foundation*
> >     > http://about.me/carlosrovira
> >     >
> >
> >
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: ANT vs Maven

Posted by Hugo Ferreira <hf...@gmail.com>.
Hi Christofer,

This is very helpful.
Thank you very much.


Christofer Dutz <ch...@c-ware.de> escreveu no dia quarta,
21/10/2020 à(s) 11:09:

> Hi Hugo,
>
> if you are interested in learning:
> https://vimeo.com/167857327
>
> I did a recording of one of my Maven Trainings which was adjusted
> explicitly for the Flex project (There was no Royale project then) ;-)
>
> Chris
>
>
>
> Am 21.10.20, 11:31 schrieb "Hugo Ferreira" <hf...@gmail.com>:
>
>     Thank you all.
>
>     I have known ANT for years but never used Maven before, just know that
> it's
>     a build tool to do a similar job as ANT.
>     It worked well the first time on my machine because as you said, I have
>     everything in its place but for a server build or a new machine or just
>     something that would change, will break ANT immediately.
>     For your explanation, it seems to me that compared ANT with Maven it's
> more
>     or less comparing SVN to Git. Both do the job well but have different
> pros
>     and cons.
>     ANT it's easier for me because I already know a little about it,
> however, I
>     will switch to Maven.
>     I like a lot of what I readed and seems very good and yes, ANT seems
> more
>     difficult to maintain.
>
>     Carlos Rovira <ca...@apache.org> escreveu no dia quarta,
> 21/10/2020
>     à(s) 09:43:
>
>     > In an example I think it can be better to understand. If you go to
> this
>     > project I did some weeks ago:
>     >
>     > https://github.com/codeoscopic/avant2-website
>     >
>     > You should be able to do "mvn install" in the library and then in the
>     > project without anything more in your machine.
>     > Since Maven will download dependencies for you. If I release the
> library
>     > and be in some maven repository out there, you can just build the
> main
>     > project and the library will come from out there.
>     >
>     > Using ANT will require that you set up manually all things in your
> machine
>     > and that could be a problem. Why if you change your
> machine?....probably
>     > you must do all that again.
>     >
>     > Then if you must to put your project on a server for a team....here
> the
>     > trouble could be epic. So ANT could be ok if you're working alone,
> but in
>     > teams Maven excels clearly, so I prefer to standardize my way of
> "produce"
>     > by always using Maven as a build tool.
>     >
>     > HTH
>     >
>     >
>     > El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
>     > piotrzarzycki21@gmail.com>) escribió:
>     >
>     > > My personal feelings of course. :) Ant is also good, but it all
> depends
>     > how
>     > > scripts are written, I know that I have no idea what is inside
> scripts
>     > > after a week, with Maven when I get back to scripts after months I
> know
>     > > what is happening - this is the advantage of having some specific
>     > > structure.
>     > >
>     > > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <piotrzarzycki21@gmail.com
> >
>     > > napisał(a):
>     > >
>     > > > Hi Hugo,
>     > > >
>     > > > Usually it is, but I have found Maven less problematic over the
> years
>     > and
>     > > > with new project much more easy to setup. If someone checkout
> your
>     > > project
>     > > > with Maven pom file - he doesn't need Royale SDK at all, cause
>     > everything
>     > > > will be downloaded on the first build.
>     > > >
>     > > > Plus Maven scripts are much more cleaner than ant - In ant you
> can do
>     > > > whatever you want, in Maven you have some specific structure
> which you
>     > > > follow.
>     > > >
>     > > > Just to mention - I haven't changed my Maven build for Royale in
> the
>     > last
>     > > > 3 years - maybe command has changed over that time, but not so
> much.
>     > With
>     > > >
>     > > > When you push something without building SDK by Maven check here
> if
>     > it's
>     > > > not failing [1].
>     > > >
>     > > > [1] https://ci-builds.apache.org/job/Royale/
>     > > >
>     > > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
>     > > > napisał(a):
>     > > >
>     > > >> Hi,
>     > > >>
>     > > >> For test fix and possibility new features, I apply the code in
> Royale
>     > > >> source code and build with ANT but Royale also support build
> with
>     > Maven.
>     > > >> I never use Maven before, so, what is the advantage in Royale
> to build
>     > > >> with
>     > > >> ANT or Maven.
>     > > >> I searched a lot and seems to be only a metter of personal
> preference.
>     > > >>
>     > > >
>     > > >
>     > > > --
>     > > >
>     > > > Piotr Zarzycki
>     > > >
>     > >
>     > >
>     > > --
>     > >
>     > > Piotr Zarzycki
>     > >
>     >
>     >
>     > --
>     > Carlos Rovira
>     > Apache Member & Apache Royale PMC
>     > *Apache Software Foundation*
>     > http://about.me/carlosrovira
>     >
>
>

Re: ANT vs Maven

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

if you are interested in learning: 
https://vimeo.com/167857327

I did a recording of one of my Maven Trainings which was adjusted explicitly for the Flex project (There was no Royale project then) ;-)

Chris



Am 21.10.20, 11:31 schrieb "Hugo Ferreira" <hf...@gmail.com>:

    Thank you all.

    I have known ANT for years but never used Maven before, just know that it's
    a build tool to do a similar job as ANT.
    It worked well the first time on my machine because as you said, I have
    everything in its place but for a server build or a new machine or just
    something that would change, will break ANT immediately.
    For your explanation, it seems to me that compared ANT with Maven it's more
    or less comparing SVN to Git. Both do the job well but have different pros
    and cons.
    ANT it's easier for me because I already know a little about it, however, I
    will switch to Maven.
    I like a lot of what I readed and seems very good and yes, ANT seems more
    difficult to maintain.

    Carlos Rovira <ca...@apache.org> escreveu no dia quarta, 21/10/2020
    à(s) 09:43:

    > In an example I think it can be better to understand. If you go to this
    > project I did some weeks ago:
    >
    > https://github.com/codeoscopic/avant2-website
    >
    > You should be able to do "mvn install" in the library and then in the
    > project without anything more in your machine.
    > Since Maven will download dependencies for you. If I release the library
    > and be in some maven repository out there, you can just build the main
    > project and the library will come from out there.
    >
    > Using ANT will require that you set up manually all things in your machine
    > and that could be a problem. Why if you change your machine?....probably
    > you must do all that again.
    >
    > Then if you must to put your project on a server for a team....here the
    > trouble could be epic. So ANT could be ok if you're working alone, but in
    > teams Maven excels clearly, so I prefer to standardize my way of "produce"
    > by always using Maven as a build tool.
    >
    > HTH
    >
    >
    > El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
    > piotrzarzycki21@gmail.com>) escribió:
    >
    > > My personal feelings of course. :) Ant is also good, but it all depends
    > how
    > > scripts are written, I know that I have no idea what is inside scripts
    > > after a week, with Maven when I get back to scripts after months I know
    > > what is happening - this is the advantage of having some specific
    > > structure.
    > >
    > > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <pi...@gmail.com>
    > > napisał(a):
    > >
    > > > Hi Hugo,
    > > >
    > > > Usually it is, but I have found Maven less problematic over the years
    > and
    > > > with new project much more easy to setup. If someone checkout your
    > > project
    > > > with Maven pom file - he doesn't need Royale SDK at all, cause
    > everything
    > > > will be downloaded on the first build.
    > > >
    > > > Plus Maven scripts are much more cleaner than ant - In ant you can do
    > > > whatever you want, in Maven you have some specific structure which you
    > > > follow.
    > > >
    > > > Just to mention - I haven't changed my Maven build for Royale in the
    > last
    > > > 3 years - maybe command has changed over that time, but not so much.
    > With
    > > >
    > > > When you push something without building SDK by Maven check here if
    > it's
    > > > not failing [1].
    > > >
    > > > [1] https://ci-builds.apache.org/job/Royale/
    > > >
    > > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
    > > > napisał(a):
    > > >
    > > >> Hi,
    > > >>
    > > >> For test fix and possibility new features, I apply the code in Royale
    > > >> source code and build with ANT but Royale also support build with
    > Maven.
    > > >> I never use Maven before, so, what is the advantage in Royale to build
    > > >> with
    > > >> ANT or Maven.
    > > >> I searched a lot and seems to be only a metter of personal preference.
    > > >>
    > > >
    > > >
    > > > --
    > > >
    > > > Piotr Zarzycki
    > > >
    > >
    > >
    > > --
    > >
    > > Piotr Zarzycki
    > >
    >
    >
    > --
    > Carlos Rovira
    > Apache Member & Apache Royale PMC
    > *Apache Software Foundation*
    > http://about.me/carlosrovira
    >


Re: ANT vs Maven

Posted by Hugo Ferreira <hf...@gmail.com>.
Thank you all.

I have known ANT for years but never used Maven before, just know that it's
a build tool to do a similar job as ANT.
It worked well the first time on my machine because as you said, I have
everything in its place but for a server build or a new machine or just
something that would change, will break ANT immediately.
For your explanation, it seems to me that compared ANT with Maven it's more
or less comparing SVN to Git. Both do the job well but have different pros
and cons.
ANT it's easier for me because I already know a little about it, however, I
will switch to Maven.
I like a lot of what I readed and seems very good and yes, ANT seems more
difficult to maintain.

Carlos Rovira <ca...@apache.org> escreveu no dia quarta, 21/10/2020
à(s) 09:43:

> In an example I think it can be better to understand. If you go to this
> project I did some weeks ago:
>
> https://github.com/codeoscopic/avant2-website
>
> You should be able to do "mvn install" in the library and then in the
> project without anything more in your machine.
> Since Maven will download dependencies for you. If I release the library
> and be in some maven repository out there, you can just build the main
> project and the library will come from out there.
>
> Using ANT will require that you set up manually all things in your machine
> and that could be a problem. Why if you change your machine?....probably
> you must do all that again.
>
> Then if you must to put your project on a server for a team....here the
> trouble could be epic. So ANT could be ok if you're working alone, but in
> teams Maven excels clearly, so I prefer to standardize my way of "produce"
> by always using Maven as a build tool.
>
> HTH
>
>
> El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
> piotrzarzycki21@gmail.com>) escribió:
>
> > My personal feelings of course. :) Ant is also good, but it all depends
> how
> > scripts are written, I know that I have no idea what is inside scripts
> > after a week, with Maven when I get back to scripts after months I know
> > what is happening - this is the advantage of having some specific
> > structure.
> >
> > śr., 21 paź 2020 o 10:33 Piotr Zarzycki <pi...@gmail.com>
> > napisał(a):
> >
> > > Hi Hugo,
> > >
> > > Usually it is, but I have found Maven less problematic over the years
> and
> > > with new project much more easy to setup. If someone checkout your
> > project
> > > with Maven pom file - he doesn't need Royale SDK at all, cause
> everything
> > > will be downloaded on the first build.
> > >
> > > Plus Maven scripts are much more cleaner than ant - In ant you can do
> > > whatever you want, in Maven you have some specific structure which you
> > > follow.
> > >
> > > Just to mention - I haven't changed my Maven build for Royale in the
> last
> > > 3 years - maybe command has changed over that time, but not so much.
> With
> > >
> > > When you push something without building SDK by Maven check here if
> it's
> > > not failing [1].
> > >
> > > [1] https://ci-builds.apache.org/job/Royale/
> > >
> > > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
> > > napisał(a):
> > >
> > >> Hi,
> > >>
> > >> For test fix and possibility new features, I apply the code in Royale
> > >> source code and build with ANT but Royale also support build with
> Maven.
> > >> I never use Maven before, so, what is the advantage in Royale to build
> > >> with
> > >> ANT or Maven.
> > >> I searched a lot and seems to be only a metter of personal preference.
> > >>
> > >
> > >
> > > --
> > >
> > > Piotr Zarzycki
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>

Re: ANT vs Maven

Posted by Carlos Rovira <ca...@apache.org>.
In an example I think it can be better to understand. If you go to this
project I did some weeks ago:

https://github.com/codeoscopic/avant2-website

You should be able to do "mvn install" in the library and then in the
project without anything more in your machine.
Since Maven will download dependencies for you. If I release the library
and be in some maven repository out there, you can just build the main
project and the library will come from out there.

Using ANT will require that you set up manually all things in your machine
and that could be a problem. Why if you change your machine?....probably
you must do all that again.

Then if you must to put your project on a server for a team....here the
trouble could be epic. So ANT could be ok if you're working alone, but in
teams Maven excels clearly, so I prefer to standardize my way of "produce"
by always using Maven as a build tool.

HTH


El mié., 21 oct. 2020 a las 10:35, Piotr Zarzycki (<
piotrzarzycki21@gmail.com>) escribió:

> My personal feelings of course. :) Ant is also good, but it all depends how
> scripts are written, I know that I have no idea what is inside scripts
> after a week, with Maven when I get back to scripts after months I know
> what is happening - this is the advantage of having some specific
> structure.
>
> śr., 21 paź 2020 o 10:33 Piotr Zarzycki <pi...@gmail.com>
> napisał(a):
>
> > Hi Hugo,
> >
> > Usually it is, but I have found Maven less problematic over the years and
> > with new project much more easy to setup. If someone checkout your
> project
> > with Maven pom file - he doesn't need Royale SDK at all, cause everything
> > will be downloaded on the first build.
> >
> > Plus Maven scripts are much more cleaner than ant - In ant you can do
> > whatever you want, in Maven you have some specific structure which you
> > follow.
> >
> > Just to mention - I haven't changed my Maven build for Royale in the last
> > 3 years - maybe command has changed over that time, but not so much. With
> >
> > When you push something without building SDK by Maven check here if it's
> > not failing [1].
> >
> > [1] https://ci-builds.apache.org/job/Royale/
> >
> > śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
> > napisał(a):
> >
> >> Hi,
> >>
> >> For test fix and possibility new features, I apply the code in Royale
> >> source code and build with ANT but Royale also support build with Maven.
> >> I never use Maven before, so, what is the advantage in Royale to build
> >> with
> >> ANT or Maven.
> >> I searched a lot and seems to be only a metter of personal preference.
> >>
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>
>
> --
>
> Piotr Zarzycki
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: ANT vs Maven

Posted by Piotr Zarzycki <pi...@gmail.com>.
My personal feelings of course. :) Ant is also good, but it all depends how
scripts are written, I know that I have no idea what is inside scripts
after a week, with Maven when I get back to scripts after months I know
what is happening - this is the advantage of having some specific structure.

śr., 21 paź 2020 o 10:33 Piotr Zarzycki <pi...@gmail.com>
napisał(a):

> Hi Hugo,
>
> Usually it is, but I have found Maven less problematic over the years and
> with new project much more easy to setup. If someone checkout your project
> with Maven pom file - he doesn't need Royale SDK at all, cause everything
> will be downloaded on the first build.
>
> Plus Maven scripts are much more cleaner than ant - In ant you can do
> whatever you want, in Maven you have some specific structure which you
> follow.
>
> Just to mention - I haven't changed my Maven build for Royale in the last
> 3 years - maybe command has changed over that time, but not so much. With
>
> When you push something without building SDK by Maven check here if it's
> not failing [1].
>
> [1] https://ci-builds.apache.org/job/Royale/
>
> śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com>
> napisał(a):
>
>> Hi,
>>
>> For test fix and possibility new features, I apply the code in Royale
>> source code and build with ANT but Royale also support build with Maven.
>> I never use Maven before, so, what is the advantage in Royale to build
>> with
>> ANT or Maven.
>> I searched a lot and seems to be only a metter of personal preference.
>>
>
>
> --
>
> Piotr Zarzycki
>


-- 

Piotr Zarzycki

Re: ANT vs Maven

Posted by Carlos Rovira <ca...@apache.org>.
I think the must alone you are developing or in need to use a server for
building, you'll be in less need of using Maven. But I usually tend to
standardize in a solution and my needs use to involve a team of people.

El jue., 22 oct. 2020 a las 12:57, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Yes, for build the application, I'm using VS Code.
> As I'm a "solo" developer, I don't need to build on a server.
>
> For build the framework I used ANT.
> I will try Maven.
>
> Harbs <ha...@gmail.com> escreveu no dia quinta, 22/10/2020 à(s)
> 10:38:
>
> > Heh. I’ve found the opposite.
> >
> > For building the framework, you can use either Ant or Maven.
> >
> > For applications or external libraries, I’d recommend using Josh’s
> > asconfigc which is used by the VS Code extension. I think it’s easier to
> > use and configure than either ant or maven.
> >
> > My $0.02,
> > Harbs
> >
> > > On Oct 21, 2020, at 11:33 AM, Piotr Zarzycki <
> piotrzarzycki21@gmail.com>
> > wrote:
> > >
> > > Hi Hugo,
> > >
> > > Usually it is, but I have found Maven less problematic over the years
> and
> > > with new project much more easy to setup.
> >
> >
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: ANT vs Maven

Posted by Hugo Ferreira <hf...@gmail.com>.
Yes, for build the application, I'm using VS Code.
As I'm a "solo" developer, I don't need to build on a server.

For build the framework I used ANT.
I will try Maven.

Harbs <ha...@gmail.com> escreveu no dia quinta, 22/10/2020 à(s) 10:38:

> Heh. I’ve found the opposite.
>
> For building the framework, you can use either Ant or Maven.
>
> For applications or external libraries, I’d recommend using Josh’s
> asconfigc which is used by the VS Code extension. I think it’s easier to
> use and configure than either ant or maven.
>
> My $0.02,
> Harbs
>
> > On Oct 21, 2020, at 11:33 AM, Piotr Zarzycki <pi...@gmail.com>
> wrote:
> >
> > Hi Hugo,
> >
> > Usually it is, but I have found Maven less problematic over the years and
> > with new project much more easy to setup.
>
>

Re: ANT vs Maven

Posted by Piotr Zarzycki <pi...@gmail.com>.
I share with Harbs part of configuration in IDE. I'm doing the same in 80%
of cases. I'm using Moonshine.

czw., 22 paź 2020 o 11:38 Harbs <ha...@gmail.com> napisał(a):

> Heh. I’ve found the opposite.
>
> For building the framework, you can use either Ant or Maven.
>
> For applications or external libraries, I’d recommend using Josh’s
> asconfigc which is used by the VS Code extension. I think it’s easier to
> use and configure than either ant or maven.
>
> My $0.02,
> Harbs
>
> > On Oct 21, 2020, at 11:33 AM, Piotr Zarzycki <pi...@gmail.com>
> wrote:
> >
> > Hi Hugo,
> >
> > Usually it is, but I have found Maven less problematic over the years and
> > with new project much more easy to setup.
>
>

-- 

Piotr Zarzycki

RE: ANT vs Maven

Posted by Yishay Weiss <yi...@hotmail.com>.
Hugo,

Welcome to Apache Royale, and welcome to the Ant vs Maven debate.

Both are useful tools in my opinion. My analogy is scripting (Ant) versus strongly typed (Maven). See for yourself and enjoy the ride.

From: Harbs<ma...@gmail.com>
Sent: Thursday, October 22, 2020 12:38 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: Re: ANT vs Maven

Heh. I’ve found the opposite.

For building the framework, you can use either Ant or Maven.

For applications or external libraries, I’d recommend using Josh’s asconfigc which is used by the VS Code extension. I think it’s easier to use and configure than either ant or maven.

My $0.02,
Harbs

> On Oct 21, 2020, at 11:33 AM, Piotr Zarzycki <pi...@gmail.com> wrote:
>
> Hi Hugo,
>
> Usually it is, but I have found Maven less problematic over the years and
> with new project much more easy to setup.


Re: ANT vs Maven

Posted by Harbs <ha...@gmail.com>.
Heh. I’ve found the opposite.

For building the framework, you can use either Ant or Maven.

For applications or external libraries, I’d recommend using Josh’s asconfigc which is used by the VS Code extension. I think it’s easier to use and configure than either ant or maven.

My $0.02,
Harbs

> On Oct 21, 2020, at 11:33 AM, Piotr Zarzycki <pi...@gmail.com> wrote:
> 
> Hi Hugo,
> 
> Usually it is, but I have found Maven less problematic over the years and
> with new project much more easy to setup.


Re: ANT vs Maven

Posted by Piotr Zarzycki <pi...@gmail.com>.
Hi Hugo,

Usually it is, but I have found Maven less problematic over the years and
with new project much more easy to setup. If someone checkout your project
with Maven pom file - he doesn't need Royale SDK at all, cause everything
will be downloaded on the first build.

Plus Maven scripts are much more cleaner than ant - In ant you can do
whatever you want, in Maven you have some specific structure which you
follow.

Just to mention - I haven't changed my Maven build for Royale in the last 3
years - maybe command has changed over that time, but not so much. With

When you push something without building SDK by Maven check here if it's
not failing [1].

[1] https://ci-builds.apache.org/job/Royale/

śr., 21 paź 2020 o 10:09 Hugo Ferreira <hf...@gmail.com> napisał(a):

> Hi,
>
> For test fix and possibility new features, I apply the code in Royale
> source code and build with ANT but Royale also support build with Maven.
> I never use Maven before, so, what is the advantage in Royale to build with
> ANT or Maven.
> I searched a lot and seems to be only a metter of personal preference.
>


-- 

Piotr Zarzycki

Re: ANT vs Maven

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

both are ways to build but Maven does much more.

What do you get using Maven over ANT? Sure others with more knowledge can
give more points, but these are the ones I think are the best.

You get your dependencies managed. The libraries that you use to build your
project are known artifacts in a repository and you pom.xml (the document
that describe the project entirely) has all the dependencies listed so when
you start building in a clean machine, the dependencies are downloaded to
your .m2 local repo. The same happens when you updated versions in
dependencies all is done for you under the hood.
So one benefit is that all is more automatic and free of human errors,
while in ANT all needs to be controlled by you. But we as humans can have
errors.

Also Maven is suited to be used in a CI server (as we already have in this
project) that can build the project as you commit changes in a
continuous cycle and notify you when you're breaking the build (as we
already do here, so the committer that breaks the build is notified).

Another cool feature is that if you use an IDE like IntelliJ that support
Maven, the IDE can configure the entire project just using the pom.xml. The
problem with IntelliJ is that far beyond that it doesn't have real Royale
support ;)

Apart from that Maven is more adopted today [1] (even over Gradle) than any
other build tool due to provide a more "industrial" way of building.

[1] https://twitter.com/ChristoferDutz/status/1240219399551934473




El mié., 21 oct. 2020 a las 10:09, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> Hi,
>
> For test fix and possibility new features, I apply the code in Royale
> source code and build with ANT but Royale also support build with Maven.
> I never use Maven before, so, what is the advantage in Royale to build with
> ANT or Maven.
> I searched a lot and seems to be only a metter of personal preference.
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: ANT vs Maven

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

being possibly one of the biggest Maven advocats here, I think I could respond to this.

You are right, you can get the job of building a Royale application done with both tools.

Having been working as an IT consultant for about 16 years now and having come across a lot of companies, there is definitely a tendency to move towards Maven for larger projects. 
Actually, I haven't come across an ANT project for quite some time now. I do however know that a lot of the people of the Royale community like Ant and uses that as primary build tool.

For me personally I like the standardization of Maven ... so if I'm a newcomer and want to get started with a new project and that's built with Maven, usually it's a simple: Clone repo, build repo type of thing.
Ant is a lot more flexible, but also far less standardized. I think even we demonstrate this nicely ... the simple task of cleaning up is not handled the same way for all of our repos.

So we are maintaining both build systems and both should stay supported. Adding new stuff that doesn't build with Maven is just as bad as adding stuff that just builds with Maven. 

So If you need help with the Maven part, just ping me.

Chris




Am 21.10.20, 10:09 schrieb "Hugo Ferreira" <hf...@gmail.com>:

    Hi,

    For test fix and possibility new features, I apply the code in Royale
    source code and build with ANT but Royale also support build with Maven.
    I never use Maven before, so, what is the advantage in Royale to build with
    ANT or Maven.
    I searched a lot and seems to be only a metter of personal preference.