Visual studio java6/6/2023 ![]() If it prompts you to input something such as groupId, artifactId, version, etc just input them.Then the maven command will execute and download related jars from the maven central repository, you can see all this interaction process log information in the terminal area at the visual studio code bottom panel.Select a target folder in the browse directory popup window and click the Select Destination Folder button.Choose a version in the next version drop-down list.After a while, it will list all maven archetypes for you to choose from, input the keyword jdk in the search text box, and select archetype-quickstart-jdk8 in the list. ![]() Input keyword maven in the text box, and select Maven: Create Maven Project item in the popup dropdown list.It will open a command input text box at the top. Then click View -> Command Palette… menu item.Open visual studio code, then click File -> Open and select the above folder.Create a folder named VisualStudioCodeWorkSpace.Create Visual Studio Java Project With Maven Archetype.īefore we can edit and debug java code, we need to use visual studio to create a java project with the maven archetype as below. All the configurations will be saved automatically after you input them.Ĥ.Click Maven for Java menu item on the left side and input maven executable file absolute full path in Maven > Executable:Path input box on the right side.Click the Java menu item under Extensions on the left side, and input the maven settings.xml file absolute full path on the right side input box under Java > Configuration > Maven: User Settings item.Input keyword maven in the Settings search box and there will list maven related items.Click Code -> Preferences -> Settings menu item in visual studio code.You can refer to Create Java Project With Maven to learn more. First, you need to confirm maven has been installed on your macOS. The below step is for macOS, it is similar for Windows and Linux. We should tell visual studio code where the maven settings.xml file and the mvn binary executable file are saved. ![]() Then it will install all the java extensions which you need when you use visual studio to develop and debug a java project.īecause we want to use maven to manage(create, build, compile, etc) our java project.
0 Comments
Leave a Reply. |