Maven找不到包

Maven can't find a package

我创建了一个 job talend,然后将其导出为 jar。

添加了 class 的 jar。 (构建=>构建配置=>库=>添加外部jar) 但是,当我尝试构建项目时,出现以下错误:

package demo.kosecleaninfileuploading_0_1 does not exist
package demo.kosecleaninfileuploading_0_1.contexts does not exist

我错过了什么? (我正在使用 eclipse,Jhipster(Spring-boot))

谢谢!

请在 pom.xml

中添加您的外部 jar 作为依赖项
    <dependency>
       <groupId>"external-jar-group-id"</groupId>
       <artifactId>"external-jar-artifact-id"</artifactId>
       <version>"external jar version"</version>
       <scope>system</scope>
       <systemPath>${basedir}/lib/"external_jar_file_name.jar"</systemPath>
    </dependency>

并通过添加此

将其包含在系统范围内
     <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
        <includeSystemScope>true</includeSystemScope>
        </configuration>
     </plugin>