You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pazmiño, Iván Andrés <ia...@sri.ad> on 2011/01/03 14:11:26 UTC

Re: Profile and dependencies not activated

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 <ju...@justinedelson.com>
To: Maven Users List <us...@maven.apache.org>, iapazmino@sri.gob.ec
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 <ia...@sri.ad>
        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: users-unsubscribe@maven.apache.org
        For additional commands, e-mail: users-help@maven.apache.org
        



"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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Profile and dependencies not activated

Posted by Pazmiño, Iván Andrés <ia...@sri.ad>.
Hi,

I'm using a profile to build jsf projects which generate web.xml and
faces-config.xml out of bean classes so you don't need to work them by
hand. But this is not general case and some projects code their own
descriptors.

The problem with dependencies was that inside the aggregated pom holding
libraries some of them where scoped as provided. By changing them to
compile their are available to the child project. My problem now is that
from all these libraries I get from this pom, half are needed to be
scope for compilation and the rest provided only.

Regards,
IP

-----Original Message-----
From: Wayne Fay <wa...@gmail.com>
To: Maven Users List <us...@maven.apache.org>, iapazmino@sri.gob.ec
Subject: Re: Profile and dependencies not activated
Date: Mon, 3 Jan 2011 16:48:55 -0600

> 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.

Why are you using profiles at all? Can you post a sample of what's not
working? Try mvn help:effective-pom to see what Maven "sees" as it is
building your project.

Wayne

"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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Profile and dependencies not activated

Posted by Wayne Fay <wa...@gmail.com>.
> 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.

Why are you using profiles at all? Can you post a sample of what's not
working? Try mvn help:effective-pom to see what Maven "sees" as it is
building your project.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org