Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to create Multi-Module Maven in vscode #821

Open
ydmykr opened this issue Jun 13, 2022 · 6 comments
Open

Is there a way to create Multi-Module Maven in vscode #821

ydmykr opened this issue Jun 13, 2022 · 6 comments
Assignees
Labels
feature-request New feature or request question

Comments

@ydmykr
Copy link

ydmykr commented Jun 13, 2022

I read an article about the multi-module Maven project on IDE.

I tried it on vscode but I faied when I want to creat a maven project in a maven project.

And I get the following error report.

`[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 01:48 min

[INFO] Finished at: 2022-06-13T09:48:26+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]`

What I want to ask is whether there is a way to implement the method of this article in vscode

@Eskibear
Copy link
Member

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: Unable to add module to the current project as it is not of packaging type 'pom'

AFAIK, your module should be created under a parent project, whose pom.xml has <packaging>pom</packaging> instead of jar or war.

@ydmykr
Copy link
Author

ydmykr commented Jun 13, 2022

@Eskibear image

Can I simply implement this step in vscode.

@Eskibear
Copy link
Member

In Maven explorer, right click on your root project, and run install.

@Eskibear Eskibear self-assigned this Jun 13, 2022
@ydmykr
Copy link
Author

ydmykr commented Jun 13, 2022

I got this error when I click "install".
image

I refer to this page, but it didn't work for me.

image
image

@Eskibear
Copy link
Member

you should UNZIP the package before using it.

@Eskibear Eskibear added the feature-request New feature or request label Jul 22, 2022
@Eskibear
Copy link
Member

Two action items generated from this discussion, which potentially will improve the getting started experience for creating multi-module projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request question
Projects
None yet
Development

No branches or pull requests

2 participants