microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
182 stars 88 forks source link

Support creating a new maven module to existing multi-module project via 'New Module...' command #1018

Closed testforstephen closed 8 months ago

testforstephen commented 8 months ago

Closes #849

What this PR does: 1) In File Explorer context menu, rename the old menu "Create Maven Project" to "Maven / New Project..." 2) Add a new context menu "Maven / New Module..." to the File Explorer view. This command will provide a simplified wizard to create a new module to the existing maven project. image

3) Automatically import the newly created maven module as a Java project after the wizard "New Project/Module" is finished.

The difference between "New Project..." and "New Module...":

See the demo on "New Module..." command.

https://github.com/microsoft/vscode-maven/assets/14052197/4aac6a4d-4d9d-4a59-8096-d2e7231c936c

jdneo commented 8 months ago

Would you like to register the new module command to the Java Projects view as well?

It's not necessary to do that in this PR. If you plan to do that, an issue can be filed first to track it.

testforstephen commented 8 months ago

Would you like to register the new module command to the Java Projects view as well?

It's not necessary to do that in this PR. If you plan to do that, an issue can be filed first to track it.

Issue created https://github.com/microsoft/vscode-maven/issues/1019. Yes, I plan to add this feature to the Java Projects view as well. For now, I will release it in vscode-maven first to test its user adoption.