spring cloud Alibaba nacos 整合Neo4j pom 配置
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <groupId>com.huajun</groupId> <artifactId>huajun-modules</artifactId> <version>3.1.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>huajun-modules-kgbuilder</artifactId> <description> huajun-kgbuilder知识图谱构建工具 </description> <dependencies> <!-- SpringCloud Alibaba Nacos --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> <!-- SpringCloud Alibaba Nacos Config --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> </dependency> <!-- SpringCloud Alibaba Sentinel --> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> </dependency> <!-- SpringBoot Actuator --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!-- Swagger UI --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>${swagger.fox.version}</version> </dependency> <!-- Mysql Connector --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <!-- HuaJun Common DataSource --> <dependency> <groupId>com.huajun</groupId> <artifactId>huajun-common-datasource</artifactId> </dependency> <!-- HuaJun Common DataScope --> <dependency> <groupId>com.huajun</groupId> <artifactId>huajun-common-datascope</artifactId> </dependency> <!-- HuaJun Common Log --> <dependency> <groupId>com.huajun</groupId> <artifactId>huajun-common-log</artifactId> </dependency> <!-- HuaJun Common Swagger --> <dependency> <groupId>com.huajun</groupId> <artifactId>huajun-common-swagger</artifactId> </dependency> <!-- HuaJun Common job --> <!-- <dependency>--> <!-- <groupId>com.huajun</groupId>--> <!-- <artifactId>huajun-common-job</artifactId>--> <!-- </dependency>--> <!-- HuaJun Common rabbitmq --> <!-- <dependency>--> <!-- <groupId>com.huajun</groupId>--> <!-- <artifactId>huajun-common-rabbitmq</artifactId>--> <!-- </dependency>--> <!-- Java-WebSocket --> <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> <!--于吉利 增加 --> <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all --> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.7.9</version> </dependency> <!--于吉利 增加 --> <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-neo4j --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-neo4j</artifactId> <version>2.5.3</version> </dependency> <!--于吉利 增加 --> <!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-ogm-bolt-driver --> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-bolt-driver</artifactId> <version>3.2.25</version> </dependency> <!--于吉利 增加 --> <!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-ogm-embedded-driver --> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-embedded-driver</artifactId> <version>3.2.25</version> </dependency> <!--于吉利 增加 --> <!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-ogm-http-driver --> <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-http-driver</artifactId> <version>3.2.25</version> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
在子项目pom中添加