-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wednesday, July 3, 2019 5:29:26 PM IST
- Loading branch information
Yash Desai (yd0369)
committed
Sep 14, 2022
1 parent
000d58f
commit 3d82bd7
Showing
69 changed files
with
825 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
... - Advanced Java Programming (AJP)/Practical_24/Demo_Cookies_Servlet/nb-configuration.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-shared-configuration> | ||
<!-- | ||
This file contains additional configuration written by modules in the NetBeans IDE. | ||
The configuration is intended to be shared among all the users of project and | ||
therefore it is assumed to be part of version control checkout. | ||
Without this configuration present, some functionality in the IDE may be limited or fail altogether. | ||
--> | ||
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> | ||
<!-- | ||
Properties that influence various parts of the IDE, especially code formatting and the like. | ||
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. | ||
That way multiple projects can share the same settings (useful for formatting rules for example). | ||
Any value defined here will override the pom.xml file value but is only applicable to the current project. | ||
--> | ||
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.8-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion> | ||
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>gfv5ee8</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server> | ||
<netbeans.hint.jdkPlatform>JDK 1.8</netbeans.hint.jdkPlatform> | ||
<org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>ide</org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type> | ||
</properties> | ||
</project-shared-configuration> |
77 changes: 77 additions & 0 deletions
77
...s/HSD - 22517 - Advanced Java Programming (AJP)/Practical_24/Demo_Cookies_Servlet/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>POP</groupId> | ||
<artifactId>Demo_Cookies_Servlet</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
<name>Demo_Cookies_Servlet-1.0-SNAPSHOT</name> | ||
|
||
<properties> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> | ||
<jakartaee>8.0</jakartaee> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>javax</groupId> | ||
<artifactId>javaee-api</artifactId> | ||
<version>${jakartaee}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
<compilerArguments> | ||
<endorseddirs>${endorsed.dir}</endorseddirs> | ||
</compilerArguments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>2.3</version> | ||
<configuration> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> | ||
</configuration> | ||
</plugin> | ||
<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>javax</groupId> | ||
<artifactId>javaee-api</artifactId> | ||
<version>${jakartaee}</version> | ||
<type>jar</type> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
23 changes: 23 additions & 0 deletions
23
...ies_Servlet/src/main/java/com/yash_desai/AJP_22517/Practical_24/Demo_Cookies_Servlet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.yash_desai.AJP_22517.Practical_24; | ||
|
||
import java.io.*; | ||
import javax.servlet.*; | ||
import javax.servlet.http.*; | ||
|
||
public class Demo_Cookies_Servlet extends HttpServlet { | ||
protected void doGet(HttpServletRequest request, HttpServletResponse response) | ||
throws ServletException, IOException { | ||
response.setContentType("text/html;charset=UTF-8"); | ||
PrintWriter out = response.getWriter(); | ||
response.addCookie(new Cookie("TEST_COOKIE","Yash Desai")); | ||
out.println("<!DOCTYPE html><html><head><title>Servlet Demo_Cookies_Servlet</title>" | ||
+ "</head><body>" | ||
+ "Cookie Data Retrived : " | ||
+ "<br>Name : "+ request.getCookies()[0].getName() | ||
+ "<br>Value : "+ request.getCookies()[0].getValue() | ||
+ "<br>Path : "+ request.getCookies()[0].getPath() | ||
+ "<br>Domain : "+ request.getCookies()[0].getDomain() | ||
+ "<br>Comment : "+ request.getCookies()[0].getComment() | ||
+ "</body></html>"); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...al_24/Demo_Cookies_Servlet/src/main/java/pop/demo_cookies_servlet/JAXRSConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package pop.demo_cookies_servlet; | ||
|
||
import javax.ws.rs.ApplicationPath; | ||
import javax.ws.rs.core.Application; | ||
|
||
/** | ||
* Configures JAX-RS for the application. | ||
* @author Juneau | ||
*/ | ||
@ApplicationPath("resources") | ||
public class JAXRSConfiguration extends Application { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...emo_Cookies_Servlet/src/main/java/pop/demo_cookies_servlet/resources/JavaEE8Resource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package pop.demo_cookies_servlet.resources; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.core.Response; | ||
|
||
/** | ||
* | ||
* @author | ||
*/ | ||
@Path("javaee8") | ||
public class JavaEE8Resource { | ||
|
||
@GET | ||
public Response ping(){ | ||
return Response | ||
.ok("ping") | ||
.build(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...mming (AJP)/Practical_24/Demo_Cookies_Servlet/src/main/resources/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"> | ||
<!-- Define Persistence Unit --> | ||
<persistence-unit name="my_persistence_unit"> | ||
|
||
</persistence-unit> | ||
</persistence> |
6 changes: 6 additions & 0 deletions
6
...ava Programming (AJP)/Practical_24/Demo_Cookies_Servlet/src/main/webapp/WEB-INF/beans.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd" | ||
bean-discovery-mode="all"> | ||
</beans> |
20 changes: 20 additions & 0 deletions
20
... Java Programming (AJP)/Practical_24/Demo_Cookies_Servlet/src/main/webapp/WEB-INF/web.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"> | ||
<servlet> | ||
<servlet-name>Demo_Cookies_Servlet</servlet-name> | ||
<servlet-class>com.yash_desai.AJP_22517.Practical_24.Demo_Cookies_Servlet</servlet-class> | ||
<init-param> | ||
<param-name>DATA</param-name> | ||
<param-value/> | ||
</init-param> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>Demo_Cookies_Servlet</servlet-name> | ||
<url-pattern>/Demo_Cookies_Servlet</url-pattern> | ||
</servlet-mapping> | ||
<session-config> | ||
<session-timeout> | ||
30 | ||
</session-timeout> | ||
</session-config> | ||
</web-app> |
10 changes: 10 additions & 0 deletions
10
...anced Java Programming (AJP)/Practical_24/Demo_Cookies_Servlet/src/main/webapp/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Start Page</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
</head> | ||
<body> | ||
<h1>Hello World!</h1> | ||
</body> | ||
</html> |
Binary file added
BIN
+6.7 KB
...ming (AJP)/Practical_24/Demo_Cookies_Servlet/target/Demo_Cookies_Servlet-1.0-SNAPSHOT.war
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...ctical_24/Demo_Cookies_Servlet/target/Demo_Cookies_Servlet-1.0-SNAPSHOT/WEB-INF/beans.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd" | ||
bean-discovery-mode="all"> | ||
</beans> |
7 changes: 7 additions & 0 deletions
7
...Servlet/target/Demo_Cookies_Servlet-1.0-SNAPSHOT/WEB-INF/classes/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"> | ||
<!-- Define Persistence Unit --> | ||
<persistence-unit name="my_persistence_unit"> | ||
|
||
</persistence-unit> | ||
</persistence> |
20 changes: 20 additions & 0 deletions
20
...ractical_24/Demo_Cookies_Servlet/target/Demo_Cookies_Servlet-1.0-SNAPSHOT/WEB-INF/web.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"> | ||
<servlet> | ||
<servlet-name>Demo_Cookies_Servlet</servlet-name> | ||
<servlet-class>com.yash_desai.AJP_22517.Practical_24.Demo_Cookies_Servlet</servlet-class> | ||
<init-param> | ||
<param-name>DATA</param-name> | ||
<param-value/> | ||
</init-param> | ||
</servlet> | ||
<servlet-mapping> | ||
<servlet-name>Demo_Cookies_Servlet</servlet-name> | ||
<url-pattern>/Demo_Cookies_Servlet</url-pattern> | ||
</servlet-mapping> | ||
<session-config> | ||
<session-timeout> | ||
30 | ||
</session-timeout> | ||
</session-config> | ||
</web-app> |
Empty file.
10 changes: 10 additions & 0 deletions
10
...JP)/Practical_24/Demo_Cookies_Servlet/target/Demo_Cookies_Servlet-1.0-SNAPSHOT/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Start Page</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
</head> | ||
<body> | ||
<h1>Hello World!</h1> | ||
</body> | ||
</html> |
Empty file.
7 changes: 7 additions & 0 deletions
7
...ogramming (AJP)/Practical_24/Demo_Cookies_Servlet/target/classes/META-INF/persistence.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"> | ||
<!-- Define Persistence Unit --> | ||
<persistence-unit name="my_persistence_unit"> | ||
|
||
</persistence-unit> | ||
</persistence> |
Binary file added
BIN
+1.89 MB
...va Programming (AJP)/Practical_24/Demo_Cookies_Servlet/target/endorsed/javaee-api-8.0.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
... Programming (AJP)/Practical_24/Demo_Cookies_Servlet/target/maven-archiver/pom.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Generated by Maven | ||
#Sun Sep 15 23:58:59 IST 2019 | ||
groupId=POP | ||
artifactId=Demo_Cookies_Servlet | ||
version=1.0-SNAPSHOT |
3 changes: 3 additions & 0 deletions
3
...ervlet/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
com\yash_desai\AJP_22517\Practical_24\Demo_Cookies_Servlet.class | ||
pop\demo_cookies_servlet\JAXRSConfiguration.class | ||
pop\demo_cookies_servlet\resources\JavaEE8Resource.class |
3 changes: 3 additions & 0 deletions
3
..._Servlet/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
C:\Users\yash_\Documents\NetBeansProjects\Demo_Cookies_Servlet\src\main\java\pop\demo_cookies_servlet\resources\JavaEE8Resource.java | ||
C:\Users\yash_\Documents\NetBeansProjects\Demo_Cookies_Servlet\src\main\java\pop\demo_cookies_servlet\JAXRSConfiguration.java | ||
C:\Users\yash_\Documents\NetBeansProjects\Demo_Cookies_Servlet\src\main\java\com\yash_desai\AJP_22517\Practical_24\Demo_Cookies_Servlet.java |
Empty file.
21 changes: 21 additions & 0 deletions
21
...SD - 22517 - Advanced Java Programming (AJP)/Practical_24/Exercise_1/nb-configuration.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-shared-configuration> | ||
<!-- | ||
This file contains additional configuration written by modules in the NetBeans IDE. | ||
The configuration is intended to be shared among all the users of project and | ||
therefore it is assumed to be part of version control checkout. | ||
Without this configuration present, some functionality in the IDE may be limited or fail altogether. | ||
--> | ||
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1"> | ||
<!-- | ||
Properties that influence various parts of the IDE, especially code formatting and the like. | ||
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up. | ||
That way multiple projects can share the same settings (useful for formatting rules for example). | ||
Any value defined here will override the pom.xml file value but is only applicable to the current project. | ||
--> | ||
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.8-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion> | ||
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>gfv5ee8</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server> | ||
<netbeans.hint.jdkPlatform>JDK 1.8</netbeans.hint.jdkPlatform> | ||
<org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>ide</org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type> | ||
</properties> | ||
</project-shared-configuration> |
77 changes: 77 additions & 0 deletions
77
Practicals/HSD - 22517 - Advanced Java Programming (AJP)/Practical_24/Exercise_1/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>POP</groupId> | ||
<artifactId>Exercise_1</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
<name>Exercise_1-1.0-SNAPSHOT</name> | ||
|
||
<properties> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> | ||
<jakartaee>8.0</jakartaee> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>javax</groupId> | ||
<artifactId>javaee-api</artifactId> | ||
<version>${jakartaee}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
<compilerArguments> | ||
<endorseddirs>${endorsed.dir}</endorseddirs> | ||
</compilerArguments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>2.3</version> | ||
<configuration> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> | ||
</configuration> | ||
</plugin> | ||
<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>javax</groupId> | ||
<artifactId>javaee-api</artifactId> | ||
<version>${jakartaee}</version> | ||
<type>jar</type> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.