Multiple project dependencies

2008-11-03 Thread John.Baker
Hello, I'm new to maven and I have a question regarding multiple projects and how the can be linked. I've created a common code project, and I have another which depends upon this project. I've got two directories, two pom files, etc., and the common code project can generate a jar file

RE: Multiple project dependencies

2008-11-04 Thread John.Baker
Graham, Thanks for your advice. I was wondering if parent/child relationships were the answer. However, there are two problems with this approach. The first is that I'm writing a plugin to a product and it created the maven project, and I note it's declared a parent: parent

RE: Multiple project dependencies

2008-11-06 Thread John.Baker
Hi Rafael, Thanks for your response. My question surrounds dependencies, and while I understand how to declare a dependency, what I want to know is how I make maven recompile dependencies. So if A depends on B, and I run 'mvn jar' in project B, how can I make it recompile (and I guess, run 'mvn

RE: Multiple project dependencies

2008-11-07 Thread John.Baker
Hi, B is a set of common code (such as LDAP user retrieval), and multiple projects will require this code. I could simply have one project and a common package for what would reside in B, but I'd prefer to break it out as the unified source tree approach would become heavily dependent on

RE: Multiple project dependencies

2008-11-10 Thread John.Baker
Hello, Thanks for your feedback. I really don't think I'm trying to make a simple problem into a difficult one, so perhaps I can outline my thoughts again? Consider two separate projects: common and plugin. In Eclipse, you'd create two projects and add common to the build path of plugin. If

RE: Multiple project dependencies

2008-11-10 Thread John.Baker
Hi, Perhaps I am simply thinking about one developer making life easier for themselves! I hadn't considered the multiple developer aspect, although it may still be handy to have such functionality. However someone suggested something about a parent pom and multiple modules, which seems a

Tomcat projects

2008-11-13 Thread John.Baker
Hello, Is there a parent project that will insist in deploying resources to a Tomcat project? I am currently doing: mvn -o jar:jar; cp target/CreateOrCommentHandler-0.0.1-SNAPSHOT.jar ~/tomcat/webapps/myapp/WEB-INF/lib/ However this doesn't seem very in tune with maven's way of doing things.

RE: Tomcat projects

2008-11-14 Thread John.Baker
Hi, -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: 13 November 2008 18:14 To: Maven Users List Subject: Re: Tomcat projects Google tells me there are a few tomcat plugins for Maven. http://mojo.codehaus.org/tomcat-maven-plugin/ http://cargo.codehaus.org/

Third party jars

2008-11-28 Thread John.Baker
Hi, Is there any way to get the maven build process to include a set of jars when compiling/packaging that are not in the repository? I have some vendor jars and I don't fancy packing them all up and placing them into the repository - I just want to point maven at a lib directory? Thanks,

RE: Third party jars

2008-11-28 Thread John.Baker
Excellent - do you happen to have a pom extract to, say, include the contents of ./lib on the compile path? -Original Message- From: David C. Hicks [mailto:[EMAIL PROTECTED] Sent: 28 November 2008 20:45 To: Maven Users List Subject: Re: Third party jars The assembly plugin can

RE: Third party jars

2008-12-01 Thread John.Baker
Hi, Thanks for all the feedback. I guess my reasoning was that inventing the meta data (group/artifactId/version) for 20 jars is a little time consuming - is there an easier way to do this? I.e. Is there a maven command to take a directory full of jars and upload them into my local repository

RE: Third party jars

2008-12-02 Thread John.Baker
Hi, Thanks for the suggestion, but I was already aware of this and I was wondering if there's an easier mechanism? Such as mvn being smart with the jar name and coming up with the group/artifact ID, but I suspect that's beginning to ask too much! John -Original Message- From: