-
Notifications
You must be signed in to change notification settings - Fork 91
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
Goal 'compile-jsp' uses wrong source/target #1812
Comments
@bmarwell Thank you for bringing this to our attention. We will have to look into this further in order to answer your specific questions. |
@bmarwell Was there a second part to this comment? |
I fixed the formatting to reveal this.. |
Related issue we may want to consider when fixing this issue - #1467 |
Thanks for fixing the formatting. |
I don't think so. I have a fix up for review and can create a snapshot by EOB today. Will you be able to test it @bmarwell ? |
No, it only copies the compiled jsp class files into the application binary.
It compiles with the jsp-2.2 / jsp-2.3 feature from OpenLiberty. |
Sadly no, I don't have access to the source code of that app. I'll check with my colleagues tomorrow if they can do it. |
The fix is in the |
will build and distribute here momentarily |
@bmarwell I saw some feedback in the support case that Couple of points:
|
Hi,
when migrating to 11/17, we caught an error in the CompileJspMojo logic:
ci.maven/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/jsp/CompileJspMojo.java
Line 94 in 9b96fb6
Potential issues
it tries to read "source" from the maven war plugin. However:
maven.compiler.release
seems ignored which is the better option, if set.<jspEngine javaSourceLevel="21" />
or<jspEngine jdkSourceLevel="18" />
While both work, the current docs only mention "javaSourceLevel" to avoid confusion: jdkSourceLevel uses "18" for "1.8" or simply "8" and does not go beyond that.
Recommended changes
a. prefer javaSourceLevel
b. then the next best option is jdkSourceLevel
a. Prefer "release" paramter of Maven compiler Plugin
b. Otherwise use source (as of now)
Other changes
This would need to get fixed first.
** Does the plugin actually update the web.xml file as other plugins do?
** Do JSP files compiled with compile-jsp work on other application servers or does it compile against the OpenLiberty API?
Breaking changes
Other things to be aware of
I found that jsp-level (2.2/2.3) could have been read from server.xml as well. You might want to open another ticket for this.
The text was updated successfully, but these errors were encountered: