Open jricher opened 2 years ago
Similar issue has been reported in the wro4j project: wro4j/wro4j#1129
The above issue also mentioned a fix by dropping the wro4j version back to 1.9.0. I've tried this older wro4j version with this project and the build now works fine for me.
Alternatively, instead of reverting the wro4j version back to 1.9.0, it can keep the latest version (1.10.1) but with an exclusion on the wro4j-maven-plugin's dependencies to exclude the conflicting org.webjars.npm:minimatch, i.e.
<plugin>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-maven-plugin</artifactId>
<version>1.10.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ro.isdc.wro4j</groupId>
<artifactId>wro4j-extensions</artifactId>
<version>1.10.1</version>
<exclusions>
<exclusion>
<groupId>org.webjars.npm</groupId>
<artifactId>minimatch</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
With the above change, openid-connect-server-webapp
now compiles fine with JDK11, and no problem in running the resulting webapp with mvn jetty:run-war
command.
When trying to build on Java11+, the following error occurs when building the
openid-connect-server-webapp
module: