maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Wheeler <>
Subject Re: Using maven to create portable projects (profile dependencies)
Date Thu, 10 May 2012 15:09:40 GMT
On 10/05/2012 3:06 AM, Julian Kalinowski wrote:
> Hi,
> I'm currently trying port a Java desktop project to Android using maven.
> It has several modules which have different dependencies.
> As the Android Java Runtime doesn't have packages such as awt or 
> swing, i needed to exclude some sources for that build and preprocess 
> others, which kind of works using munge-maven-plugin.
> However, when it comes to incompatible dependencies, i tried to use 
> two different profiles to exclude them from the android build (and 
> create jars with different classifiers).
> But this doesn't work as profiles are not respected during dependency 
> resolution, see this bug:
> It seems nobody cares about this, so I'm wondering if there's another 
> possible solution besides creating a separate pom.xml for every module...

That is the right way to do it. That is why no one cares. It does not 
affect anyone who is using Maven as it is intended to be used.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Ron Wheeler President Artifact Software Inc email: skype: ronaldmwheeler phone: 
866-970-2435, ext 102

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message