blob: f914db6e5dd6d573466f924733b343704a3588b3 [file] [log] [blame]
Vinay Vishal57171472018-09-18 20:22:00 +05301<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
hussainnm53712522021-02-18 19:46:31 +05304 Copyright (c) 2009, 2021 Oracle and/or its affiliates. All rights reserved.
Vinay Vishal57171472018-09-18 20:22:00 +05305
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v. 2.0, which is available at
8 http://www.eclipse.org/legal/epl-2.0.
9
10 This Source Code may also be made available under the following Secondary
11 Licenses when the conditions for such availability set forth in the
12 Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
13 version 2 with the GNU Classpath Exception, which is available at
14 https://www.gnu.org/software/classpath/license.html.
15
16 SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
17
18-->
19
arjantijmsefe3cd12021-08-22 00:40:59 +020020<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">
Vinay Vishal57171472018-09-18 20:22:00 +053021 <modelVersion>4.0.0</modelVersion>
arjantijmsefe3cd12021-08-22 00:40:59 +020022
Vinay Vishal57171472018-09-18 20:22:00 +053023 <parent>
24 <groupId>org.glassfish.main.admingui</groupId>
25 <artifactId>admingui</artifactId>
Eclipse Glassfish Bot0eb5dc02021-08-26 23:54:16 +000026 <version>6.2.2-SNAPSHOT</version>
Vinay Vishal57171472018-09-18 20:22:00 +053027 </parent>
28
29 <artifactId>dist-fragment</artifactId>
Vinay Vishal57171472018-09-18 20:22:00 +053030 <packaging>distribution-fragment</packaging>
31
arjantijmsefe3cd12021-08-22 00:40:59 +020032 <name>Admin Console Install Fragment for Web distro</name>
33
34 <dependencies>
35 <dependency>
36 <groupId>${project.groupId}</groupId>
37 <artifactId>war</artifactId>
38 <version>${project.version}</version>
39 <type>war</type>
40 <optional>true</optional>
41 </dependency>
42 </dependencies>
43
44 <build><!--
Vinay Vishal57171472018-09-18 20:22:00 +053045 In this module, all the files are statically stored as-is in the Subversion repository,
46 so the simple copying from src/main/resources to target/classes that Maven does by default
47 is suffice.
48
49 But in more complex scenario, one can use maven-antrun-extended-plugin and use a series of Ant tasks
50 to perform processing on resources, such as token replacement, file generation, pre-processing, etc.
51
52 The following section shows how you can do this.
53 -->
54 <plugins>
55 <plugin>
56 <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
57 <artifactId>maven-antrun-extended-plugin</artifactId>
58 <executions>
59 <execution>
60 <phase>generate-sources</phase>
61 <configuration>
62 <tasks>
63 <!-- extract admin gui war file into the final location -->
64 <resolveArtifact artifactId="war" property="war" />
65 <unzip src="${war}" dest="target/classes/glassfish/lib/install/applications/__admingui" />
66 </tasks>
67 </configuration>
68 <goals>
69 <goal>run</goal>
70 </goals>
71 </execution>
72 </executions>
73 </plugin>
74 </plugins>
75 </build>
Vinay Vishal57171472018-09-18 20:22:00 +053076</project>