Spring Boot 2.0 Neo4j Omg 3.0兼容Jetty版本

Spring Boot 2.0 Neo4j Omg 3.0兼容Jetty版本,第1张

Spring Boot 2.0 Neo4j Omg 3.0兼容Jetty版本

Jetty Internal类

org.eclipse.jetty.server.SessionManager
存在于Eclipse Jetty
7.0.x至9.3.x的所有版本中。

http://search.maven.org/#search%7Cga%7C1%7Cfc%3A%22org.eclipse.jetty.server.SessionManager%22

该类

org.eclipse.jetty.server.SessionManager
已在9.4.x中删除,这是Session处理的主要版本重构的一部分。

至于…

Non-resolvable import POM: Failure to find org.eclipse.jetty:jetty-bom:pom:9.2.9.v20150224 ...

jetty-bom
自从Jetty 9.3.19.v20170502起,该工件就一直存在,处于各种不良和不受支持的状态,直到在Jetty
9.4.7.v20180619中为Spring-boot用户最终对其进行了改进。

让我们看一下github.com/nkumarclm/springboot2.0_neo4jogm3.0的原始依赖树

(这是原始树,没有本地指定的版本)

$ mvn dependency:tree[INFO] Scanning for projects...[INFO][INFO] ------------------------------------------------------------------------[INFO] Building demo 0.0.1-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO][INFO] --- maven-dependency-plugin:3.0.1:tree (default-cli) @ demo ---[INFO] com.example:demo:jar:0.0.1-SNAPSHOT[INFO] +- org.springframework.boot:spring-boot-starter-data-neo4j:jar:2.0.0.RELEASE:compile[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.0.0.RELEASE:compile[INFO] |  |  +- org.springframework.boot:spring-boot:jar:2.0.0.RELEASE:compile[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.0.RELEASE:compile[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.0.RELEASE:compile[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile[INFO] |  |  |  |  - org.apache.logging.log4j:log4j-api:jar:2.10.0:compile[INFO] |  |  |  - org.slf4j:jul-to-slf4j:jar:1.7.25:compile[INFO] |  |  +- javax.annotation:javax.annotation-api:jar:1.3.2:compile[INFO] |  |  - org.yaml:snakeyaml:jar:1.19:runtime[INFO] |  - org.springframework.data:spring-data-neo4j:jar:5.0.5.RELEASE:compile[INFO] |     +- org.springframework:spring-tx:jar:5.0.4.RELEASE:compile[INFO] |     +- org.springframework:spring-context:jar:5.0.4.RELEASE:compile[INFO] |     |  +- org.springframework:spring-aop:jar:5.0.4.RELEASE:compile[INFO] |     |  - org.springframework:spring-expression:jar:5.0.4.RELEASE:compile[INFO] |     +- org.springframework:spring-beans:jar:5.0.4.RELEASE:compile[INFO] |     +- org.springframework.data:spring-data-commons:jar:2.0.5.RELEASE:compile[INFO] |     - org.slf4j:slf4j-api:jar:1.7.25:compile[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.0.RELEASE:test[INFO] |  +- org.springframework.boot:spring-boot-test:jar:2.0.0.RELEASE:test[INFO] |  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.0.RELEASE:test[INFO] |  +- com.jayway.jsonpath:json-path:jar:2.4.0:test[INFO] |  |  - net.minidev:json-smart:jar:2.3:test[INFO] |  |     - net.minidev:accessors-smart:jar:1.2:test[INFO] |  |        - org.ow2.asm:asm:jar:5.0.4:test[INFO] |  +- junit:junit:jar:4.12:test[INFO] |  +- org.assertj:assertj-core:jar:3.9.1:test[INFO] |  +- org.mockito:mockito-core:jar:2.15.0:test[INFO] |  |  +- net.bytebuddy:byte-buddy:jar:1.7.10:test[INFO] |  |  +- net.bytebuddy:byte-buddy-agent:jar:1.7.10:test[INFO] |  |  - org.objenesis:objenesis:jar:2.6:test[INFO] |  +- org.hamcrest:hamcrest-core:jar:1.3:test[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test[INFO] |  +- org.skyscreamer:jsonassert:jar:1.5.0:test[INFO] |  |  - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test[INFO] |  +- org.springframework:spring-core:jar:5.0.4.RELEASE:compile[INFO] |  |  - org.springframework:spring-jcl:jar:5.0.4.RELEASE:compile[INFO] |  +- org.springframework:spring-test:jar:5.0.4.RELEASE:test[INFO] |  - org.xmlunit:xmlunit-core:jar:2.5.1:test[INFO] +- org.projectlombok:lombok:jar:1.16.20:provided[INFO] +- org.prehaus.janino:janino:jar:3.0.8:compile[INFO] |  - org.prehaus.janino:commons-compiler:jar:3.0.8:compile[INFO] +- org.neo4j.driver:neo4j-java-driver:jar:1.6.1:compile[INFO] - org.neo4j:neo4j-ogm-test:jar:3.1.0:test[INFO]    +- org.neo4j:neo4j-ogm-http-driver:jar:3.1.0:test[INFO]    |  +- org.neo4j:neo4j-ogm-api:jar:3.1.0:compile[INFO]    |  |  - com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile[INFO]    |  |     +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile[INFO]    |  |     - com.fasterxml.jackson.core:jackson-core:jar:2.9.4:compile[INFO]    |  +- org.apache.httpcomponents:httpclient:jar:4.5.5:test[INFO]    |  - commons-io:commons-io:jar:2.4:compile[INFO]    +- org.neo4j:neo4j-ogm-core:jar:3.1.0:compile[INFO]    |  +- org.apache.commons:commons-lang3:jar:3.7:compile[INFO]    |  - io.github.lukehutch:fast-classpath-scanner:jar:2.7.4:compile[INFO]    +- org.neo4j:neo4j-ogm-embedded-driver:jar:3.1.0:test[INFO]    +- org.neo4j:neo4j-ogm-bolt-driver:jar:3.1.0:compile[INFO]    +- ch.qos.logback:logback-classic:jar:1.2.3:compile[INFO]    |  - ch.qos.logback:logback-core:jar:1.2.3:compile[INFO]    +- com.google.guava:guava:jar:21.0:test[INFO]    +- org.neo4j.test:neo4j-harness:jar:3.2.9:test[INFO]    |  +- org.neo4j:neo4j:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-lucene-index:jar:3.2.9:test[INFO]    |  |  |  +- org.apache.lucene:lucene-analyzers-common:jar:5.5.0:test[INFO]    |  |  |  +- org.apache.lucene:lucene-core:jar:5.5.0:test[INFO]    |  |  |  +- org.apache.lucene:lucene-queryparser:jar:5.5.0:test[INFO]    |  |  |  - org.apache.lucene:lucene-precs:jar:5.5.0:test[INFO]    |  |  +- org.neo4j:neo4j-graph-algo:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-udc:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-cypher:jar:3.2.9:test[INFO]    |  |  |  +- org.scala-lang:scala-library:jar:2.11.12:test[INFO]    |  |  |  +- org.scala-lang:scala-reflect:jar:2.11.12:test[INFO]    |  |  |  +- org.neo4j:neo4j-graph-matching:jar:3.1.3:test[INFO]    |  |  |  +- org.neo4j:neo4j-pregen:jar:3.2.9:test[INFO]    |  |  |  +- org.neo4j:neo4j-cypher-compiler-2.3:jar:2.3.11:test[INFO]    |  |  |  |  +- org.neo4j:neo4j-cypher-frontend-2.3:jar:2.3.11:test[INFO]    |  |  |  |  - com.googlepre.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4.2:test[INFO]    |  |  |  +- org.neo4j:neo4j-cypher-compiler-3.1:jar:3.1.6:test[INFO]    |  |  |  |  +- org.neo4j:neo4j-cypher-frontend-3.1:jar:3.1.6:test[INFO]    |  |  |  |  - com.github.ben-manes.caffeine:caffeine:jar:2.6.2:test[INFO]    |  |  |  +- org.neo4j:neo4j-cypher-compiler-3.2:jar:3.2.9:test[INFO]    |  |  |  |  +- org.neo4j:neo4j-cypher-frontend-3.2:jar:3.2.9:test[INFO]    |  |  |  |  - org.neo4j:neo4j-cypher-ir-3.2:jar:3.2.9:test[INFO]    |  |  |  +- org.parboiled:parboiled-scala_2.11:jar:1.1.7:test[INFO]    |  |  |  |  - org.parboiled:parboiled-core:jar:1.1.7:test[INFO]    |  |  |  - net.sf.opencsv:opencsv:jar:2.3:test[INFO]    |  |  +- org.neo4j:neo4j-jmx:jar:3.2.9:test[INFO]    |  |  - org.neo4j:neo4j-consistency-check:jar:3.2.9:test[INFO]    |  +- org.neo4j.app:neo4j-server:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j:pom:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-security:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-dbms:jar:3.2.9:test[INFO]    |  |  |  +- org.neo4j:neo4j-import-tool:jar:3.2.9:test[INFO]    |  |  |  - org.apache.commons:commons-compress:jar:1.12:test[INFO]    |  |  +- org.neo4j:neo4j-command-line:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:server-api:jar:3.2.9:test[INFO]    |  |  |  - org.neo4j.3rdparty.javax.ws.rs:jsr311-api:jar:1.1.2.r612:test[INFO]    |  |  +- org.neo4j:neo4j-bolt:jar:3.2.9:test[INFO]    |  |  |  - io.netty:netty-all:jar:4.1.22.Final:test[INFO]    |  |  +- org.neo4j.client:neo4j-browser:jar:3.1.4:test[INFO]    |  |  +- org.neo4j:neo4j-shell:jar:3.2.9:test[INFO]    |  |  |  - jline:jline:jar:2.12:test[INFO]    |  |  +- org.eclipse.jetty:jetty-server:jar:9.4.8.v20171121:test[INFO]    |  |  |  +- javax.servlet:javax.servlet-api:jar:3.1.0:test[INFO]    |  |  |  +- org.eclipse.jetty:jetty-http:jar:9.4.8.v20171121:test[INFO]    |  |  |  |  - org.eclipse.jetty:jetty-util:jar:9.4.8.v20171121:test[INFO]    |  |  |  - org.eclipse.jetty:jetty-io:jar:9.4.8.v20171121:test[INFO]    |  |  +- org.eclipse.jetty:jetty-webapp:jar:9.4.8.v20171121:test[INFO]    |  |  |  +- org.eclipse.jetty:jetty-xml:jar:9.4.8.v20171121:test[INFO]    |  |  |  - org.eclipse.jetty:jetty-servlet:jar:9.4.8.v20171121:test[INFO]    |  |  |     - org.eclipse.jetty:jetty-security:jar:9.4.8.v20171121:test[INFO]    |  |  +- com.sun.jersey:jersey-server:jar:1.19:test[INFO]    |  |  +- com.sun.jersey:jersey-servlet:jar:1.19:test[INFO]    |  |  +- commons-configuration:commons-configuration:jar:1.10:test[INFO]    |  |  |  +- commons-lang:commons-lang:jar:2.6:test[INFO]    |  |  |  - commons-logging:commons-logging:jar:1.1.1:test[INFO]    |  |  +- org.prehaus.jackson:jackson-jaxrs:jar:1.9.13:test[INFO]    |  |  |  +- org.prehaus.jackson:jackson-core-asl:jar:1.9.13:test[INFO]    |  |  |  - org.prehaus.jackson:jackson-mapper-asl:jar:1.9.13:test[INFO]    |  |  +- org.mozilla:rhino:jar:1.7R4:test[INFO]    |  |  +- org.bouncycastle:bcprov-jdk15on:jar:1.53:test[INFO]    |  |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.53:test[INFO]    |  |  - com.sun.jersey.contribs:jersey-multipart:jar:1.19:test[INFO]    |  |     - org.jvnet.mimepull:mimepull:jar:1.9.3:test[INFO]    |  +- org.neo4j:neo4j-common:test-jar:tests:3.2.9:test[INFO]    |  +- org.neo4j:neo4j-kernel:test-jar:tests:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-graphdb-api:jar:3.2.9:test[INFO]    |  |  |  - org.neo4j:neo4j-resource:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-common:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-collections:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-primitive-collections:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-io:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-csv:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-logging:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-lucene-upgrade:jar:3.2.9:test[INFO]    |  |  |  - org.apache.lucene:lucene-backward-precs:jar:5.5.0:test[INFO]    |  |  +- org.neo4j:neo4j-configuration:jar:3.2.9:test[INFO]    |  |  +- org.neo4j:neo4j-index:jar:3.2.9:test[INFO]    |  |  - org.neo4j:neo4j-ssl:jar:3.2.9:test[INFO]    |  +- org.neo4j:neo4j-io:test-jar:tests:3.2.9:test[INFO]    |  |  - org.neo4j:neo4j-unsafe:jar:3.2.9:test[INFO]    |  +- com.sun.jersey:jersey-client:jar:1.19:test[INFO]    |  |  - com.sun.jersey:jersey-core:jar:1.19:test[INFO]    |  +- org.neo4j.app:neo4j-server:test-jar:tests:3.2.9:test[INFO]    |  +- commons-prec:commons-prec:jar:1.11:compile[INFO]    |  +- org.apache.httpcomponents:httpcore:jar:4.4.9:test[INFO]    |  - org.neo4j:neo4j-kernel:jar:3.2.9:test[INFO]    - org.slf4j:jcl-over-slf4j:jar:1.7.25:test[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS[INFO] ------------------------------------------------------------------------[INFO] Total time: 2.939 s[INFO] Finished at: 2018-07-03T12:58:10Z[INFO] Final Memory: 26M/88M[INFO] ------------------------------------------------------------------------

从这里我们得知父母

org.springframework.boot:spring-boot-starter-parent:2.0.0.RELEASE
对…有要求
org.eclipse.jetty:jetty-server:jar:9.4.8.v20171121

注意:Jetty版本控制(自1995年起)是

<servlet_support>.<major_version>.<minor_version>

所以你有了:

  • spring-boot,需要Jetty主版本9.4.x
  • neo4jogm需要Jetty主版本9.2.x

那是不兼容的。

项目github.com/nkumarclm/springboot2.0_neo4jogm3.0无法以其定义/配置的方式运行。似乎应该升级neo4jogm以支持Jetty
9.4.x,或者应该将spring-boot降级以支持Jetty9.2.x。

简而言之,您有一个更大的问题,那就是选择正确版本的Jetty。



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5441707.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存