Control transitive dependencies

2007-08-26 Thread EN
Hi, We have a multi module project: parent - pom, dependencyManagement proj1 - jar proj2 - jar proj3 - war Although we use log4j 1.2.14, our proj3.war file contains log4j 1.2.12 which probably added by maven as transitive dependency of one of our dependencies (activemq-parent-4.1.1.pom or

Re: Control transitive dependencies

2007-08-26 Thread Larry Suto
There are a few ways. mvn -X will give you debug output On 8/25/07, EN [EMAIL PROTECTED] wrote: Hi, We have a multi module project: parent - pom, dependencyManagement proj1 - jar proj2 - jar proj3 - war Although we use log4j 1.2.14, our proj3.war file contains log4j 1.2.12 which

Re: Control transitive dependencies

2007-08-26 Thread Larry Suto
There are a few ways: mvn -X will give you the debug output and will show the transitive that are brought in by the main dependencies, though I found this to be a bit tricky to use...my preferred way is too find the jars in my project(s) that mvn bundles a pom.xml in...if you look ar the pom.xmls

Re: Control transitive dependencies

2007-08-26 Thread Erez Nahir
Thanks Larry for the prompt and detailed reply. The strange thing is that maven debug info (and the dependencies reports) shows only the dependency on 1.2.14, it does not list who uses 1.2.12 (I figured it out by searching the poms in my local repository). Anyway, I'll give it a try.

Re: How to create a project having more than one module

2007-08-26 Thread Maria Odea Ching
Hi, Rashid Jilani wrote: Hi: Can some one tell from where to start in order to build a project with more than one module; I am sorry but Maven documentation is quite confusing at least for beginners. 1. Do I need to start with archetype; if this is true how to pass parameters to

Re: release:prepare must be runned twice?

2007-08-26 Thread Alexandre Gomes
Ok. Thanks everybody. Now, I have two mor infos: 1) The guy responsible for release:prepare is not the same for release:perform. That's why I use to add those temp files to SCM. 2) The problem I mentioned before happens in my Mac OS X, but not in Ubuntu. A bug, maybe? thanks. On 8/21/07,

Newbie question: including a jar in maven

2007-08-26 Thread Arrowx7
Hello, I'm new to maven I wanted to include the hibernate jar so I can import classes like: import org.springframework.orm.hibernate3.HibernateCallback; I know I have to add something to the pom.xml files, but I'm not sure what. Is it the hibernate plugin for maven? Can someone point me in the

Re: Newbie question: including a jar in maven

2007-08-26 Thread Dennis Lundberg
Arrowx7 wrote: Hello, I'm new to maven I wanted to include the hibernate jar so I can import classes like: import org.springframework.orm.hibernate3.HibernateCallback; I know I have to add something to the pom.xml files, but I'm not sure what. Is it the hibernate plugin for maven? Can someone

Re: Specifying the jar name in profiles

2007-08-26 Thread drippy
Thanks Tim, that does work when packaging the jar. Now I realize that I also need the name to stay when I am running install. Is this an option? -Ben Tim Kettler wrote: Hi, you can use build/finalName/ for this. -Tim drippy schrieb: I have two profiles that I am using. I'm

problem when generating one-to-many associations wiht xd2 mvn2 plugin

2007-08-26 Thread Marco Mistroni
hi all, i am using xd2 mvn2 plugin to generate xdoclet files... but it looks like it is falling short when i am using associations.. here is the class that is failing... code: package com.mm.backend.model; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import

Re: Specifying the jar name in profiles

2007-08-26 Thread Tim Kettler
No, this is not possible (with the finalName/ tag). The repository is a structured storage for maven artifacts and the directory hierarchy and filename conventions are well defined. Every artifact in the repository has to adhere to this conventions else maven will not be able to retrieve the

Re: WTP, Eclipse, and Maven with APP-INF/lib

2007-08-26 Thread Adam Hardy
Josh Long on 24/08/07 09:36, wrote: Hello I have an ear which in turn has dependencies that need to be furnished to all sub projects (a few EJBs, a few WARs). The maven build itself is configured to do the right thing and, in the resulting .ear, yeilds an APP-INF/lib director with all non

Re: Maven insist to fetch sibling module from repository

2007-08-26 Thread Barrie Treloar
No, I sub-module and the parent module does have any assembly defined. Btw, I tried to create sample project with empty source, but just hold the parent + sub-module-a and sub-module-b, the problem still exists. If you can create a simple reproducable project then attach it as a JIRA issue

Re: Activating a Profile from another Profile

2007-08-26 Thread William Ferguson
Thanks Tim, I hadn't considered activating a profile using multiple properties. If it were possible, then I think it might work. But activation property namedev/name nameprod/name /property /activation Is not valid syntax for the POM schema

Re: Accessing POM properties in a filter

2007-08-26 Thread William Ferguson
Ah, but the filters file *is* filtered. At least for Java System properties and for other filter tokens, and (because of the order that the filtering mechanism is implemented) also for values of simple POM elements (but not POM properties as they are complex). In order to allow replacement of POM

Re: Maven insist to fetch sibling module from repository

2007-08-26 Thread Zarick Lau
On 8/27/07, Barrie Treloar [EMAIL PROTECTED] wrote: No, I sub-module and the parent module does have any assembly defined. Btw, I tried to create sample project with empty source, but just hold the parent + sub-module-a and sub-module-b, the problem still exists. If you can create a