Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
arjantijms | 3cfb3a3 | 2020-02-18 23:13:47 +0100 | [diff] [blame] | 4 | Copyright (c) 1997, 2020 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 | |
| 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/maven-v4_0_0.xsd"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | <parent> |
| 23 | <groupId>org.glassfish.main</groupId> |
| 24 | <artifactId>glassfish-parent</artifactId> |
arjantijms | 3cfb3a3 | 2020-02-18 23:13:47 +0100 | [diff] [blame] | 25 | <version>6.0.0-SNAPSHOT</version> |
Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 26 | </parent> |
| 27 | <packaging>pom</packaging> |
| 28 | <groupId>org.glassfish.main.distributions</groupId> |
| 29 | <artifactId>distributions</artifactId> |
| 30 | <name>Glassfish distributions</name> |
| 31 | |
| 32 | <developers> |
| 33 | <developer> |
| 34 | <id>snjezana</id> |
| 35 | <name>Snjezana Sevo-Zenzerovic</name> |
| 36 | <url>http://blogs.sun.com/snjezana</url> |
| 37 | <organization>Oracle, Inc.</organization> |
| 38 | <roles> |
| 39 | <role>developer</role> |
| 40 | </roles> |
| 41 | </developer> |
| 42 | <developer> |
| 43 | <id>romain_grecourt</id> |
| 44 | <name>Romain Grecourt</name> |
| 45 | <organization>Oracle, Inc</organization> |
| 46 | <roles> |
| 47 | <role>developer</role> |
| 48 | </roles> |
| 49 | </developer> |
| 50 | </developers> |
| 51 | |
| 52 | <properties> |
| 53 | <findbugs.skip>true</findbugs.skip> |
| 54 | <stage.dir.name>stage</stage.dir.name> |
| 55 | <stage.dir>${project.build.directory}/${stage.dir.name}</stage.dir> |
| 56 | <temp.dir>${project.build.directory}/dependency</temp.dir> |
| 57 | <include.group.ids>org.glassfish.main.packager,org.glassfish.main.registration</include.group.ids> |
| 58 | <template.jar>${stage.dir}/${install.dir.name}/glassfish/common/templates/gf/appserver-domain.jar</template.jar> |
| 59 | <create-domain.args>--user admin create-domain --template=${template.jar} --nopassword --savelogin=true --checkports=false --adminport 4848 --instanceport 8080 --keytooloptions CN=localhost domain1</create-domain.args> |
| 60 | </properties> |
| 61 | |
| 62 | <modules> |
| 63 | <module>web</module> |
| 64 | <module>glassfish</module> |
| 65 | <module>glassfish-common</module> |
| 66 | </modules> |
| 67 | |
| 68 | <build> |
| 69 | <outputDirectory>${temp.dir}</outputDirectory> |
| 70 | <pluginManagement> |
| 71 | <plugins> |
| 72 | <plugin> |
| 73 | <groupId>org.apache.maven.plugins</groupId> |
| 74 | <artifactId>maven-javadoc-plugin</artifactId> |
| 75 | <configuration> |
| 76 | <skip>true</skip> |
| 77 | </configuration> |
| 78 | </plugin> |
| 79 | <plugin> |
| 80 | <groupId>org.apache.maven.plugins</groupId> |
| 81 | <artifactId>maven-resources-plugin</artifactId> |
| 82 | <configuration> |
| 83 | <includeEmptyDirs>true</includeEmptyDirs> |
| 84 | </configuration> |
| 85 | </plugin> |
| 86 | <plugin> |
| 87 | <groupId>org.glassfish.build</groupId> |
| 88 | <artifactId>glassfishbuild-maven-plugin</artifactId> |
| 89 | <executions> |
| 90 | <execution> |
| 91 | <id>create-domain</id> |
| 92 | <phase>process-resources</phase> |
| 93 | <configuration> |
| 94 | <executable>${stage.dir}/${install.dir.name}/bin/asadmin</executable> |
| 95 | <commandlineArgs>${create-domain.args}</commandlineArgs> |
| 96 | </configuration> |
| 97 | </execution> |
| 98 | <execution> |
| 99 | <id>default-featuresets-dependencies</id> |
| 100 | <phase>process-resources</phase> |
| 101 | <configuration> |
| 102 | <featureSetGroupIdIncludes>org.glassfish.main.featuresets</featureSetGroupIdIncludes> |
| 103 | <stageDirectory>${temp.dir}</stageDirectory> |
| 104 | <excludes>META-INF/maven/**</excludes> |
| 105 | <copyTypes>jar,war</copyTypes> |
| 106 | <unpackTypes>zip,rar,war</unpackTypes> |
| 107 | <silent>true</silent> |
| 108 | <copyExcludes>war</copyExcludes> |
| 109 | <mappings> |
| 110 | <mapping> |
| 111 | <artifactId>org.apache.felix.main</artifactId> |
| 112 | <name>felix</name> |
| 113 | </mapping> |
| 114 | </mappings> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | <execution> |
| 118 | <id>default-zip</id> |
| 119 | <phase>package</phase> |
| 120 | <configuration> |
| 121 | <excludes>**/.gitkeep_empty_dir</excludes> |
| 122 | <duplicate>preserve</duplicate> |
| 123 | <filesets> |
| 124 | <fileset> |
| 125 | <fileMode>600</fileMode> |
| 126 | <dir>${stage.dir}</dir> |
| 127 | <includes>**/*.jks</includes> |
| 128 | <includes>**/admin-keyfile</includes> |
| 129 | <includes>**/domain-passwords</includes> |
| 130 | <includes>**/keyfile</includes> |
| 131 | </fileset> |
| 132 | <fileset> |
| 133 | <fileMode>640</fileMode> |
| 134 | <dir>${stage.dir}</dir> |
| 135 | <includes>**/bin/*.1m</includes> |
| 136 | <includes>**/bin/*.jar</includes> |
| 137 | </fileset> |
| 138 | <fileset> |
| 139 | <dir>${stage.dir}</dir> |
| 140 | <fileMode>750</fileMode> |
| 141 | <includes>**/bin/*</includes> |
| 142 | <includes>**/bin/*.bat</includes> |
| 143 | <includes>**/config/*.bat</includes> |
| 144 | <includes>**/config/*.conf</includes> |
| 145 | <includes>**/lib/nadmin*</includes> |
| 146 | <includes>**/imq</includes> |
| 147 | <includes>**/imqinit</includes> |
| 148 | <excludes>**/bin/*.1m</excludes> |
| 149 | <excludes>**/bin/*.jar</excludes> |
| 150 | </fileset> |
| 151 | <fileset> |
| 152 | <fileMode>640</fileMode> |
| 153 | <dir>${stage.dir}</dir> |
| 154 | <excludes>**/bin/*</excludes> |
| 155 | <excludes>**/bin/*.bat</excludes> |
| 156 | <excludes>**/lib/nadmin*</excludes> |
| 157 | </fileset> |
| 158 | </filesets> |
| 159 | </configuration> |
| 160 | </execution> |
| 161 | </executions> |
| 162 | </plugin> |
| 163 | <plugin> |
| 164 | <groupId>org.apache.maven.plugins</groupId> |
| 165 | <artifactId>maven-assembly-plugin</artifactId> |
| 166 | <executions> |
| 167 | <execution> |
| 168 | <id>default-single</id> |
| 169 | <phase>process-resources</phase> |
| 170 | <goals> |
| 171 | <goal>single</goal> |
| 172 | </goals> |
| 173 | </execution> |
| 174 | </executions> |
| 175 | <configuration> |
| 176 | <descriptors> |
| 177 | <descriptor>${basedir}/src/main/assembly/${project.artifactId}.xml</descriptor> |
| 178 | </descriptors> |
| 179 | <ignoreMissingDescriptor>false</ignoreMissingDescriptor> |
| 180 | <finalName>${stage.dir.name}</finalName> |
| 181 | <attach>false</attach> |
| 182 | <appendAssemblyId>false</appendAssemblyId> |
| 183 | <useProjectArtifact>false</useProjectArtifact> |
| 184 | </configuration> |
| 185 | </plugin> |
| 186 | <plugin> |
| 187 | <groupId>org.apache.maven.plugins</groupId> |
| 188 | <artifactId>maven-clean-plugin</artifactId> |
| 189 | <executions> |
| 190 | <execution> |
| 191 | <id>clean-domain</id> |
| 192 | <goals> |
| 193 | <goal>clean</goal> |
| 194 | </goals> |
| 195 | <configuration> |
| 196 | <directory>${project.build.directory}</directory> |
| 197 | <includes> |
| 198 | <include>${stage.dir.name}/**/domains/**</include> |
| 199 | </includes> |
| 200 | </configuration> |
| 201 | </execution> |
| 202 | </executions> |
| 203 | </plugin> |
| 204 | </plugins> |
| 205 | </pluginManagement> |
| 206 | </build> |
| 207 | </project> |