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

New maven submodule cannot be imported #3464

Closed
testforstephen opened this issue Jan 16, 2024 · 0 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#3023
Closed

New maven submodule cannot be imported #3464

testforstephen opened this issue Jan 16, 2024 · 0 comments · Fixed by eclipse-jdtls/eclipse.jdt.ls#3023
Assignees

Comments

@testforstephen
Copy link
Collaborator

Reproduce steps:

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>foo.bar</groupId>
		<artifactId>multimodule</artifactId>
		<version>0.0.1-SNAPSHOT</version>
	</parent>
	<artifactId>module4</artifactId>
	<packaging>jar</packaging>
</project>
  • Modify the parent pom file multimodule/pom.xml and add the new module module4 as a sub module. The <modules> section should look like this:
<project ...>
...
	<modules>
		<module>module1</module>
		<module>module4</module>
	</modules>
 ...
</project>
  • F1 -> "Java: Import Java Projects into Workspace". Select all projects to import.
  • Go to the Java Projects view, and I don't see the new module is imported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant