tmatyashovsky / java9-springboot

Demo application to evaluate Java 9 modules integration with Spring Boot
20 stars 5 forks source link

Getting compiling error while runnig mvn install #2

Open jsaraiya1 opened 7 years ago

jsaraiya1 commented 7 years ago

[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] the unnamed module reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] the unnamed module reads package javax.el from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] the unnamed module reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] the unnamed module reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] the unnamed module reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.expression reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.expression reads package javax.el from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] module spring.expression reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.expression reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.expression reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] module spring.web reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.web reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.web reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.web reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.web reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.web reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.web reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.web reads package javax.el from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] module spring.web reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.web reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.web reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] module spring.aop reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.aop reads package javax.el from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] module spring.aop reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.aop reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.aop reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] module spring.context reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.context reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.context reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.context reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.context reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.context reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.context reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.context reads package javax.el from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] module spring.context reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.context reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.context reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] module spring.jcl reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.annotation from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.annotation.sql from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.annotation.security from both javax.annotation.api and tomcat.embed.core [ERROR] module spring.jcl reads package javax.el from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package org.apache.el.util from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package org.apache.el.stream from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package org.apache.el.parser from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package org.apache.el.lang from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package org.apache.el from both tomcat.embed.el and apache.el [ERROR] module spring.jcl reads package javax.websocket.server from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.jcl reads package javax.websocket from both tomcat.embed.websocket and javax.websocket.api [ERROR] module spring.jcl reads package javax.annotation from both javax.annotation.api and java.xml.ws.annotation [ERROR] module spring.boot.starter.web reads package javax.servlet from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.boot.starter.web reads package javax.servlet.http from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.boot.starter.web reads package javax.servlet.descriptor from both javax.servlet.api and tomcat.embed.core [ERROR] module spring.boot.starter.web reads package javax.servlet.annotation from both javax.servlet.api and tomcat.embed.core [INFO] 100 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] java-9-modules ..................................... SUCCESS [ 10.264 s] [INFO] service ............................................ SUCCESS [ 10.543 s] [INFO] api ................................................ FAILURE [ 41.306 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------

ChrisCooney commented 7 years ago

Been having a play and got the exact same thing! I suspect the interdependent nature of Spring is not mixing nicely with the Java 9 module dependency requirements. A lot of the conventional wisdom I've seen is to exclude various libraries, but I feel the exclusions would get ridiculously out of hand in this case.

ChrisCooney commented 7 years ago

The solution for this, for me, was to change the versions to stop using latest snapshot dependencies and start using the latest release version, version 1.5.3.RELEASE.

raskyer commented 7 years ago

Any news on this subject ? except back to RELEASE version ?

jsaraiya1 commented 7 years ago

I have another project that works fine. Very much on the same concept. Check it out https://github.com/jaysara/JigsawTest

raskyer commented 7 years ago

My bad @jsaraiya1 ! Amazing, it works ! Thank you !