Вот pom.xml в моем модуле «cyp»:
Код: Выделить всё
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">
4.0.0
org.cyph
cyp
0.0.1-SNAPSHOT
org.springframework.boot
spring-boot-starter-parent
3.0.0
21
21
21
UTF-8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-test
test
**
com.cyp
apiService
0.0.1-SNAPSHOT
**
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
21
21
Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.3.2
com.cyp
apiService
0.0.1-SNAPSHOT
apiService
[*]
21
org.springframework.boot
spring-boot-starter-web
**
org.cyp
cyp
0.0.1-SNAPSHOT
**
org.springframework.boot
spring-boot-devtools
runtime
true
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
21
21
- сделал Project->Maven->Reload Project li>
чистая установка mvn
Модули расположены:
Код: Выделить всё
C:\Users\example\.m2\repository\com\cyp\fixApiService
Код: Выделить всё
C:\Users\example\.m2\repository\org\cyp\cyp
Код: Выделить всё
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project cyp: Compilation failure
[ERROR] /C:/myProjects/cyp/src/main/java/org/cyp:[1,20] package com.cyp does not exist
Я был бы очень признателен за вашу помощь.
Заранее спасибо

Подробнее здесь: https://stackoverflow.com/questions/788 ... with-maven