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

mvnd archetype:generate failed #1036

Closed
jorgaf opened this issue Jun 19, 2024 · 2 comments · Fixed by #1037 or #1038
Closed

mvnd archetype:generate failed #1036

jorgaf opened this issue Jun 19, 2024 · 2 comments · Fixed by #1037 or #1038
Milestone

Comments

@jorgaf
Copy link

jorgaf commented Jun 19, 2024

Hello,

I am trying to use mvnd with de archetype generate and I get this error:

[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Exception in thread "main" java.lang.ClassCastException: org.mvndaemon.mvnd.common.Message$ProjectEvent cannot be cast to org.mvndaemon.mvnd.common.Message$StringMessage
at org.mvndaemon.mvnd.common.logging.TerminalOutput.doAccept(TerminalOutput.java:315)
at org.mvndaemon.mvnd.common.logging.TerminalOutput.accept(TerminalOutput.java:213)
at org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:372)
at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:163)

I am working with:
Apache Maven Daemon (mvnd) 1.0.0 darwin-amd64 native client (0cb7cbc)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.osx.OsXNativePty
Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Maven home: /👻/.sdkman/candidates/mvnd/current/mvn
Java version: 22, vendor: Oracle Corporation, runtime: /👻/.sdkman/candidates/java/22-open
Default locale: es_EC, platform encoding: UTF-8
OS name: "mac os x", version: "13.6.7", arch: "x86_64", family: "mac"

cstamas added a commit that referenced this issue Jun 19, 2024
The event can be ProjectMessage as well.
@cstamas cstamas added this to the 1.0.1 milestone Jun 19, 2024
@cstamas cstamas linked a pull request Jun 19, 2024 that will close this issue
@cstamas
Copy link
Member

cstamas commented Jun 19, 2024

Affects both: 1.0.0 and 2.0.0-beta-1

@cstamas cstamas modified the milestones: 1.0.1, 2.0.0-beta-2 Jun 19, 2024
cstamas added a commit that referenced this issue Jun 19, 2024
Cast is wrong, as message can be of multiple type.

Fixes #1036
cstamas added a commit that referenced this issue Jun 20, 2024
ProjectEvent message mixup fixed.

Fixes #1036
@cstamas
Copy link
Member

cstamas commented Jun 20, 2024

Please retest with binaries built by CI from here:
https://github.com/apache/maven-mvnd/actions/runs/9597334445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants