mvn clean package failed with mysql errors : Access denied for user 'root'@'localhost' (using password: NO)

when running mvn clean package I had a lot of the tests fail with mysql errors:

Access denied for user 'root'@'localhost' (using password: NO)

Most of the errors seemed to be the same. Had this at the bottom of the console output

Tests run: 268, Failures: 0, Errors: 73, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.970s
[INFO] Finished at: Thu Jul 09 15:01:04 EDT 2015
[INFO] Final Memory: 57M/699M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project mamute: There are test failures.
[ERROR] Please refer to

I had already had mysql set up for sometime and the root user requires a password. Anyway to set mysql user/pw to something else? Did not see anything in pom.xml.

(BTW...I'm a maven newb)

  1. You will see these arrows in every question page. They allow you to upvote/downvote according to the relevancy of the question/answer.
  2. Edit your question/answer if you wish to change it or update it.
  3. If you dont understand something about the question, leave a comment asking. The answer field should be only used for answers.
  4. If the author of a question mark an answer as solution, this mark will be visible.
  5. Click here to see more details about the operation of the system!

1 answer

It is not the answer you were looking for? Search other questions with the tags mysql clean or make your own question.