У меня есть базовый проект, который зависит от tos-base. Вот мой пом. xml. Я перепробовал все возможные вещи, которые находятся в переполнении стека, но я все еще получаю ошибку.
Я сделал следующее
mvn clean mvn compile зависимость mvn compile: дерево mvn clean install
Кроме того, я попытался установить MAVEN_OPT с Xms и Xmx.
Кроме того, я создал проект снова, но с той же ошибкой.
<?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>
<groupId>com.spectrum.sci</groupId>
<artifactId>order-core</artifactId>
<version>1.0</version>
<name>order-core</name>
<description>Order Core</description>
<properties>
<java.version>1.8</java.version>
<cxf.version>3.2.0</cxf.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependencies>
<dependency>
<groupId>com.spectrum.tos</groupId>
<artifactId>tos-base</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</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>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-service-description</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Вот ошибка, которую я получил:
[INFO] Scanning for projects...
[INFO]
[INFO] [1m--------------------< [0;36mcom.spectrum.sci:order-core[0;1m >---------------------[m
[INFO] [1mBuilding order-core 1.0[m
[INFO] [1m--------------------------------[ jar ]---------------------------------[m
[INFO]
[INFO] [1m--- [0;32mmaven-resources-plugin:3.1.0:resources[m [1m(default-resources)[m @ [36morder-core[0;1m ---[m
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 0 resource
[INFO]
[INFO] [1m--- [0;32mmaven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m @ [36morder-core[0;1m ---[m
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 151 source files to C:\Users\P2932832\BPradhan\order-core\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[14,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[15,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[42,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[43,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[39,60] cannot find symbol
symbol: class OrderRequest
location: class com.spectrum.sci.controllers.OrderController
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[39,11] cannot find symbol
symbol: class OrderResponse
location: class com.spectrum.sci.controllers.OrderController
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[55,36] cannot find symbol
symbol: class OrderRequest
location: class com.spectrum.sci.service.OrderDetailsService
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[55,16] cannot find symbol
symbol: class OrderResponse
location: class com.spectrum.sci.service.OrderDetailsService
[INFO] 8 errors
[INFO] -------------------------------------------------------------
[INFO] [1m------------------------------------------------------------------------[m
[INFO] [1;31mBUILD FAILURE[m
[INFO] [1m------------------------------------------------------------------------[m
[INFO] Total time: 21.704 s
[INFO] Finished at: 2020-03-13T13:52:35-06:00
[INFO] [1m------------------------------------------------------------------------[m
[ERROR] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m on project [36morder-core[m: [1;31mCompilation failure[m: Compilation failure:
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[14,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[15,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[42,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[43,30] package com.spectrum.tos.model does not exist
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[39,60] cannot find symbol
[ERROR] symbol: class OrderRequest
[ERROR] location: class com.spectrum.sci.controllers.OrderController
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/controllers/OrderController.java:[39,11] cannot find symbol
[ERROR] symbol: class OrderResponse
[ERROR] location: class com.spectrum.sci.controllers.OrderController
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[55,36] cannot find symbol
[ERROR] symbol: class OrderRequest
[ERROR] location: class com.spectrum.sci.service.OrderDetailsService
[ERROR] /C:/Users/P2932832/BPradhan/order-core/src/main/java/com/spectrum/sci/service/OrderDetailsService.java:[55,16] cannot find symbol
[ERROR] symbol: class OrderResponse
[ERROR] location: class com.spectrum.sci.service.OrderDetailsService
[ERROR] -> [1m[Help 1][m
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
[ERROR] Re-run Maven using the [1m-X[m switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException