#Java Packages
12 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @tough skiff! Please use
/closeor theClose Postbutton above when you're finished. 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.
it doesn't, you're free to name it whatever, even dev.drwarpman. the common approach to that would be me.drwarpman tho, but no one enforces package names
the pom.xml file is a guide to maven on how to build your project. if you change your package layout, make sure to update it there aswell
whatever/package/name/ClassName would be whatever.package.name.ClassName. each package segment is its own folder. You can put your class whereever you like
make your default package, for example me.drwarpman, and put all the classes that belong to you in that package. make subpackages when needed, such as me.drwarpman.subpackage
srcmeans the source folder,maindenotes the main source set,javatells you the language.src/main/resourceswould be the resources for the main sourceset,src/main/kotlinwould be kotlin source code of the main sourceset. note thatsrc/main/javaisn't part of the package name,org.exampleis tho
5.1 different source sets, if you have multiple
5.2 see 5