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><groupId>com.some.special</groupId> <artifactId>special-parent</artifactId> <version>0.0.1</version> <packaging>pom</packaging> <name>special-parent</name> <description>special-parent</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.2.RELEASE</version> </parent> <modules> <module>../special-security</module> </modules>
Below is the child pom.xml:
<modelVersion>4.0.0</modelVersion>
<artifactId>special-security</artifactId>
<packaging>jar</packaging><parent> <groupId>com.some.special</groupId> <artifactId>special-parent</artifactId> <version>0.0.1</version> <relativePath>../special-parent/pom.xml</relativePath> </parent>
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