Reputation: 8065
I need to export a JAR file for remote deployment of my spring boot application. I am successfully able to generate it for my local deployment. But when I change the mySQL database credentials to my remote host's local mySQL client, the jar export is failing with
Access denied for user 'root'@'localhost' (using password: YES)
I am using the mvn package
command to export jar file. Why is the package command trying to execute the project rather than just packaging it? How can I export a jar for remote deployment?
Upvotes: 0
Views: 89
Reputation: 464
I suppose it runs tests where uses db connection properties. You can skip it for build, try to add
-Dmaven.test.skip
to your command
Upvotes: 1