Java 大量依赖关系指向:找不到类[org.neo4j.ogm.session.SessionFactory],并且无法将其添加到pom.xml,因为找不到

Java 大量依赖关系指向:找不到类[org.neo4j.ogm.session.SessionFactory],并且无法将其添加到pom.xml,因为找不到,java,spring,spring-boot,maven,neo4j,Java,Spring,Spring Boot,Maven,Neo4j,它的聊天机器人在电报api上。想添加注册和用户bd。全部由一些指南完成。写入时导入没有错误。但在运行中开始出现很多错误: 第一个是:原因:java.lang.IllegalArgumentException:找不到类[org.springframework.data.mongodb.MongoDbFactory] 我加上去了 然后:org.springframework.data.jdbc.repository.config.jdbcprepositoryconfigextensio——它也被添

它的聊天机器人在电报api上。想添加注册和用户bd。全部由一些指南完成。写入时导入没有错误。但在运行中开始出现很多错误:

第一个是:原因:java.lang.IllegalArgumentException:找不到类[org.springframework.data.mongodb.MongoDbFactory] 我加上去了

然后:org.springframework.data.jdbc.repository.config.jdbcprepositoryconfigextensio——它也被添加了

然后:org.neo4j/neo4j-ogm也被添加。。。aa这就是为什么我到了一个什么都不起作用的地步,因为存在[main]o.s.boot.SpringApplication:应用程序运行失败

org.springframework.beans.factory.BeanDefinitionStoreException:解析配置类[Main]失败;嵌套异常是java.lang.IllegalArgumentException:找不到类[org.neo4j.ogm.session.SessionFactory]-并且Maven上没有“SessionFactory”

我应该添加什么来获得帮助

我的主要意见是:

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.telegram.telegrambots.ApiContextInitializer;

@SpringBootApplication
@EnableScheduling
public class Main {
    public static void main(String[] args) {
        ApiContextInitializer.init();
        SpringApplication.run(Main.class, args);
    }
}
My pom.xml:


<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>

 <groupId>WTG_tgbot</groupId>
 <artifactId>WTG_tgbot</artifactId>
 <version>1.0-SNAPSHOT</version>
 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <source>8</source>
         <target>8</target>
       </configuration>
     </plugin>
   </plugins>
 </build>

 <dependencies>
   <dependency>
     <groupId>org.springframework</groupId>
     <artifactId>spring-context-support</artifactId>
     <version>5.2.3.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

  <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons -->
   <dependency>
     <groupId>org.springframework.data</groupId>
     <artifactId>spring-data-commons</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

   <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-mongodb -->
   <dependency>
     <groupId>org.springframework.data</groupId>
     <artifactId>spring-data-mongodb</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

   <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jdbc -->
   <dependency>
     <groupId>org.springframework.data</groupId>
     <artifactId>spring-data-jdbc</artifactId>
     <version>1.1.4.RELEASE</version>
   </dependency>

   <!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-ogm -->
   <dependency>
     <groupId>org.neo4j</groupId>
     <artifactId>neo4j-ogm</artifactId>
     <version>3.2.8</version>
     <type>pom</type>
   </dependency>

   <dependency>
     <groupId>org.telegram</groupId>
     <artifactId>telegrambots-spring-boot-starter</artifactId>
     <version>4.6</version>
   </dependency>

   <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-data-jpa</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-log4j2</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-mail</artifactId>
     <version>2.2.4.RELEASE</version>
   </dependency>

   <dependency>
     <groupId>com.h2database</groupId>
     <artifactId>h2</artifactId>
     <version>1.4.200</version>
   </dependency>

   <!-- https://mvnrepository.com/artifact/commons-validator/commons-validator -->
   <dependency>
     <groupId>commons-validator</groupId>
     <artifactId>commons-validator</artifactId>
     <version>1.6</version>
   </dependency>

   <dependency>
     <groupId>oro</groupId>
     <artifactId>oro</artifactId>
     <version>2.0.8</version>
   </dependency>

     <dependency>
       <groupId>com.sun.mail</groupId>
       <artifactId>javax.mail</artifactId>
       <version>1.6.2</version>
     </dependency>
 </dependencies>
</project>

4.0.0
风力发电机组
风力发电机组
1.0-快照
org.apache.maven.plugins
maven编译器插件
8.
8.
org.springframework
spring上下文支持
5.2.3.1发布
org.springframework.boot
弹簧靴起动器
2.2.4.1发布
org.springframework.data
spring数据共享
2.2.4.1发布
org.springframework.data
spring数据mongodb
2.2.4.1发布
org.springframework.data
spring数据jdbc
1.1.4.1发布
org.neo4j
neo4j ogm
3.2.8
聚甲醛
组织电报
弹簧靴起动器
4.6
org.springframework.boot
spring引导启动器数据jpa
2.2.4.1发布
org.springframework.boot
spring-boot-starter-log4j2
2.2.4.1发布
org.springframework.boot
春季启动邮件
2.2.4.1发布
com.h2数据库
氢
1.4.200
通用验证器
通用验证器
1.6
奥罗
奥罗
2.0.8
com.sun.mail
javax.mail
1.6.2

将.jar文件添加到外部库中?*.jar文件是什么?10/10@C2H50H maven上没有“会话工厂”类。我应该补充什么?