缺少工件org.springframeworkboot:spring-boot-starter-data-jpa:jar:2.4.5java(0)

eblbsuwk  于 2021-07-16  发布在  Java
关注(0)|答案(0)|浏览(255)

我正在创建一个spring引导项目并配置依赖项,但是它给了我4个错误
ps:我用的是SpringBoot2.4.3和
->缺少工件org.springframework。boot:spring-boot-starter-data-jpa:jar:2.4.5java(0)

->丢失的工件org.springframework:spring-aspects:jar:5.3.4

->传输org.springframework失败。data:spring-data-jpa:jar:2.4.5 from https://repo.maven.apache.org/maven2 已缓存在本地存储库中,在经过central的更新间隔或强制更新之前,不会重新尝试解析。
结束
->未能转移组织Springframework:spring-aspects:jar:5.3.4 from https://repo.maven.apache.org/maven2 已缓存在本地存储库中,在经过central的更新间隔或强制更新之前,不会重新尝试解析
以下是我的pom.xml:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.3</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>TEST_WEB</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>TEST_WEB</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>15</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-security</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.thymeleaf.extras</groupId>
  34. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-devtools</artifactId>
  39. <scope>runtime</scope>
  40. <optional>true</optional>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.postgresql</groupId>
  44. <artifactId>postgresql</artifactId>
  45. <scope>runtime</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-test</artifactId>
  50. <scope>test</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.security</groupId>
  54. <artifactId>spring-security-test</artifactId>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-web-services</artifactId>
  60. </dependency>
  61. <!-- https://mvnrepository.com/artifact/com.sun.activation/jakarta.activation -->
  62. <dependency>
  63. <groupId>com.sun.activation</groupId>
  64. <artifactId>jakarta.activation</artifactId>
  65. <version>1.2.2</version>
  66. </dependency>
  67. <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
  68. <dependency>
  69. <groupId>org.javassist</groupId>
  70. <artifactId>javassist</artifactId>
  71. <version>3.27.0-GA</version>
  72. </dependency>
  73. <!-- https://mvnrepository.com/artifact/antlr/antlr -->
  74. <dependency>
  75. <groupId>antlr</groupId>
  76. <artifactId>antlr</artifactId>
  77. <version>2.7.7</version>
  78. </dependency>
  79. <!-- https://mvnrepository.com/artifact/org.jboss/jandex -->
  80. <dependency>
  81. <groupId>org.jboss</groupId>
  82. <artifactId>jandex</artifactId>
  83. <version>1.2.3.Final</version>
  84. </dependency>
  85. <!-- https://mvnrepository.com/artifact/com.fasterxml/classmate -->
  86. <dependency>
  87. <groupId>com.fasterxml</groupId>
  88. <artifactId>classmate</artifactId>
  89. <version>1.5.1</version>
  90. </dependency>
  91. <!-- https://mvnrepository.com/artifact/org.dom4j/dom4j -->
  92. <dependency>
  93. <groupId>org.dom4j</groupId>
  94. <artifactId>dom4j</artifactId>
  95. <version>2.1.3</version>
  96. </dependency>
  97. <!-- https://mvnrepository.com/artifact/org.hibernate.common/hibernate-commons-annotations -->
  98. <dependency>
  99. <groupId>org.hibernate.common</groupId>
  100. <artifactId>hibernate-commons-annotations</artifactId>
  101. <version>5.1.2.Final</version>
  102. </dependency>
  103. <!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
  104. <dependency>
  105. <groupId>org.glassfish.jaxb</groupId>
  106. <artifactId>jaxb-runtime</artifactId>
  107. <version>2.3.3-b02</version>
  108. </dependency>
  109. <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons -->
  110. <dependency>
  111. <groupId>org.springframework.data</groupId>
  112. <artifactId>spring-data-commons</artifactId>
  113. <version>2.4.5</version>
  114. </dependency>
  115. <!-- https://mvnrepository.com/artifact/org.springframework/spring-orm -->
  116. <dependency>
  117. <groupId>org.springframework</groupId>
  118. <artifactId>spring-orm</artifactId>
  119. <version>5.3.4</version>
  120. </dependency>
  121. <!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/txw2 -->
  122. <dependency>
  123. <groupId>org.glassfish.jaxb</groupId>
  124. <artifactId>txw2</artifactId>
  125. <version>2.3.3-b02</version>
  126. </dependency>
  127. <!-- https://mvnrepository.com/artifact/org.springframework/spring-tx -->
  128. <dependency>
  129. <groupId>org.springframework</groupId>
  130. <artifactId>spring-tx</artifactId>
  131. <version>5.3.4</version>
  132. </dependency>
  133. <!-- https://mvnrepository.com/artifact/com.sun.istack/istack-commons-runtime -->
  134. <dependency>
  135. <groupId>com.sun.istack</groupId>
  136. <artifactId>istack-commons-runtime</artifactId>
  137. <version>3.0.11</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.boot</groupId>
  141. <artifactId>spring-boot-starter-data-jpa</artifactId>
  142. </dependency>
  143. </dependencies>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>
  153. <?xml version="1.0" encoding="UTF-8"?>
  154. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  155. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  156. <modelVersion>4.0.0</modelVersion>
  157. <parent>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-starter-parent</artifactId>
  160. <version>2.4.3</version>
  161. <relativePath/> <!-- lookup parent from repository -->
  162. </parent>
  163. <groupId>com.example</groupId>
  164. <artifactId>TEST_WEB</artifactId>
  165. <version>0.0.1-SNAPSHOT</version>
  166. <name>TEST_WEB</name>
  167. <description>Demo project for Spring Boot</description>
  168. <properties>
  169. <java.version>15</java.version>
  170. </properties>
  171. <dependencies>
  172. <dependency>
  173. <groupId>org.springframework.boot</groupId>
  174. <artifactId>spring-boot-starter-security</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.springframework.boot</groupId>
  178. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-web</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.thymeleaf.extras</groupId>
  186. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.springframework.boot</groupId>
  190. <artifactId>spring-boot-devtools</artifactId>
  191. <scope>runtime</scope>
  192. <optional>true</optional>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.postgresql</groupId>
  196. <artifactId>postgresql</artifactId>
  197. <scope>runtime</scope>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.springframework.boot</groupId>
  201. <artifactId>spring-boot-starter-test</artifactId>
  202. <scope>test</scope>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.springframework.security</groupId>
  206. <artifactId>spring-security-test</artifactId>
  207. <scope>test</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework.boot</groupId>
  211. <artifactId>spring-boot-starter-web-services</artifactId>
  212. </dependency>
  213. <!-- https://mvnrepository.com/artifact/com.sun.activation/jakarta.activation -->
  214. <dependency>
  215. <groupId>com.sun.activation</groupId>
  216. <artifactId>jakarta.activation</artifactId>
  217. <version>1.2.2</version>
  218. </dependency>
  219. <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
  220. <dependency>
  221. <groupId>org.javassist</groupId>
  222. <artifactId>javassist</artifactId>
  223. <version>3.27.0-GA</version>
  224. </dependency>
  225. <!-- https://mvnrepository.com/artifact/antlr/antlr -->
  226. <dependency>
  227. <groupId>antlr</groupId>
  228. <artifactId>antlr</artifactId>
  229. <version>2.7.7</version>
  230. </dependency>
  231. <!-- https://mvnrepository.com/artifact/org.jboss/jandex -->
  232. <dependency>
  233. <groupId>org.jboss</groupId>
  234. <artifactId>jandex</artifactId>
  235. <version>1.2.3.Final</version>
  236. </dependency>
  237. <!-- https://mvnrepository.com/artifact/com.fasterxml/classmate -->
  238. <dependency>
  239. <groupId>com.fasterxml</groupId>
  240. <artifactId>classmate</artifactId>
  241. <version>1.5.1</version>
  242. </dependency>
  243. <!-- https://mvnrepository.com/artifact/org.dom4j/dom4j -->
  244. <dependency>
  245. <groupId>org.dom4j</groupId>
  246. <artifactId>dom4j</artifactId>
  247. <version>2.1.3</version>
  248. </dependency>
  249. <!-- https://mvnrepository.com/artifact/org.hibernate.common/hibernate-commons-annotations -->
  250. <dependency>
  251. <groupId>org.hibernate.common</groupId>
  252. <artifactId>hibernate-commons-annotations</artifactId>
  253. <version>5.1.2.Final</version>
  254. </dependency>
  255. <!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
  256. <dependency>
  257. <groupId>org.glassfish.jaxb</groupId>
  258. <artifactId>jaxb-runtime</artifactId>
  259. <version>2.3.3-b02</version>
  260. </dependency>
  261. <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons -->
  262. <dependency>
  263. <groupId>org.springframework.data</groupId>
  264. <artifactId>spring-data-commons</artifactId>
  265. <version>2.4.5</version>
  266. </dependency>
  267. <!-- https://mvnrepository.com/artifact/org.springframework/spring-orm -->
  268. <dependency>
  269. <groupId>org.springframework</groupId>
  270. <artifactId>spring-orm</artifactId>
  271. <version>5.3.4</version>
  272. </dependency>
  273. <!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/txw2 -->
  274. <dependency>
  275. <groupId>org.glassfish.jaxb</groupId>
  276. <artifactId>txw2</artifactId>
  277. <version>2.3.3-b02</version>
  278. </dependency>
  279. <!-- https://mvnrepository.com/artifact/org.springframework/spring-tx -->
  280. <dependency>
  281. <groupId>org.springframework</groupId>
  282. <artifactId>spring-tx</artifactId>
  283. <version>5.3.4</version>
  284. </dependency>
  285. <!-- https://mvnrepository.com/artifact/com.sun.istack/istack-commons-runtime -->
  286. <dependency>
  287. <groupId>com.sun.istack</groupId>
  288. <artifactId>istack-commons-runtime</artifactId>
  289. <version>3.0.11</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.springframework.boot</groupId>
  293. <artifactId>spring-boot-starter-data-jpa</artifactId>
  294. </dependency>
  295. </dependencies>
  296. <build>
  297. <plugins>
  298. <plugin>
  299. <groupId>org.springframework.boot</groupId>
  300. <artifactId>spring-boot-maven-plugin</artifactId>
  301. </plugin>
  302. </plugins>
  303. </build>
  304. </project>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题