failed to build (OD-2382)
hichemmejri opened 9 months ago

I am facing an issue when trying to build my project with Maven. Even though the code is already present in my project directory, the mvn clean install command fails every time, preventing the generation of the required artifacts for my application.

Scanning for projects...
17:06:06 [INFO] ------------------------------------------------------------------------
17:06:06 [INFO] BUILD FAILURE
17:06:06 [INFO] ------------------------------------------------------------------------
17:06:06 [INFO] Total time:  0.129 s
17:06:06 [INFO] Finished at: 2025-04-21T16:06:06Z
17:06:06 [INFO] ------------------------------------------------------------------------
17:06:06 [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/onedev-build/workspace). Please verify you invoked Maven from the correct directory. -> [Help 1]
17:06:06 [ERROR] 
17:06:06 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
17:06:06 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
17:06:06 [ERROR] 
17:06:06 [ERROR] For more information about the errors and possible solutions, please read the following articles:
17:06:06 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
17:06:06 Command exited with code 1
17:06:06 Step "maven run" is failed (4 seconds)
  • hichemmejri changed confidential 9 months ago
    Previous Value Current Value
    true
    false
  • Robin Shen changed fields 9 months ago
    Name Previous Value Current Value
    Type
    Build Failure
    Question
  • Robin Shen commented 9 months ago

    Have you added a checkout step before this maven build step?

  • hichemmejri commented 9 months ago

    thanks , it worked 😃

  • Robin Shen changed state to 'Closed' 9 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Major
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2382
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover