问题是 maven 安装 - 找不到符号客户端

problem is maven install - cannot find symbol Client

enter image description here

我正在尝试安装 maven 找不到标志 符号:class 客户端 位置:class com.beeya.googleGOC.jobProviders.impl.CareerJet 我已经在 classpath 中包含了相关的 jar 文件 我也尝试在模块文件夹中手动将 jar 设置为 wildfly 但那个问题没有解决

由于您使用的是第三方 API,它在任何存储库中都不可用,您需要添加本地 jar 依赖项,

<dependency>
    <groupId>com.carrerjet.webservice</groupId>
    <artifactId>api</artifactId>
    <version>1.0</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/src/main/resources/yourJar.jar</systemPath>
</dependency>

或者您可以将本地 jar 添加到本地 maven 存储库,如

mvn install:install-file \
   -Dfile=<path-to-file> \
   -DgroupId=<group-id> \
   -DartifactId=<artifact-id> \
   -Dversion=<version> \
   -Dpackaging=<packaging> \
   -DgeneratePom=true

其中,
< path-to-file >:要加载的文件的物理路径,例如 -> c:\webservice-1.0.jar

< group-id >:文件应该注册的组,例如 -> com.carrerjet.webservice

< artifact-id >:文件的工件名称,例如 -> api

: 文件的版本例如 -> 1.0

: 文件的包装 e.g. -> 罐子

在这种情况下,您需要在 pom 中提供依赖,如下所示,

<dependency>
        <groupId>com.carrerjet.webservice</groupId>
        <artifactId>api</artifactId>
        <version>1.0</version>
</dependency>