Skip to content

Fixes #219 - ThymeleafViewResolver and ThymeleafReactiveViewResolver … #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DamianFekete
Copy link
Contributor

…expose redirect prefix as bean name

…Resolver expose redirect prefix as bean name
@DamianFekete
Copy link
Contributor Author

@danielfernandez , I've recreated #221 without the POM change (I can't compile it without the pom.xml change).

please note that we would need you to explicitly agree and accept the terms in https://github.com/thymeleaf/thymeleaf-spring/blob/5f6bea3bf24185ba3cb823ea5593a93db3678232/CONTRIBUTING.markdown (a comment here will suffice)

I agree and accept the linked Terms and Conditions.

@DamianFekete DamianFekete marked this pull request as ready for review November 30, 2020 14:08
@danielfernandez
Copy link
Member

Thymeleaf 3.0.12-SNAPSHOT is actually compiled with JDK11 (in fact Thymeleaf has been built using JDK11 since 3.0.10)… are you trying to compile the current 3.0-dev branch or an older version? If it is 3.0-dev, could you show me the errors you are receiving, and specify the JDK build? (the output of mvn -version will do)

@danielfernandez danielfernandez merged commit 251e7ae into thymeleaf:3.0-master Dec 3, 2020
@DamianFekete
Copy link
Contributor Author

Thymeleaf 3.0.12-SNAPSHOT is actually compiled with JDK11 (in fact Thymeleaf has been built using JDK11 since 3.0.10)… are you trying to compile the current 3.0-dev branch or an older version? If it is 3.0-dev, could you show me the errors you are receiving, and specify the JDK build? (the output of mvn -version will do)

@danielfernandez, sorry, I said compile (as I built the package last year), but I should have said package.

mvn -version (I've also tried it with Oracle's JDK 11.0.5)
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: C:\tools\mvn\bin\..
Java version: 11.0.9.1, vendor: Amazon.com Inc., runtime: C:\Program Files\Amazon Corretto\jdk11.0.9_12
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
mvn package on the branch 3.0-master => Failure for maven-javadoc-plugin
[INFO] --- maven-javadoc-plugin:3.1.0:jar (default) @ thymeleaf-spring5 ---
[INFO] 
Loading source files for package org.thymeleaf.spring5.context...
Loading source files for package org.thymeleaf.spring5.context.webflux...
...
Constructing Javadoc information...
Standard Doclet version 11.0.9.1
Building tree for all the packages and classes...
Generating C:\dev\icc-daimler\thymeleaf-spring\thymeleaf-spring5\target\apidocs\org\thymeleaf\spring5\ISpringTemplateEngine.html...
Generating C:\dev\icc-daimler\thymeleaf-spring\thymeleaf-spring5\target\apidocs\org\thymeleaf\spring5\ISpringWebFluxTemplateEngine.html...
...
Generating C:\dev\icc-daimler\thymeleaf-spring\thymeleaf-spring5\target\apidocs\org\thymeleaf\spring5\view\ThymeleafViewResolver.html...
Generating C:\dev\icc-daimler\thymeleaf-spring\thymeleaf-spring5\target\apidocs\org\thymeleaf\spring5\view\reactive\ThymeleafReactiveView.html...
1 error
100 warnings
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.297 s
[INFO] Finished at: 2020-12-04T09:47:48+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (default) on project thymeleaf-spring5: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1 - javadoc: warning - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
[ERROR] javadoc: warning - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
...
[ERROR] javadoc: warning - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
[ERROR] javadoc: error - An internal exception has occurred. 
[ERROR] 	(com.sun.tools.javac.code.Symbol$CompletionFailure: class file for reactor.core.publisher.Mono not found)
[ERROR] Please file a bug against the javadoc tool via the Java bug reporting page
[ERROR] (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
[ERROR] for duplicates. Include error messages and the following diagnostic in your report. Thank you.
[ERROR] com.sun.tools.javac.code.Symbol$CompletionFailure: class file for reactor.core.publisher.Mono not found
[ERROR] 
[ERROR] Command line was: "C:\Program Files\Amazon Corretto\jdk11.0.9_12\bin\javadoc.exe" --no-module-directories @options @packages

@danielfernandez
Copy link
Member

Maybe this is some issue in Amazon Coretto's javadoc tool, that perhaps was also present in 11.0.5 for Oracle's JDK.

Thymeleaf's official artifacts are currently being built (including javadoc) with:

Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z)
Maven home: /home/releases/Software/apache-maven-3.5.3
Java version: 11.0.9, vendor: AdoptOpenJDK
Java home: /home/releases/Software/jdk-11.0.9+11
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-1029-aws", arch: "amd64", family: "unix"

And in my local system:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 11.0.9.1, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_ES, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.7", arch: "x86_64", family: "mac"

Compilation, javadoc and package work perfectly fine in both environments. Maven 3.5.3 is used for official releases instead of 3.6.3 because Maven 3.6 has a nasty bug that makes release deploying hang during HTTP transfer to the central repos.

Maybe you could try with a different JDK build like AdoptOpenJDK's?

@DamianFekete
Copy link
Contributor Author

@danielfernandez , yeah, the last 3.0-master builds correctly.
I was on the 3.0-master but I haven't pulled the recent changes from it. The problem was fixed last month in

Fixed configuration for the maven-javadoc-plugin
0bcdc176 Daniel Fernández on 15.11.2020 at 14:25

in fact Thymeleaf has been built using JDK11 since 3.0.10

I'm not sure how this worked before, but it doesn't matter anymore.

Thanks for your time and for merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thymeleaf's redirect view resolver + AspectJ leaks memory
2 participants