<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.parkapp</groupId>
		<artifactId>common</artifactId>
		<version>0.0.1-SNAPSHOT</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<artifactId>common-core</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>common-core</name>
	<packaging>jar</packaging>

	<description>Common core</description>

	<dependencies>
		<dependency>
			<groupId>nl.jqno.equalsverifier</groupId>
			<artifactId>equalsverifier</artifactId>
			<version>3.15.1</version>
			<scope>compile</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>
I have the above in parkapp-common/
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.parkapp</groupId>
		<artifactId>common</artifactId>
		<version>0.0.1-SNAPSHOT</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<artifactId>common-core</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>common-core</name>
	<packaging>jar</packaging>

	<description>Common core</description>

	<dependencies>
		<dependency>
			<groupId>nl.jqno.equalsverifier</groupId>
			<artifactId>equalsverifier</artifactId>
			<version>3.15.1</version>
			<scope>compile</scope>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>
I have the above in the parkapp-common/core 
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.3.4</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.parkingexchange</groupId>
	<artifactId>parking</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>parking</name>
	<description>Parking Spot Exchange Application Parking Context</description>
	<url/>
	<licenses>
		<license/>
	</licenses>
	<developers>
		<developer/>
	</developers>
	<scm>
		<connection/>
		<developerConnection/>
		<tag/>
		<url/>
	</scm>
	<properties>
		<java.version>21</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jpa</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-validation</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>
							<groupId>org.projectlombok</groupId>
							<artifactId>lombok</artifactId>
						</exclude>
					</excludes>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
I have the above in parking/ (completely another path)

the parkapp-common can be considered as a shared kernel
I have common classes like
package org.parkapp.common.domain.model;

import org.parkapp.common.AssertionConcern;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Entity extends AssertionConcern implements Serializable {

    private static final long serialVersionUID = 1L;

    protected Entity() {
        super();
    }

    private final List<DomainEvent> domainEvents = new ArrayList<>();

    protected void publish(DomainEvent domainEvent) {
        domainEvents.add(domainEvent);
    }
    public List<DomainEvent> domainEvents() {
        return Collections.unmodifiableList(domainEvents);
    }
}
package org.parkapp.common.application.eventstore;


import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import java.io.Serializable;
import java.util.Date;
import org.parkapp.common.domain.model.DomainEvent;

@Entity
public class StoredEvent implements Serializable {

  private static final long serialVersionUID = 1L;

  private String eventBody;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long Id;
  private Date occurredOn;
  private String typeName;
  private String moduleName;

  public StoredEvent(
      String aTypeName,
      Date anOccurredOn,
      String anEventBody,
      String aModuleName) {
    this.setEventBody(anEventBody);
    this.setOccurredOn(anOccurredOn);
    this.setTypeName(aTypeName);
    this.setModuleName(aModuleName);
  }

  private StoredEvent(){
  }

  public String getModuleName() {
    return moduleName;
  }

  private void setModuleName(String moduleName) {
    this.moduleName = moduleName;
  }

  public String getEventBody() {
    return eventBody;
  }

  private void setEventBody(String eventBody) {
    this.eventBody = eventBody;
  }

  void setId(Long Id){
    this.Id = Id;
  }

  public Long getId() {
    return Id;
  }

  private void setId(long id) {
    this.Id = id;
  }

  public Date getOccurredOn() {
    return occurredOn;
  }

  private void setOccurredOn(Date occurredOn) {
    this.occurredOn = occurredOn;
  }

  public String getTypeName() {
    return typeName;
  }

  private void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  @SuppressWarnings("unchecked")
  public <T extends DomainEvent> T toDomainEvent(EventSerializer eventSerializer) {
    Class<T> domainEventClass = null;

    try {
      domainEventClass = (Class<T>) Class.forName(this.getTypeName());
    } catch (Exception e) {
      throw new IllegalStateException(
          "Class load error, because: "
              + e.getMessage());
    }

    T domainEvent =
        eventSerializer
            .deserialize(this.getEventBody(), domainEventClass);

    return domainEvent;
  }

  @Override
  public boolean equals(Object anObject) {
    boolean equalObjects = false;

    if (anObject != null && this.getClass() == anObject.getClass()) {
      StoredEvent typedObject = (StoredEvent) anObject;
      equalObjects = this.getId() == typedObject.getId();
    }

    return equalObjects;
  }

  @Override
  public int hashCode() {
    int hashCodeValue =
        +(1237 * 233)
            + this.getId().intValue();

    return hashCodeValue;
  }

  @Override
  public String toString() {
    return "StoredEvent [eventBody=" + eventBody + ", eventId=" + Id + ", occurredOn=" + occurredOn + ", typeName="
        + typeName + "]";
  }

}

etc etc
How would you change the pom to integrate it into my parking/ pom
Parking it's my first microservice, but there will be others. So i will probably integrate it also in review/ pom later