-
Notifications
You must be signed in to change notification settings - Fork 144
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
Hello.war app for the Quick start guide #24889
Hello.war app for the Quick start guide #24889
Conversation
Create a new module for the hello project with jakarta following the same structure of the old hello project Add the module to the project
Change hello.war file download source
Hello, @samsonsouley , can you sign the Eclipse Contributor Agreement according to these instructions? Log into the Eclipse projects forge (you will need to create an account with the Eclipse Foundation if you have not already done so); click on "Eclipse Contributor Agreement"; and Complete the form. Be sure to use the same email address when you register for the account that you intend to use on Git commit records. |
Hi Ondro, |
Great, taht was really quick, @samsonsouley ! Now we need to fix one other formal thing - we need copyright headers in each file. So, please, into each new file, add the following text at the top of the file:
It's a comment, so in XHTML and XML files, you'll need to replace If you only updated a file, just check that the existing header contains a line with Copyright (c) Contributors to the Eclipse Foundation - and check that the line contains year 2024. |
It is done |
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>2.6</version> | ||
<executions> | ||
<execution> | ||
<phase>validate</phase> | ||
<goals> | ||
<goal>copy</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${endorsed.dir}</outputDirectory> | ||
<silent>true</silent> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>jakarta.platform</groupId> | ||
<artifactId>jakarta.jakartaee-api</artifactId> | ||
<version>${jakartaee}</version> | ||
<type>jar</type> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> |
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 whole section is completely useless, Java doesn't support endorsed libraries anymore and all works out of the box even without this. I think this was generated by your IDE. Please remove it.
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.
Done
docs/pom.xml
Outdated
@@ -61,5 +61,6 @@ | |||
<module>troubleshooting-guide</module> | |||
<module>upgrade-guide</module> | |||
<module>distribution</module> | |||
<module>EclipseGlassFishHelloSample</module> |
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.
Please rename the module so that it's similar to names of other modules. For example, this would fit more: eclipse-glassfish-hello-sample-app
, or simply sample-app
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 took sample-app
Good job, @samsonsouley ! I left a few more comments to improve this, but when those are addressed, it's all good to go and you can turn this Draft into a normal pull request. |
All looks good now, @samsonsouley . You can remove the draft status now, so that committers can approve and merge this |
docs/sample-app/pom.xml
Outdated
<properties> | ||
<maven.compiler.release>17</maven.compiler.release> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> |
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 line can also be removed.
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.
Done
docs/sample-app/pom.xml
Outdated
<dependency> | ||
<groupId>org.glassfish.web</groupId> | ||
<artifactId>jakarta.servlet.jsp.jstl</artifactId> | ||
<version>3.0.1</version> | ||
</dependency> |
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 can be removed, it's not used. JSP is already provided by the jakarta.jakartaee-api
dependency
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.
Well noted. It is done
Thanks! :) |
Fixes #24801