Loading [MathJax]/jax/output/CommonHTML/config.js
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >对于带有Kotlin类和Lombok的Spring项目,包不存在

对于带有Kotlin类和Lombok的Spring项目,包不存在
EN

Stack Overflow用户
提问于 2021-07-30 05:19:43
回答 1查看 355关注 0票数 0

我不确定Lombok是否与此有关,因为我没有在任何Kotlin文件中使用它们的注释。

POM

代码语言:javascript
运行
AI代码解释
复制
<?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>2.5.3</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>org.cas.eo.contentacq</groupId>
    <artifactId>content-acq-copper-manifest-writer</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>content-acq-copper-manifest-writer</name>
    <properties>
        <java.version>11</java.version>
        <kotlin.version>1.5.30-M1</kotlin.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</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.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </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>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.cas.eo.contentacq.dbresources</groupId>
            <artifactId>dbresources-client</artifactId>
            <version>2.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-validation</artifactId>
        </dependency>

        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>11.2.0.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk8</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-test</artifactId>
            <version>${kotlin.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk8</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
        
        <dependency>
            <groupId>com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-kotlin</artifactId>
            <version>2.13.0-rc1</version>
        </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>
            <plugin>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-maven-plugin</artifactId>
                <version>${kotlin.version}</version>
                <executions>
                    <execution>
                        <id>compile</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>test-compile</id>
                        <phase>test-compile</phase>
                        <goals>
                            <goal>test-compile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jvmTarget>1.8</jvmTarget>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <executions>
                    <execution>
                        <id>compile</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>testCompile</id>
                        <phase>test-compile</phase>
                        <goals>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>

mvn package输出

代码语言:javascript
运行
AI代码解释
复制
[INFO] Scanning for projects...
[INFO]
[INFO] ------< org.cas.eo.contentacq:content-acq-copper-manifest-writer >------
[INFO] Building content-acq-copper-manifest-writer 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ content-acq-copper-manifest-writer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ content-acq-copper-manifest-writer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to C:\Users\mxf63\gitrepo\content-acq-copper-manifest-writer\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[6,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[8,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[10,68] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.service does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[11,68] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.service does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/Logging.java:[4,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[25,19] cannot find symbol
  symbol:   class ProcessProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[26,19] cannot find symbol
  symbol:   class AltRunProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[27,19] cannot find symbol
  symbol:   class JSONWriter
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[6,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[8,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[9,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[10,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[30,19] cannot find symbol
  symbol:   class TANProcessor
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[69,58] cannot find symbol
  symbol:   class EndInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[21,1] cannot find symbol
  symbol:   class ProcessProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[28,19] cannot find symbol
  symbol:   class ProcessProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[29,19] cannot find symbol
  symbol:   class ManifestProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[31,17] cannot find symbol
  symbol:   class StartInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[70,17] cannot find symbol
  symbol:   class StartInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[111,13] cannot find symbol
  symbol:   class StartInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[132,49] cannot find symbol
  symbol:   class StartInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[152,55] cannot find symbol
  symbol:   class EndInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[166,55] cannot find symbol
  symbol:   class EndInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[180,55] cannot find symbol
  symbol:   class EndInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[25,1] cannot find symbol
  symbol:   class ProcessProps
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/Logging.java:[24,40] cannot find symbol
  symbol:   class EndInfo
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.Logging
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Application.java:[4,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Application.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[11,55] cannot find symbol
  symbol: class Manifest
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[16,37] cannot find symbol
  symbol:   class Manifest
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.ManifestSerializer
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[21,27] cannot find symbol
  symbol:   class Manifest
  location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.ManifestSerializer
[INFO] 36 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.606 s
[INFO] Finished at: 2021-07-30T08:56:35-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project content-acq-copper-manifest-writer: Compilation failure: Compilation failure:
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[6,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[8,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[10,68] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.service does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[11,68] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.service does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/Logging.java:[4,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[25,19] cannot find symbol
[ERROR]   symbol:   class ProcessProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[26,19] cannot find symbol
[ERROR]   symbol:   class AltRunProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[27,19] cannot find symbol
[ERROR]   symbol:   class JSONWriter
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[6,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[8,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[9,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[10,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[30,19] cannot find symbol
[ERROR]   symbol:   class TANProcessor
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[69,58] cannot find symbol
[ERROR]   symbol:   class EndInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Controller.java:[21,1] cannot find symbol
[ERROR]   symbol:   class ProcessProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.Controller
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[28,19] cannot find symbol
[ERROR]   symbol:   class ProcessProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[29,19] cannot find symbol
[ERROR]   symbol:   class ManifestProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[31,17] cannot find symbol
[ERROR]   symbol:   class StartInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[70,17] cannot find symbol
[ERROR]   symbol:   class StartInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[111,13] cannot find symbol
[ERROR]   symbol:   class StartInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[132,49] cannot find symbol
[ERROR]   symbol:   class StartInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[152,55] cannot find symbol
[ERROR]   symbol:   class EndInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[166,55] cannot find symbol
[ERROR]   symbol:   class EndInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[180,55] cannot find symbol
[ERROR]   symbol:   class EndInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/repo/CopperRepository.java:[25,1] cannot find symbol
[ERROR]   symbol:   class ProcessProps
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.repo.CopperRepository
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/Logging.java:[24,40] cannot find symbol
[ERROR]   symbol:   class EndInfo
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.Logging
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Application.java:[4,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/Application.java:[5,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.props does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[7,66] package org.cas.eo.contentacq.contentacqcoppermanifestwriter.model does not exist
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[11,55] cannot find symbol
[ERROR]   symbol: class Manifest
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[16,37] cannot find symbol
[ERROR]   symbol:   class Manifest
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.ManifestSerializer
[ERROR] /C:/Users/mxf63/gitrepo/content-acq-copper-manifest-writer/src/main/java/org/cas/eo/contentacq/contentacqcoppermanifestwriter/utils/ManifestSerializer.java:[21,27] cannot find symbol
[ERROR]   symbol:   class Manifest
[ERROR]   location: class org.cas.eo.contentacq.contentacqcoppermanifestwriter.utils.ManifestSerializer
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

每个找不到的“符号”都是一个Kotlin文件,而找不到它们的位置是普通的Java文件。在Kotlin文件引用其他Kotlin文件的情况下,没有明显的错误。请注意,代码在IntelliJ内部运行良好。我注意到,IntelliJ中的符号在一些Kotlin文件中不同,有些文件以".kt“作为后缀,而其他文件则不是:

EN

回答 1

Stack Overflow用户

发布于 2022-03-15 06:47:23

因为我也遇到了这个问题。对我来说,下面这篇文章很有用,解决了我的问题。

Using Kotlin class in Java: Cannot find symbol

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68591639

复制
相关文章
jquery调用javascript方法
本来想找个“优雅”一点的方法,类似C#在调用C++方法时候的Invoke之类的。没找到,后来想想,其实也没必要,直接写就好了,算最优雅了吧。只是少了VS的Intelligence,有点不习惯罢了。
_淡定_
2018/08/24
1.7K0
JavaScript 函数调用
在 HTML 中默认的全局对象是 HTML 页面本身,所以函数是属于 HTML 页面。
陈不成i
2021/07/19
2.2K0
基类派生类多态虚函数?
通常在层次关系的根部有一个基类,其他类则直接或间接的从基类继承而来,这些继承得到的类称为派生类。基类负责定义在层次关系中所有类共同拥有的成员,而每个派生类定义各自特有的成员。
洁洁
2023/10/10
2120
JavaScript类库---JQuery(二)
   一个基础底层函数:jQuery.ajax();  //高级工具函数都会调用此函数;
JQ实验室
2022/02/09
1.3K0
JavaScript类库---JQuery(二)
JavaScript类库---JQuery(一)
Jquery类库定义了一个全局函数:JQuery(); 别名$.是JQuery在全局命名空间中定义的唯一两个变量。返回一个新创建的JQuery对象;
JQ实验室
2022/02/09
4.3K0
JavaScript类库---JQuery(一)
Python 运行JavaScript 调用JavaScript函数
我们在进行python爬虫爬取一些站点时,有时会用到js逆向的操作,这时候就需要python运行javascript来进行操作
Chuanrui 初见之旅
2022/11/14
1.1K0
c++继承 基类 派生类 虚函数
类和类的关系有组合、继承和代理。继承的本质就是代码复用。子类继承父类中的一些东西,父类也称为基类,子类也称为派生类。派生类继承了基类除构造函数以外的所有成员。
用户7886150
2021/02/03
1.1K0
JavaScript——函数定义和调用
定义函数时,函数如果有参数,参数放到小括号里面,函数如果有返回值,返回值通过 return 关键字来返回
落雨
2022/04/07
29.7K0
JavaScript函数和类
函数参数传递时,如果是传值则是传形参。如果是传对象,则是传引用(函数内部对对象的改变对外部是可见的)。
职场亮哥
2020/10/10
9040
匿名函数调用方法_javascript匿名函数
没错,匿名函数简单来说就是普通函数去掉名字,但是他不能单独定义与使用,下面是匿名函数的一些使用场景:
全栈程序员站长
2022/11/14
1.5K0
jquery跨js文件调用函数示例
1 var common_func; (function() { 2 common_func = { 3 load_hot_data: function(AreaCode)
指尖改变世界
2019/10/21
5.3K0
前端进阶: 如何用javascript存储函数?
可视化搭建平台的设计思路往往也是基于上面的过程展开的, 我们需要提供编辑器环境给用户来创建视图和交互, 最终用户保存的产物可能是这样的:
徐小夕
2021/12/04
1.7K0
前端进阶: 如何用javascript存储函数?
onkeyup事件调用JavaScript sendRequest()函数
使用validationMessage div来显示相应于这个输入域Catalog Id的一个校验消息。onkeyup事件调用一个JavaScript sendRequest()函数。这个sendRequest()函数创建一个XMLHttpRequest对象。创建一个XMLHttpRequest对象的过程因浏览器实现的不同而有所区别。如果浏览器支持XMLHttpRequest对象作为一个窗口属性(所有普通的浏览器都是这样的,除了IE 5和IE 6之外),那么,代码可以调用XMLHttpRequest的构造器。如果浏览器把XMLHttpRequest对象实现为一个ActiveXObject对象(就象在IE 5和IE 6中一样),那么,代码可以使用ActiveXObject的构造器。下面的函数将调用一个init()函数,它负责检查并决定要使用的适当的创建方法-在创建和返回对象之前。
用户7718188
2021/10/08
1.1K0
JQuery javascript实现父子页面相互调用
如上图,在iframe子页面的<script>元素中,定义了taskStatus全局变量,如果希望在其父页面中获取该全局变量的值,则可在父页面的<script>元素中新增js脚本如下:
授客
2019/08/21
2K0
JQuery javascript实现父子页面相互调用
基类View
在 Class-based views 源码解析 #1 中我们从宏观层面讨论了 Django 类视图的类继承结构以及命名规律。接下来我们要深入各个具体的类视图,探索其具体的代码实现。本节将分析 base.py 中最重要的的一个类,它也是所有类视图的基类 View 。 之前我们说过,尽管类视图看上去类的种类繁多,但每个类都是各司其职的,且从类的命名就可以很容易地看出这个类的功能。大致可分为如下三个大的功能块,分别由三个类提供对应的方法: 处理 HTTP 请求。根据 HTTP 请求方法的不同做出相应处理。例如同
追梦人物
2018/04/17
9210
【说站】javascript new调用构造函数
以上就是JavaScript new调用构造函数的方法,希望对大家有所帮助。更多Javascript学习指路:Javascript
很酷的站长
2022/11/24
7850
【说站】javascript new调用构造函数
JavaScript重构技巧 — 函数和类
JavaScript 是一种易于学习的编程语言,编写运行并执行某些操作的程序很容易。然而,要编写一段干净的JavaScript 代码是很困难的。
前端小智@大迁世界
2020/06/19
7230
Golang语言--子类调用父类函数
例子:
李海彬
2018/03/21
2.2K0
Golang语言--子类调用父类函数
JavaScript和jQuery添加和删除class类名
element.classList.remove("className") :删除类名
德顺
2019/11/13
2.8K0
基类和派生类
  在面向对象设计中,被定义为包含所有实体共性的class类型,被称为“基类”。-百度百科
全栈程序员站长
2022/09/20
1K0

相似问题

javascript:调用基类函数

32

Javascript调用基类构造函数

12

在JavaScript中调用基类函数-类继承

30

调用基类函数

41

调用基类函数

30
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档