Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23440 > unrolled thread

what is the advantage of using maven for java standalone app

Started bymcheung63@gmail.com
First post2013-04-13 04:37 -0700
Last post2013-04-15 21:36 -0400
Articles 15 — 6 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  what is the advantage of using maven for java standalone app mcheung63@gmail.com - 2013-04-13 04:37 -0700
    Re: what is the advantage of using maven for java standalone app Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-13 17:02 +0300
      Re: what is the advantage of using maven for java standalone app mcheung63@gmail.com - 2013-04-13 08:14 -0700
        Re: what is the advantage of using maven for java standalone app Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-13 18:31 +0300
          Re: what is the advantage of using maven for java standalone app mcheung63@gmail.com - 2013-04-14 00:27 -0700
            Re: what is the advantage of using maven for java standalone app Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-14 13:34 +0300
            Re: what is the advantage of using maven for java standalone app Lew <lewbloch@gmail.com> - 2013-04-14 18:13 -0700
            Re: what is the advantage of using maven for java standalone app x@x.com (znôrt) - 2013-04-15 20:56 +0200
            Re: what is the advantage of using maven for java standalone app Arne Vajhøj <arne@vajhoej.dk> - 2013-04-15 21:40 -0400
      Re: what is the advantage of using maven for java standalone app Arne Vajhøj <arne@vajhoej.dk> - 2013-04-15 21:37 -0400
    Re: what is the advantage of using maven for java standalone app Stanimir Stamenkov <s7an10@netscape.net> - 2013-04-13 18:42 +0300
      Re: what is the advantage of using maven for java standalone app Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-04-13 15:02 -0300
      Re: what is the advantage of using maven for java standalone app mcheung63@gmail.com - 2013-04-14 00:27 -0700
      Re: what is the advantage of using maven for java standalone app Arne Vajhøj <arne@vajhoej.dk> - 2013-04-15 21:42 -0400
    Re: what is the advantage of using maven for java standalone app Arne Vajhøj <arne@vajhoej.dk> - 2013-04-15 21:36 -0400

#23440 — what is the advantage of using maven for java standalone app

Frommcheung63@gmail.com
Date2013-04-13 04:37 -0700
Subjectwhat is the advantage of using maven for java standalone app
Message-ID<9db463b7-fba0-46be-9390-4a144df49443@googlegroups.com>
Hi all
   I can feel the advantage of using maven to build webapp, please tell me what is the advantage of using maven for build standalone java app?
thanks
from Peter (cmk128@hotmail.com)

[toc] | [next] | [standalone]


#23441

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-13 17:02 +0300
Message-ID<kkbod5$jpj$1@dont-email.me>
In reply to#23440
Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:

>    I can feel the advantage of using maven to build webapp, please
> tell me what is the advantage of using maven for build standalone
> java app?

Out of curiosity, what advantage do you feel about using Maven to 
build a webapp?  Why your feeling doesn't apply for building a 
standalone java app?

> from Peter (cmk128@hotmail.com)

Kind of schizophrenic. :-)

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23442

Frommcheung63@gmail.com
Date2013-04-13 08:14 -0700
Message-ID<00047d26-c262-4b60-be0c-9e75a3bfa56b@googlegroups.com>
In reply to#23441
Stanimir Stamenkov於 2013年4月13日星期六UTC+8下午10時02分49秒寫道:
> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
> 
> 
> 
> >    I can feel the advantage of using maven to build webapp, please
> 
> > tell me what is the advantage of using maven for build standalone
> 
> > java app?
> 
> 
> 
> Out of curiosity, what advantage do you feel about using Maven to 
> 
> build a webapp?  Why your feeling doesn't apply for building a 
> 
> standalone java app?
> 
> 
> 
> > from Peter (cmk128@hotmail.com)
> 
> 
> 
> Kind of schizophrenic. :-)
> 
> 
> 
> -- 
> 
> Stanimir

advantage is , i can use husdon to do continue integration, this not very possible to a standalone app

[toc] | [prev] | [next] | [standalone]


#23443

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-13 18:31 +0300
Message-ID<kkbtjs$o67$1@dont-email.me>
In reply to#23442
Sat, 13 Apr 2013 08:14:45 -0700 (PDT), /mcheung63@gmail.com/:
> Stanimir Stamenkov於 2013年4月13日星期六UTC+8下午10時02分49秒寫道:
>> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
>>
>>>     I can feel the advantage of using maven to build webapp, please
>>> tell me what is the advantage of using maven for build standalone
>>> java app?
>>
>> Out of curiosity, what advantage do you feel about using Maven to
>> build a webapp?  Why your feeling doesn't apply for building a
>> standalone java app?
>
> advantage is , i can use husdon to do continue integration, this
> not very possible to a standalone app

Why do you think it is not possible to build a standalone app using 
a continuous integration server like Hudson - what's the difference? 
  Have you seen Eclipse which builds quite a lot of desktop 
components, uses Hudson too?

https://hudson.eclipse.org/

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23448

Frommcheung63@gmail.com
Date2013-04-14 00:27 -0700
Message-ID<d985e078-7bf4-48a7-996c-4c0a32b39635@googlegroups.com>
In reply to#23443
Stanimir Stamenkov於 2013年4月13日星期六UTC+8下午11時31分45秒寫道:
> Sat, 13 Apr 2013 08:14:45 -0700 (PDT), /mcheung63@gmail.com/:
> 
> > Stanimir Stamenkov於 2013年4月13日星期六UTC+8下午10時02分49秒寫道:
> 
> >> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
> 
> >>
> 
> >>>     I can feel the advantage of using maven to build webapp, please
> 
> >>> tell me what is the advantage of using maven for build standalone
> 
> >>> java app?
> 
> >>
> 
> >> Out of curiosity, what advantage do you feel about using Maven to
> 
> >> build a webapp?  Why your feeling doesn't apply for building a
> 
> >> standalone java app?
> 
> >
> 
> > advantage is , i can use husdon to do continue integration, this
> 
> > not very possible to a standalone app
> 
> 
> 
> Why do you think it is not possible to build a standalone app using 
> 
> a continuous integration server like Hudson - what's the difference? 
> 
>   Have you seen Eclipse which builds quite a lot of desktop 
> 
> components, uses Hudson too?
> 
> 
> 
> https://hudson.eclipse.org/
> 
> 
> 
> -- 
> 
> Stanimir

hi
i used husdon to build a war and auto deploy to my tomcat every 1 hour, so when i browse to my tomcat, i always see the my latest webapp. If i am doing standalone app, even hudson can build a jar for me, i still need a lot of step to run it manually, so i think it is not a great advantage.

One point I agree with maven is that it can manage the dependence version more easily. But this is not a very bid advantage for me. That why i ask the questionin here.
thanks

[toc] | [prev] | [next] | [standalone]


#23453

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-14 13:34 +0300
Message-ID<kke0hq$9pv$1@dont-email.me>
In reply to#23448
Sun, 14 Apr 2013 00:27:15 -0700 (PDT), /mcheung63@gmail.com/:

> i used husdon to build a war and auto deploy to my tomcat every 1
> hour, so when i browse to my tomcat, i always see the my latest
> webapp. If i am doing standalone app, even hudson can build a jar
> for me, i still need a lot of step to run it manually, so i think
> it is not a great advantage.
>
> One point I agree with maven is that it can manage the dependence
> version more easily. But this is not a very bid advantage for me.
> That why i ask the questionin here.

As Arved Sandstrom points in another reply, your question doesn't 
even seem Maven related, but more about "clarifying why a build 
system, any build system, in the context of a CI environment is 
useful for app development".  I think CI server may be useful for 
any application - verifying 1) the automated build of the product 
works (being Maven or not), after latest changes checked into the 
source; 2) the product works as expected after running whatever 
automated tests have been created for it.

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23455

FromLew <lewbloch@gmail.com>
Date2013-04-14 18:13 -0700
Message-ID<a52c716a-1037-41f7-9957-387ff20d1c92@googlegroups.com>
In reply to#23448
mche...@gmail.com wrote:
>>> advantage is , i [sic] can use husdon [sic] to do continue integration,
>>> this not very possible to a standalone app

Actually, it is very, very possible.

Simply tell Hudson to run the Ant build.

Stanimir Stamenkov wrote:
>> Why do you think it is not possible to build a standalone app using 
>> a continuous integration server like Hudson - what's the difference? 
>> 
>> Have you seen Eclipse which builds quite a lot of desktop 
>> components, uses Hudson too?
>>
>> https://hudson.eclipse.org/

> i [sic] used husdon [sic] to build a war and auto deploy to my tomcat [sic]
> every 1 hour, so when i [sic] browse to my tomcat, i [sic] always see the my 
> latest webapp. If i [sic] am doing standalone app, even hudson [sic] can 
> build a jar [sic] for me, i [sic] still need a lot of step to run it 
> manually, so i [sic] think it is not a great advantage.

What do you mean by "run it manually"?

You can set up Hudson to create a Java WebStart source for the app so you can
run it in one step.

So no, you do not need a lot of steps to run it. Unless one is a "lot".

> One point I agree with maven [sic] is that it can manage the dependence 
> version more easily. 

More easily than what?

> But this is not a very bid advantage for me. 

Isn't it?

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#23459

Fromx@x.com (znôrt)
Date2013-04-15 20:56 +0200
Message-ID<87bo9ffwrw.fsf@smoothskuarematr.ix_>
In reply to#23448
mcheung63@gmail.com writes:

> hi i used husdon to build a war and auto deploy to my tomcat every 1
> hour, so when i browse to my tomcat, i always see the my latest
> webapp. If i am doing standalone app, even hudson can build a jar for
> me, i still need a lot of step to run it manually, so i think it is
> not a great advantage.

just in case: maven is just a build system, hudson provides continuous
integration and for that it supports maven or many other build systems.

the goal of continuous integration is not that "you seee your last app"
at any moment, but to verify that the app is always in consistent state
at any moment, and that you will know if it is not. this verification is
done by running automated tests when anything changes.

now, these automated tests you have to write yourself, and the tools
needed for this depend entirely on the type and purpose of your apps and
on what you want to test. if you do not have automated testing for that
app then continuous integration is of little value. it may be even
dangerous. some kitten could die, man!

> One point I agree with maven is that it can manage the dependence
> version more easily. But this is not a very bid advantage for me. That
> why i ask the questionin here.  thanks

if you alerady use maven and your next project fits, i guess the natural
choice is to keep using maven. the less tools the better, but choose
wisely :-)

[toc] | [prev] | [next] | [standalone]


#23463

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-04-15 21:40 -0400
Message-ID<516cac2b$0$32107$14726298@news.sunsite.dk>
In reply to#23448
On 4/14/2013 3:27 AM, mcheung63@gmail.com wrote:
> i used husdon to build a war and auto deploy to my tomcat every 1
> hour, so when i browse to my tomcat, i always see the my latest
> webapp. If i am doing standalone app, even hudson can build a jar for
> me, i still need a lot of step to run it manually, so i think it is
> not a great advantage.

Double clicking on an executable jar file does not count as many
steps in my book.

It is approx the same as clicking on the bookmark in your web browser.

> One point I agree with maven is that it can manage the dependence
> version more easily. But this is not a very bid advantage for me.

No. But if you use Maven for other types of apps, then you should change
the question from "Are there reasons why I should use Maven for desktop
apps?" to "Are there reasons why I should not use Maven for desktop
apps?"

Arne


[toc] | [prev] | [next] | [standalone]


#23462

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-04-15 21:37 -0400
Message-ID<516cab58$0$32107$14726298@news.sunsite.dk>
In reply to#23441
On 4/13/2013 10:02 AM, Stanimir Stamenkov wrote:
> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
>>    I can feel the advantage of using maven to build webapp, please
>> tell me what is the advantage of using maven for build standalone
>> java app?
>
> Out of curiosity, what advantage do you feel about using Maven to build
> a webapp?  Why your feeling doesn't apply for building a standalone java
> app?

Java SE apps are often much simpler in both dependencies and
packaging than Java EE apps.

But yes - it is fundamentally the same.

Arne

[toc] | [prev] | [next] | [standalone]


#23444

FromStanimir Stamenkov <s7an10@netscape.net>
Date2013-04-13 18:42 +0300
Message-ID<kkbu7f$sj3$1@dont-email.me>
In reply to#23440
Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:

>    I can feel the advantage of using maven to build webapp, please
> tell me what is the advantage of using maven for build standalone
> java app?

By the way, this question appears more appropriate for the Maven 
Users mailing list - you may get better answers there:

http://maven.apache.org/mail-lists.html

-- 
Stanimir

[toc] | [prev] | [next] | [standalone]


#23445

FromArved Sandstrom <asandstrom2@eastlink.ca>
Date2013-04-13 15:02 -0300
Message-ID<x4hat.431507$SE5.115068@newsfe28.iad>
In reply to#23444
On 04/13/2013 12:42 PM, Stanimir Stamenkov wrote:
> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
>
>>    I can feel the advantage of using maven to build webapp, please
>> tell me what is the advantage of using maven for build standalone
>> java app?
>
> By the way, this question appears more appropriate for the Maven Users
> mailing list - you may get better answers there:
>
> http://maven.apache.org/mail-lists.html
>
It's not even at this stage really a Maven question - it's a question of 
clarifying why a build system, any build system, in the context of a CI 
environment is useful for app development, period.

As one example, why would it make sense to use Maven and Hudson for a 
web app, but not use those for (hypothetically) developing the web 
server itself? Which latter is, of course, a standalone app.

AHS

[toc] | [prev] | [next] | [standalone]


#23449

Frommcheung63@gmail.com
Date2013-04-14 00:27 -0700
Message-ID<f78a0046-7f3a-4c4f-8204-021589231abb@googlegroups.com>
In reply to#23444
Stanimir Stamenkov於 2013年4月13日星期六UTC+8下午11時42分12秒寫道:
> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
> 
> 
> 
> >    I can feel the advantage of using maven to build webapp, please
> 
> > tell me what is the advantage of using maven for build standalone
> 
> > java app?
> 
> 
> 
> By the way, this question appears more appropriate for the Maven 
> 
> Users mailing list - you may get better answers there:
> 
> 
> 
> http://maven.apache.org/mail-lists.html
> 
> 
> 
> -- 
> 
> Stanimir

thanks for the link

[toc] | [prev] | [next] | [standalone]


#23464

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-04-15 21:42 -0400
Message-ID<516cac6b$0$32107$14726298@news.sunsite.dk>
In reply to#23444
On 4/13/2013 11:42 AM, Stanimir Stamenkov wrote:
> Sat, 13 Apr 2013 04:37:25 -0700 (PDT), /mcheung63@gmail.com/:
>
>>    I can feel the advantage of using maven to build webapp, please
>> tell me what is the advantage of using maven for build standalone
>> java app?
>
> By the way, this question appears more appropriate for the Maven Users
> mailing list - you may get better answers there:

If the question is about how to use Maven: yes.

If the question is whether to use Maven: maybe - skill level
may be high but so  will the bias be!

Arne

[toc] | [prev] | [next] | [standalone]


#23461

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-04-15 21:36 -0400
Message-ID<516cab16$0$32107$14726298@news.sunsite.dk>
In reply to#23440
On 4/13/2013 7:37 AM, mcheung63@gmail.com wrote:
>     I can feel the advantage of using maven to build webapp, please tell me what is the advantage of using maven for build standalone java app?

The advantages are:
- automatic retrieval of the dependencies
- simple build script if you structure things the Maven way
similar to other types of applications.

For simple desktop apps these benefits may not be so important, but if
you use Maven for other types of apps and very familiar with it, then
it may still make sense to use it for you desktop apps as well.

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web