1/22/2024 0 Comments Phpstorm remote development dockerThis is a long-duration action, since we’re compiling the project and also downloading all the dependencies. Some of the generated sources for external. This has to be done from the command line (powershell), because intellij idea’s Maven->Generate Sources and Update Folders for all Projects option doesn’t work for metasfresh. OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"Ĭ:\work-metas\metasfresh\misc\dev-support\maven\settings.xmlįile (create the. Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jre1.8.0_212ĭefault locale: en_US, platform encoding: Cp1252 To test that maven is installed in the correct folder, run: C:\mvn\bin\mvn.cmd -versionĪnd you should get output similar to: PS C:\Users\crist> C:\mvn\bin\mvn.cmd -versionĪpache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555 T22:00:29+03:00) Please note that C:\mvn\apache-maven-3.6.3\bin\mvn.cmd is the wrong path for this tutorial. In the end you should end up with a folder structure on the disk such that mvn executable is found in C:\mvn\bin\mvn.cmd. Maven has no installer and there’s no need to add maven to PATH, so extract the archive to C:/ then rename the folder to C:/mvn from C:/apache-maven-3.6.3 (or whatever other version is currently available). intellij shows an error that some file has compilation errors even though logically everything should be in order), it is much easier (and less time consuming) to recompile the metasfresh project from CLI using maven. Metasfresh uses maven and even though Intellij Idea has maven built-in, we have noticed that if something breaks in intellij (eg. Don’t forget to start powershell with Administrator rights. ::SetEnvironmentVariable("PATH", "$PATH $pg_path", "User")īut modify $pg_path to the real directory on your system. $pg_path = "C:\Program Files\PostgreSQL\10\bin" Then add the bin folder to Path with $PATH = ::GetEnvironmentVariable("PATH", "User") Metasfresh uses psql for running the sql migrations, and it is found in the Command Line Tools.ĭownload the installer for postgresql version 10 (not a later version) from, and select Command Line Tools: There’s no need to install the full Postgres database. This is needed for the React metasfresh-webui-frontend and for metasfresh-e2e projects. To add the path variable using powershell with administrator rights, run: setx JAVA_HOME 'C:\Program Files\Java\jdk1.8.0_212'ĭownload and install the latest LTS version of Node.js. The following code will create work-metas then clone all the metasfresh modules needed from github: mkdir c:/work-metasĭownload and install JDK 8 from AdoptOpenJDK, then set the JAVA_HOME path variable. You should get an output similar to this: PS C:\Users\crist> git -versionĪll the metasfresh projects will be located in C:/work-metas To check if it’s added to PATH open powershell and run: git -version Install gitĭownload and install git from, then make sure it is added to your PATH. My windows account username is crist so whenever you see that, please replace it with yours. This guide is intended for Windows developers and uses powershell and not cmd for any CLI examples. There may be slight configuration differences between idea versions, but we believe you can figure things out. Always use the latest Idea version available. Let us know in case you need additional help. Please follow these steps to setup your development environment using IntelliJ IDEA and Docker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |