#Creating Maven Project in VSC

7 messages · Page 1 of 1 (latest)

ember bobcat
#

I'm struggling to create a Maven Project in VSC, coming from Python this feels like a major jump up as it probably is. How do I create a project? I've gotten thus far (image) but following this link: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html has proved frustrating.
It says I need a POM.xml file but I'll be honest I have no idea what it is, how to create it (I thought that it would be created when I entered mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false) and I'm quite honestly stuck. I wish to stick to VSC because I'm stubborn and I've installed the neccesary extensions.

Extensions:
Extension Pack for Java v0.25.15
Maven for Java v0.43.0

Other Installations:
openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Corretto-21.0.1.12.1 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.1.12.1 (build 21.0.1+12-LTS, mixed mode, sharing)

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: C:\Program Files\apache-maven-3.9.5
Java version: 21.0.1, vendor: Amazon.com Inc., runtime: C:\Program Files\Amazon Corretto\jdk21.0.1_12
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

I just need to figure out how to actually start writing the code, this tutorial for something I want to make has Maven as a requirement so I'm just stuck in my tracks. Any help would be greatly appreciated!

wide spadeBOT
#

This post has been reserved for your question.

Hey @ember bobcat! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

ember bobcat
#

Update: I just ran mvn archetype:generate and seems to be going fine

#

what number should I choose for filter?

deft reef
#

when you create a project with archetype:generate it will create a directory structure in the current working directory; open that directory as a project in VSC