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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to