Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Multiple entries with same key #333

Closed
gunnarmorling opened this issue Jan 17, 2021 · 1 comment
Closed

[ERROR] Multiple entries with same key #333

gunnarmorling opened this issue Jan 17, 2021 · 1 comment
Assignees
Milestone

Comments

@gunnarmorling
Copy link
Contributor

When trying to build Layrry with mvnd, I'm getting this error:

[ERROR] Multiple entries with same key: com.example.it:it-greeter=0 and com.example.it:it-greeter=0
java.lang.IllegalArgumentException: Multiple entries with same key: com.example.it:it-greeter=0 and com.example.it:it-greeter=0
	at com.google.common.collect.RegularImmutableMap.createHashTable(RegularImmutableMap.java:104)
	at com.google.common.collect.RegularImmutableMap.create(RegularImmutableMap.java:74)
	at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:338)
	at org.mvndaemon.mvnd.builder.ReactorBuildStats.create(ReactorBuildStats.java:70)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.<init>(SmartBuilderImpl.java:79)
	at org.mvndaemon.mvnd.builder.SmartBuilder.build(SmartBuilder.java:117)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
	at org.apache.maven.cli.DaemonMavenCli.execute(DaemonMavenCli.java:667)
	at org.apache.maven.cli.DaemonMavenCli.doMain(DaemonMavenCli.java:212)
	at org.apache.maven.cli.DaemonMavenCli.main(DaemonMavenCli.java:190)
	at org.mvndaemon.mvnd.daemon.Server.handle(Server.java:530)
	at org.mvndaemon.mvnd.daemon.Server.client(Server.java:243)
	at org.mvndaemon.mvnd.daemon.Server.accept(Server.java:218)
	at java.base/java.lang.Thread.run(Thread.java:831)

I suppose it's due to multiple versions of that greeter module being part of the reactor build. This works just fine with regular Maven.

@gunnarmorling
Copy link
Contributor Author

gunnarmorling commented Jan 18, 2021 via email

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

No branches or pull requests

2 participants