Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
hussainnm | 5371252 | 2021-02-18 19:46:31 +0530 | [diff] [blame] | 4 | Copyright (c) 2009, 2021 Oracle and/or its affiliates. All rights reserved. |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 5 | |
| 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 | |
arjantijms | efe3cd1 | 2021-08-22 00:40:59 +0200 | [diff] [blame] | 20 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 21 | <modelVersion>4.0.0</modelVersion> |
arjantijms | efe3cd1 | 2021-08-22 00:40:59 +0200 | [diff] [blame] | 22 | |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 23 | <parent> |
| 24 | <groupId>org.glassfish.main.admingui</groupId> |
| 25 | <artifactId>admingui</artifactId> |
Eclipse Glassfish Bot | 0eb5dc0 | 2021-08-26 23:54:16 +0000 | [diff] [blame^] | 26 | <version>6.2.2-SNAPSHOT</version> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 27 | </parent> |
| 28 | |
| 29 | <artifactId>dist-fragment</artifactId> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 30 | <packaging>distribution-fragment</packaging> |
| 31 | |
arjantijms | efe3cd1 | 2021-08-22 00:40:59 +0200 | [diff] [blame] | 32 | <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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 45 | 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 Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 76 | </project> |