You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mark Derricutt <ma...@talios.com> on 2026/03/18 07:29:52 UTC
maven-resolver-* update causes type incompatibilities
Hey all,
Hit a weird issue this evening, today one of my builds started failing
with:
[INFO] [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy
(default-deploy) on project *****: A type incompatibility occurred while
executing org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy:
class org.apache.http.impl.client.BasicAuthCache cannot be cast to class
org.apache.http.client.AuthCache
(org.apache.http.impl.client.BasicAuthCache is in unnamed module of
loader org.codehaus.plexus.classworlds.realm.ClassRealm @23bd047f;
org.apache.http.client.AuthCache is in unnamed module of loader
org.codehaus.plexus.classworlds.realm.ClassRealm @3f5f79d8)
This is using Maven 3.9.14.
I traced this down to an in-house Mojo upgrade I released, which, in
part, upgraded `org.apache.maven.resolver:maven-resolver-*` from 1.9.25
to 1.9.27.
This had also caused a similar AuthCache error with the
`build-helper-maven-plugin` - being a patch release, I wouldn’t have
expected any breaking issues.
I declare my dependencies as `provided`, but I guess once they’re
compiled with the newer versions, the bytecode is already poisoned.
Is this a known regression?
Re: maven-resolver-* update causes type incompatibilities
Posted by Mark Derricutt <ma...@talios.com>.
Unfortunately, not at the moment, but I’ll try creating a simple mojo that triggers it sometime over the weekend.
On 19 Mar 2026, at 23:39, Tamás Cservenák wrote:
> Can you provide a reproducer?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven-resolver-* update causes type incompatibilities
Posted by Tamás Cservenák <ta...@cservenak.net>.
Howdy,
Can you provide a reproducer?
T
On Wed, Mar 18, 2026 at 8:30 AM Mark Derricutt <ma...@talios.com> wrote:
>
> Hey all,
>
> Hit a weird issue this evening, today one of my builds started failing
> with:
>
>
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy
> (default-deploy) on project *****: A type incompatibility occurred while
> executing org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy:
> class org.apache.http.impl.client.BasicAuthCache cannot be cast to class
> org.apache.http.client.AuthCache
> (org.apache.http.impl.client.BasicAuthCache is in unnamed module of
> loader org.codehaus.plexus.classworlds.realm.ClassRealm @23bd047f;
> org.apache.http.client.AuthCache is in unnamed module of loader
> org.codehaus.plexus.classworlds.realm.ClassRealm @3f5f79d8)
>
> This is using Maven 3.9.14.
>
> I traced this down to an in-house Mojo upgrade I released, which, in
> part, upgraded `org.apache.maven.resolver:maven-resolver-*` from 1.9.25
> to 1.9.27.
>
> This had also caused a similar AuthCache error with the
> `build-helper-maven-plugin` - being a patch release, I wouldn’t have
> expected any breaking issues.
>
>
> I declare my dependencies as `provided`, but I guess once they’re
> compiled with the newer versions, the bytecode is already poisoned.
>
> Is this a known regression?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven-resolver-* update causes type incompatibilities
Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
sounds like a bug/regression. Could perhaps have something to do with
used but undeclared transitive dependencies. I don't know. Maybe
someone else will know more, but I suggest filing an issue.
On Wed, Mar 18, 2026 at 7:30 AM Mark Derricutt <ma...@talios.com> wrote:
>
> Hey all,
>
> Hit a weird issue this evening, today one of my builds started failing
> with:
>
>
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy
> (default-deploy) on project *****: A type incompatibility occurred while
> executing org.apache.maven.plugins:maven-deploy-plugin:3.1.4:deploy:
> class org.apache.http.impl.client.BasicAuthCache cannot be cast to class
> org.apache.http.client.AuthCache
> (org.apache.http.impl.client.BasicAuthCache is in unnamed module of
> loader org.codehaus.plexus.classworlds.realm.ClassRealm @23bd047f;
> org.apache.http.client.AuthCache is in unnamed module of loader
> org.codehaus.plexus.classworlds.realm.ClassRealm @3f5f79d8)
>
> This is using Maven 3.9.14.
>
> I traced this down to an in-house Mojo upgrade I released, which, in
> part, upgraded `org.apache.maven.resolver:maven-resolver-*` from 1.9.25
> to 1.9.27.
>
> This had also caused a similar AuthCache error with the
> `build-helper-maven-plugin` - being a patch release, I wouldn’t have
> expected any breaking issues.
>
>
> I declare my dependencies as `provided`, but I guess once they’re
> compiled with the newer versions, the bytecode is already poisoned.
>
> Is this a known regression?
--
Elliotte Rusty Harold
elharo@ibiblio.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org