HannesWell commented on issue #912:
URL: https://github.com/apache/maven-mvnd/issues/912#issuecomment-4090741965
This isn't supposed to work with other extensions that use Takari
smart-builder, like Eclipse Tycho, is it?
Because I tried the latest Daemon 1.0.4 with a Maven build using Tycho and
it's `tycho-build` extension (to derive polyglot pom.xml at build-time from
project `MANIFEST.MF` file) and it fails with a similar error:
```
[ERROR] class io.takari.maven.builder.smart.DependencyGraph cannot be cast
to class io.takari.maven.builder.smart.DependencyGraph
(io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader
org.codehaus.plexus.classworlds.realm.ClassRealm @30dae81;
io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader
org.codehaus.plexus.classworlds.realm.ClassRealm @789a9bba)
java.lang.ClassCastException: class
io.takari.maven.builder.smart.DependencyGraph cannot be cast to class
io.takari.maven.builder.smart.DependencyGraph
(io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader
org.codehaus.plexus.classworlds.realm.ClassRealm @30dae81;
io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader
org.codehaus.plexus.classworlds.realm.ClassRealm @789a9bba)
at io.takari.maven.builder.smart.DependencyGraph.fromMaven
(DependencyGraph.java:40)
at io.takari.maven.builder.smart.SmartBuilder.build
(SmartBuilder.java:88)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.DaemonMavenCli.execute (DaemonMavenCli.java:851)
at org.apache.maven.cli.DaemonMavenCli.doMain (DaemonMavenCli.java:236)
at org.apache.maven.cli.DaemonMavenCli.main (DaemonMavenCli.java:211)
at org.mvndaemon.mvnd.daemon.Server.handle (Server.java:619)
at org.mvndaemon.mvnd.daemon.Server.client (Server.java:293)
at org.mvndaemon.mvnd.daemon.Server.lambda$accept$2 (Server.java:250)
at java.lang.Thread.run (Thread.java:1474)
```
However reading through the linked PRs and code, I have the sense that this
will not work and that there is no easy fix?
Excluding the tycho-build extension isn't an option since this would require
a lot of extra project configuration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]