Spring boot with maven multi modules not working

Spring boot with maven multi modules not working

I'm trying to create,parent pom which will hold all the child spring boot modules, But when i build parent pom, I'm getting the below error.

I'm trying to create,parent pom which will hold all the child spring boot modules, But when i build parent pom, I'm getting the below error.

[ERROR] The project com.some.special:special-parent:0.0.1 (C:\Users\location\git\special-parent-pom\pom.xml) has 1 error [ERROR] Child module C:\Users\location\git\special-parent-pom..\special-security of C:\Users\location\git\special-parent-pom\pom.xml does not exist.

Below is my project structure:

--special-parent-pom

--special-security

both parent and child in same folder(C:\Users\location\git)

below is the parent pom.xml:

<modelVersion>4.0.0</modelVersion>

&lt;groupId&gt;com.some.special&lt;/groupId&gt;
&lt;artifactId&gt;special-parent&lt;/artifactId&gt;
&lt;version&gt;0.0.1&lt;/version&gt;
&lt;packaging&gt;pom&lt;/packaging&gt;

&lt;name&gt;special-parent&lt;/name&gt;
&lt;description&gt;special-parent&lt;/description&gt;
&lt;parent&gt;
&lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
&lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
&lt;version&gt;2.1.2.RELEASE&lt;/version&gt;
&lt;/parent&gt;


    &lt;modules&gt;
        &lt;module&gt;../special-security&lt;/module&gt;
     &lt;/modules&gt;

Below is the child pom.xml:

<modelVersion>4.0.0</modelVersion>
    <artifactId>special-security</artifactId>
    <packaging>jar</packaging>

&lt;parent&gt;
    &lt;groupId&gt;com.some.special&lt;/groupId&gt;
    &lt;artifactId&gt;special-parent&lt;/artifactId&gt;
    &lt;version&gt;0.0.1&lt;/version&gt;
    &lt;relativePath&gt;../special-parent/pom.xml&lt;/relativePath&gt;
&lt;/parent&gt;

I'm unable to identify where the mistake is, can someone help me on this or share any example.My final goal is when i build the parent pom, it should build all the child modules with jar, basically spring boot child modules.

java git maven spring

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Spring Beans in Java

Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instan.

Java Spring Boot First App

Step by Step to your First Spring App

Spring | Spring JDBC Tutorial | Java Spring Tutorial Spring Training

Spring | Spring JDBC Tutorial | Java Spring Tutorial Spring Training . Spring Framework Certification Training This post Spring JDBC Tutorial video will help you

Top 10 Advanced Java and Spring Boot Courses for Full-Stack Java Developers

These are best online courses to learn Spring Boot, Advanced Java, Docker, React, Microservices, DEvops, and Angular to become full stack Java developer.