P02: Maven multi-module skeleton — domain, application, adapter-persistence, adapter-web, bootstrap
build / build (push) Failing after 18s

This commit is contained in:
ShopForge Course
2026-09-17 12:17:07 +00:00
commit 392516f95c
23 changed files with 363 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?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>dev.shopforge</groupId><artifactId>shopforge</artifactId><version>0.1.0-SNAPSHOT</version></parent>
<artifactId>shopforge-bootstrap</artifactId>
<name>ShopForge :: bootstrap</name>
<dependencies>
<dependency><groupId>dev.shopforge</groupId><artifactId>shopforge-adapter-web</artifactId></dependency>
<dependency><groupId>dev.shopforge</groupId><artifactId>shopforge-adapter-persistence</artifactId></dependency>
<dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><scope>runtime</scope></dependency>
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency>
</dependencies>
<build>
<plugins>
<!-- fat jar sirf YAHIN banta hai — baaki module saadi jar hain -->
<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,15 @@
package dev.shopforge;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication(scanBasePackages = "dev.shopforge")
@EntityScan("dev.shopforge.persistence")
@EnableJpaRepositories("dev.shopforge.persistence")
public class ShopForgeApplication {
public static void main(String[] args) {
SpringApplication.run(ShopForgeApplication.class, args);
}
}
@@ -0,0 +1,3 @@
spring.datasource.url=jdbc:h2:mem:shopforge
spring.jpa.hibernate.ddl-auto=update
server.port=19080
@@ -0,0 +1,10 @@
package dev.shopforge;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ContextLoadTest {
@Test
void context_uthta_hai() { }
}