Unable to compile simple Java 10 / Java 11 project with Maven

前端 未结 7 831
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 14:31

I have a trivial Maven project:

src
└── main
    └── java
        └── module-info.java
pom.xml

pom.xml:

org.         


        
相关标签:
7条回答
  • 2020-11-22 15:01

    Alright so for me nothing worked.
    I was using spring boot with hibernate. The spring boot version was ~2.0.1 and I would keep get this error and null pointer exception upon compilation. The issue was with hibernate that needed a version bump. But after that I had some other issues that seemed like the annotation processor was not recognised so I decided to just bump spring from 2.0.1 to 2.1.7-release and everything worked as expected.

    You still need to add the above plugin tough
    Hope it helps!

    0 讨论(0)
提交回复
热议问题