Thanks for your reply. I've moved the profile to the enterprise pom and is being activated now. Still the libraries are not resolved while compiling even when dependency:tree resolves them just fine with the right versions.
-----Original Message----- From: Justin Edelson <[email protected]> To: Maven Users List <[email protected]>, [email protected] Subject: Re: Profile and dependencies not activated Date: Thu, 30 Dec 2010 12:27:10 -0500 This is the expected behavior. Profiles are a build-time concern and are not taken into account when in a dependency's pom. There's got to be a lot of discussion in the list archives about this. Justin 2010/12/30 Pazmiño Mazón, Iván Andrés <[email protected]> Hello, I've this multimodule project which inherits from an enterprise pom. The structure is as follows, there is an enterprise pom (ep) where I keep some common libraries to every project in the company so every project extends from this one. There's also a multimodule project with some children project, which of course extends the ep. And, there is a third project which only holds some libraries and a profile. The library project doesn't extend from the ep. The library project is added for dependency management inside the ep project. One child of the multimodule project needs the libraries inside the library project and also needs to activate the profile. When I build the dependency tree on the child project I can see every dependency added to the library project, but, when building the artifact it fails because it doesn't find the dependencies in the classpath and the profile is not been activated. I tried putting the the libs versions on the child project but didn't work either. Any ideas? Thanks, IP --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] "Clausula de Confidencialidad: La información contenida en el presente mensaje es confidencial, está dirigida exclusivamente a su destinatario y no puede ser vinculante. El Servicio de Rentas Internas no se responsabiliza por su uso y deja expresa constancia que en los registros de la Institución consta la información originalmente enviada. Este mensaje está protegido por la Ley de Propiedad Intelectual, Ley de Comercio Electrónico, Firmas y Mensajes de datos, reglamentos y acuerdos internacionales relacionados. Si usted no es el destinatario de este mensaje, recomendamos su eliminación inmediata. La distribución o copia del mismo, está prohibida y será sancionada de acuerdo al Código Penal y demás normas aplicables. La transmisión de información por correo electrónico, no garantiza que la misma sea segura o esté libre de error, por consiguiente, se recomienda su verificación.Toda solicitud de información requerida de manera oficial al SRI debe ser ingresada por Secretaría General y dirigida a la máxima autoridad de la Institución, conforme a la Ley y demás normas vigentes." --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
