I recently switched to using IntelliJ. I manually imported some projects and I guess I didn't do it correctly. They are all supposed to be java modules but they are just regular directory folders. Is there a way to convert them to java modules so I can run the programs or will I have to manually recreate new modules?
Right-click a folder in the Project tool window. Select Mark Directory as from the context menu.
a module is like a project, it produce jar file and can behave independently, but directory is part of a project and use to organize folders and classes.
In the Project tool window ( Alt+1 ), right-click the node in which you want to create a new file and click New | File. Alternatively, select the node, press Alt+Insert , and click File. Name the new file and specify its extension, for example: File. js, and press Enter .
If you get the directory from some version system and it has a maven pom.xml
configuration file, here's a solution:
Find the pom.xml
in the directory.
Right click the pom.xml
.
Then you can see the popup windows. Select the last item "add as maven project file"
.
Then, the maven build tool can automatically discern the directory as an module and import the specified jar dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With