Yes, you are right.
But in Fedora there is tooling where I can exclude dependency.
Even if we created maven profile we would have to patch source code somehow.
I think it's possible to do it way I proposed or rewrite ConnectionFactoryImpl class.
Pavel
----- Original Message -----
From: "Vladimir Sitnikov" <sitnikov.vladimir@gmail.com>
To: "Pavel Kajaba" <pkajaba@redhat.com>
Cc: "Stephen Nelson" <stephen@eccostudio.com>, "List" <pgsql-jdbc@postgresql.org>, "Pavel Raiskup"
<praiskup@redhat.com>
Sent: Tuesday, January 19, 2016 1:29:34 PM
Subject: Re: [JDBC] [pgjdbc] Implement JDBC specs via pre-processor step (#435)
>What do you think about this approach?
As long as <dependency>...</depencency> is there, mvn would complain
on "missing dependency".
The only sane way of excluding dependency "on demand" is maven profiles.
Vladimir