Skip to content

Ignore smart-builder core extension, if present. - #916

Merged
cstamas merged 3 commits into
apache:masterfrom
cstamas:issue-912
Apr 17, 2024
Merged

cstamas merged 3 commits into
apache:masterfrom
cstamas:issue-912

Conversation

@cstamas

@cstamas cstamas commented Feb 20, 2024

Copy link
Copy Markdown
Member

Fixes #912

@cstamas
cstamas requested a review from gnodet February 20, 2024 10:51
@cstamas cstamas self-assigned this Feb 20, 2024
@cstamas
cstamas requested a review from ppalaga February 20, 2024 10:54
@wendigo

wendigo commented Feb 21, 2024

Copy link
Copy Markdown

@gnodet can we get this merged and expect new release soon :)?

@cstamas

cstamas commented Mar 29, 2024

Copy link
Copy Markdown
Member Author

Do not merge pls, I want to extend this pr: with user configurable GA list to ignore (where smart builder is present "by default").

@cstamas
cstamas requested a review from gnodet March 29, 2024 17:10
@cstamas

cstamas commented Mar 29, 2024

Copy link
Copy Markdown
Member Author

@ppalaga @gnodet @wendigo pls review

@cstamas

cstamas commented Apr 13, 2024

Copy link
Copy Markdown
Member Author

ping

@cstamas
cstamas merged commit a1ac666 into apache:master Apr 17, 2024
@cstamas
cstamas deleted the issue-912 branch April 17, 2024 20:04
@cstamas

cstamas commented Apr 20, 2024

Copy link
Copy Markdown
Member Author
[INFO] ------------------------------------------------------------------------
[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 @17a7cec2; io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @6a9b0a6f)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 @17a7cec2; io.takari.maven.builder.smart.DependencyGraph is in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @6a9b0a6f)
    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:858)
    at org.apache.maven.cli.DaemonMavenCli.doMain (DaemonMavenCli.java:253)
    at org.apache.maven.cli.DaemonMavenCli.main (DaemonMavenCli.java:230)
    at org.mvndaemon.mvnd.daemon.Server.handle (Server.java:612)
    at org.mvndaemon.mvnd.daemon.Server.client (Server.java:288)
    at org.mvndaemon.mvnd.daemon.Server.lambda$accept$2 (Server.java:250)
    at java.lang.Thread.run (Thread.java:1570)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Also,

mvnd clean install -e -Dmvnd.coreExtensionsExclude=io.takari.maven:takari-smart-builder

works but seems kinda default value is ignored?

@gnodet @ppalaga

@wendigo

wendigo commented Apr 20, 2024

Copy link
Copy Markdown

Just tested the master build with Trino and it seems to ignore the default property value for MVND_CORE_EXTENSIONS_EXCLUDE while the explicitly passed -Dmvnd.coreExtensionsExclude works as expected.

@cstamas

cstamas commented Apr 20, 2024

Copy link
Copy Markdown
Member Author

Def value handling here #953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect smart builder in .mvn/extensions.xml and ignore it

3 participants