| <!-- |
| |
| Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <packaging>war</packaging> |
| <version>1.0-SNAPSHOT</version> |
| <url>http://maven.apache.org</url> |
| <groupId>org.glassfish.main</groupId> |
| <artifactId>videoplayer</artifactId> |
| |
| <name>videoplayer</name> |
| |
| <properties> |
| <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <glasfish.home>../../../distributions/web/target/stage/glassfish7/glassfish</glasfish.home> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.glassfish.main.web</groupId> |
| <artifactId>web-sse</artifactId> |
| <version>7.0.0-SNAPSHOT</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax</groupId> |
| <artifactId>javaee-web-api</artifactId> |
| <version>6.0</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.13.2</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>2.0.2</version> |
| <configuration> |
| <source>1.6</source> |
| <target>1.6</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.1-beta-1</version> |
| <configuration> |
| <failOnMissingWebXml>false</failOnMissingWebXml> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <skip>false</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <finalName>videoplayer</finalName> |
| </build> |
| <profiles> |
| <profile> |
| <id>embedded</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.glassfish</groupId> |
| <artifactId>maven-embedded-glassfish-plugin</artifactId> |
| <version>3.1.1</version> |
| <configuration> |
| <goalPrefix>glassfish</goalPrefix> |
| <app>${project.build.directory}/${build.finalName}.war</app> |
| <port>8080</port> |
| <name>${project.artifactId}</name> |
| <installRoot>${glasfish.home}</installRoot> |
| <contextRoot>${project.artifactId}</contextRoot> |
| <serverID>embedded</serverID> |
| <autoDelete>true</autoDelete> |
| <systemProperties> |
| <property>java.security.auth.login.config=${glasfish.home}/domains/domain1/config/login.conf</property> |
| </systemProperties> |
| </configuration> |
| <executions> |
| <execution> |
| <id>start</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>deploy</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>deploy</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>stop</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>undeploy</goal> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| </build> |
| </profile> |
| </profiles> |
| </project> |