failed to build #2382
hichemmejri opened 1 year 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 1 year ago
    Previous Value Current Value
    true
    false
  • Robin Shen changed fields 1 year ago
    Name Previous Value Current Value
    Type
    Build Failure
    Question
  • Robin Shen commented 1 year ago

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

  • hichemmejri commented 1 year ago

    thanks , it worked 😃

  • Robin Shen changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
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