-
Notifications
You must be signed in to change notification settings - Fork 560
WW-4864 Upgrade to the latest Jetty plugin in all examples #16
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
lukaszlenart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left few comments but this is good 💪
| <webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory> | ||
| <webAppConfig> | ||
| <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> | ||
| </webAppConfig> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to add instead
<webApp>
<contextPath>/${project.artifactId}</contextPath>
</webApp>| <webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory> | ||
| <webAppConfig> | ||
| <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> | ||
| </webAppConfig> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, what do you think about adding:
<webApp>
<contextPath>/${project.artifactId}</contextPath>
</webApp>
json/pom.xml
Outdated
| <systemProperty> | ||
| <name>xwork.loggerFactory</name> | ||
| <value>com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory</value> | ||
| </systemProperty> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property can be removed as well
| <webAppSourceDirectory>${basedir}/src/main/webapp/</webAppSourceDirectory> | ||
| <webAppConfig> | ||
| <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> | ||
| </webAppConfig> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here as above
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <struts2.version>2.5.12</struts2.version> | ||
| <log4j2.version>2.8.2</log4j2.version> | ||
| <jetty-plugin.version>9.4.7.v20170914</jetty-plugin.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
| <filter-class> | ||
| org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter | ||
| </filter-class> | ||
| <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
| <filter-class> | ||
| org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter | ||
| </filter-class> | ||
| <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
| <%@ taglib prefix="s" uri="/struts-tags" %> | ||
| <s:if test="person==null || person.personId == null"> | ||
| <s:set name="title" value="%{'Add new person'}"/> | ||
| <s:set var="title" value="%{'Add new person'}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
| <div class="titleDiv"><s:text name="application.title"/></div> | ||
| <h1><s:text name="label.persons"/></h1> | ||
| <s:url id="url" action="inputPerson" /> | ||
| <s:url var="url" action="inputPerson" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
adjusted according to the remarks |
|
Looks good, do you want to wait to fulfill the rest of TODOs? |
There's 2 or so example applications that didn't get their jetty version upgraded yet because i couldn't run them. I'd like to fix those before merging |
|
Also, i've noted that some of the class files have old styled copyright/license info. (correct me if i'm wrong) Should we make a seperate issue for changing them? |
|
The above is a proper header but please open another issue where we can fix that. Do you have an example of a bad license header? |
Probably one of them is a portlet based application ... I have failed so many time to fix it :( |
i just meant that the following line is in there:
Yes it is. Unfortunately i don't have any experience with portlets and i'm not finding enough information to understand it. The other one is the shiro-basic one which is just missing a jetty-plugin declaration. |
|
The I to do not have experience with portlets ... maybe we should ask our community? |
|
from my side, i'm fine with the state of the pull request to merge it. Maybe we should create a seperate issue to get the portlet application updated, that way we don't loose track of it. Afterwards it should be easy to update the jetty-plugin once the 9.4.8 version gets released. |
|
@lukaszlenart |
|
Great work! The final 👀 |
|
💯 |
This is still a Work In Progress
TODO: