You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brett Porter <bp...@f2network.com.au> on 2003/10/15 00:08:40 UTC
RE: best practise
For Web applications, you should specify dependencies with
<properties><war.bundle>true</war.bundle></properties>, and they will
automatically be copied into WEB-INF/lib by maven when you run war:webapp or
war:war.
You can then point your server at target/webapp-name or
target/webapp-name.war depending on which of the above goals you used.
Have a look at the wiki for more best practices doing web application
development.
- Brett
> -----Original Message-----
> From: Christian Andersson [mailto:ca@ofs.no]
> Sent: Wednesday, 15 October 2003 10:33 PM
> To: Maven Users List
> Subject: best practise
>
>
> Hi there,I just have some questions about "best practise" with maven..
>
> before I used maven, I was using jbuilder (on windows), and
> when running
> the applications/websites/webapps I had created I used to run them
> against the different build-directories directly.
>
> now that I use maven, I have changed that somewhat (I'm now
> also using
> linux) instead of running things against the build directory, I have
> started to run things against the created jar files in the
> maven local
> repository. (I usually run maven with jar:install, and not just
> java:compile) I then either have my script files pointing the
> classpath
> to those files, or I create softlinks (using ln -s)
>
> for example, in WEB-INF/lib I have soft-links to all the needed jar
> files,which themselves are in the maven local repository.
>
> this works for me (at the moment), but i was wondering how
> you are doing
> things... are there other ways that are easier? better?more
> futureproof?
>
> /Christian Andersson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
Re: best practise
Posted by Christian Andersson <ca...@ofs.no>.
one step at a time, one step at a time, first i want maven to do
everything with my jar-projects, when I'm satisfied with that (and when
I get more time) I'll try new stuff, and perheps move over to the
web-app parts... I still have some minor problems with my jar-projects
and maven , but I think I have created some of them myself..
anyway, getting ideas on how other people work with maven might improve
my own way of working without to much work.
/Christian Andersson
Brett Porter wrote:
> For Web applications, you should specify dependencies with
> <properties><war.bundle>true</war.bundle></properties>, and they will
> automatically be copied into WEB-INF/lib by maven when you run war:webapp or
> war:war.
>
> You can then point your server at target/webapp-name or
> target/webapp-name.war depending on which of the above goals you used.
>
> Have a look at the wiki for more best practices doing web application
> development.
>
> - Brett
>
>
>>-----Original Message-----
>>From: Christian Andersson [mailto:ca@ofs.no]
>>Sent: Wednesday, 15 October 2003 10:33 PM
>>To: Maven Users List
>>Subject: best practise
>>
>>
>>Hi there,I just have some questions about "best practise" with maven..
>>
>>before I used maven, I was using jbuilder (on windows), and
>>when running
>>the applications/websites/webapps I had created I used to run them
>>against the different build-directories directly.
>>
>>now that I use maven, I have changed that somewhat (I'm now
>>also using
>>linux) instead of running things against the build directory, I have
>>started to run things against the created jar files in the
>>maven local
>>repository. (I usually run maven with jar:install, and not just
>>java:compile) I then either have my script files pointing the
>>classpath
>>to those files, or I create softlinks (using ln -s)
>>
>>for example, in WEB-INF/lib I have soft-links to all the needed jar
>>files,which themselves are in the maven local repository.
>>
>>this works for me (at the moment), but i was wondering how
>>you are doing
>>things... are there other ways that are easier? better?more
>>futureproof?
>>
>>/Christian Andersson
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org