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

mvn on Mac x64 throws an Exception #877

Open
janvcap-mac opened this issue Dec 9, 2024 · 1 comment · Fixed by #895
Open

mvn on Mac x64 throws an Exception #877

janvcap-mac opened this issue Dec 9, 2024 · 1 comment · Fixed by #895
Labels
bug Something isn't working macOS specific for Apple MacOS

Comments

@janvcap-mac
Copy link

Expected behavior

As an IDEasy mvn user on Mac x64 I expect mvn to not report any exceptions, even if I didn't use it properly e.g. not inside a mvn project.

Actual behavior

bash-3.2$ ide mvn
Updates are available for the settings repository. If you want to pull the latest changes, call ide update.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.096 s
[INFO] Finished at: 2024-12-09T15:44:11+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
Internal error: Undefined error handling THROW_CLI
Running command '/Users/Username/IdeasyTestProjects/testproject/software/mvn/bin/mvn'
failed with exit code 1!
Step 'ide (mvn)' failed: com.devonfw.tools.ide.cli.CliProcessException: Running command '/Users/Username/IdeasyTestProjects/testproject/software/mvn/bin/mvn'
failed with exit code 1!
1 step(s) failed out of 3 steps.
Running command '/Users/Username/IdeasyTestProjects/testproject/software/mvn/bin/mvn'
failed with exit code 1!

Error: IDEasy failed with exit code 1

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Run ide mvn outside of a mvn project

Related/Dependent Issues

Comments/Hints:

Affected version:

  • OS: Mac x64
  • IDEasy: 2024.12.001-beta-SNAPSHOT
@janvcap-mac janvcap-mac added the bug Something isn't working label Dec 9, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Dec 9, 2024
@alfeilex alfeilex added the macOS specific for Apple MacOS label Dec 11, 2024
jan-vcapgemini added a commit to jan-vcapgemini/IDEasy that referenced this issue Dec 12, 2024
added static getLogLevelFromErrorHandling method to IdeLogLevel
removed Internal error message
replaced check of ProcessErrorHandling with getLogLevelFromErrorHandling
jan-vcapgemini added a commit to jan-vcapgemini/IDEasy that referenced this issue Dec 12, 2024
replaced getLogLevelFromErrorHandling with getLogLevel
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in IDEasy board Dec 12, 2024
@hohwille
Copy link
Member

Was auto-closed by #895 but that only removes the Internal error log line.

@hohwille hohwille reopened this Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS specific for Apple MacOS
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants