Maven setting up the Internal Repository

Add internal repository from project

${basedir} is variable of eclipse

Local File In Project
Local Repo

Add dependency

  • When using command mvn eclipse:eclipse , maven will copy file from folder repo to folder .m2 (C:\Users\EURO\.m2\repository\com\amazon\RedshiftJDBC41\1.1.9.1009)
  • On EC2 server you must deploy your library to folder /usr/lib/jvm/jre/lib/ext/RedshiftJDBC41-1.1.9.1009.jar.

Leave a Reply

Your email address will not be published. Required fields are marked *