Skip to main content

Posts

Showing posts from February, 2024

Tour de Langkawi Malaysia

 Details coming soon! For now, enjoy the shorts!

Import project configuration from a file in Intellij

When running maven project or any project in IntelliJ that depends on some credential and configuration it is very hard to provide it every time on the terminal using export. You can do it by either export or by putting it to bashrc or zshrc profile. Here is an way where you can do it just by using a file and a plugin and this will be used only in the IntelliJ build and run. To do that create a .env file using your all the export. Make sure not to add the export command. Only the assignment or declaration. Example: report-server.env   DC="local_cluster" SERVICE_NAME="NA" ENVIRONMENT="dev" SSL_KEY_STORE_PASSWORD="LAFSHTDBJIWQVHBHSHJD" SERVER_MODE="MASTER" REPORT_SERVER_HOST="localhost" After that you need to install a plugin in the IntelliJ Idea. To do that, open IntelliJ and  go to the Settings -> Plugins . On the popup window search box type "EnvFile" and install the EnvFile plugin.              ...