/
pom.xml
177 lines (168 loc) · 7.73 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<!--
skip wildfly-feature-pack-parent and use wildfly-parent to avoid issues
with dependencies imported with groupId ${project.groupId}
-->
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<!--
Maintain separation between the artifact id and the version to help prevent
merge conflicts between commits changing the GA and those changing the V.
-->
<version>33.0.0.Beta1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>org.wildfly.channels</groupId>
<artifactId>wildfly</artifactId>
<name>WildFly: Feature Pack Channel</name>
<packaging>pom</packaging>
<dependencies>
<!-- We need the feature pack built first as that generates the manifest -->
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-galleon-pack</artifactId>
<version>${ee.maven.version}</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- This module's artifacts are currently not deployed -->
<skip>false</skip>
</configuration>
</plugin>
<!-- Use the assembly plugin to copy and rename the manifest generated by the feature pack build.
(The resources plugin doesn't allow file renaming.)-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${project.basedir}/assembly.xml</descriptor>
</descriptors>
<finalName>assembly</finalName>
<workDirectory>${project.build.directory}/assembly-src/work</workDirectory>
<attach>false</attach>
</configuration>
</execution>
</executions>
</plugin>
<!-- Use the resources plugin to apply expression replacement filtering to the channel.yaml -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-channel-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/target/resources</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<includes>
<include>wildfly-channel.yaml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<!-- Attach the manifest.yaml to the build -->
<execution>
<id>attach-manifest</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/assembly-manifest-rename/assembly/${project.artifactId}-${project.version}-manifest.yaml</file>
<type>yaml</type>
<classifier>manifest</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
<!-- Attach the channel.yaml to the build.
NOTE: Commented out until we have a concrete need. -->
<!--<execution>
<id>attach-channel</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/resources/${project.artifactId}.yaml</file>
<type>yaml</type>
<classifier>channel</classifier>
</artifact>
</artifacts>
</configuration>
</execution>-->
</executions>
</plugin>
<!-- change the manifest metadata -->
<plugin>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-channel-maven-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<phase>package</phase>
<goals>
<goal>edit-manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<manifestPath>${project.build.directory}/assembly-manifest-rename/assembly/${project.artifactId}-${project.version}-manifest.yaml</manifestPath>
<manifestName>WildFly manifest version ${project.version}</manifestName>
<manifestId>${project.groupId}:${project.artifactId}</manifestId>
<manifestDescription>Manifest for WildFly feature pack.</manifestDescription>
<manifestRequirements>
<manifestRequirement>
<id>${project.groupId}:wildfly-ee</id>
<groupId>${project.groupId}</groupId>
<artifactId>wildfly-ee</artifactId>
<version>${project.version}</version>
</manifestRequirement>
</manifestRequirements>
</configuration>
</plugin>
</plugins>
</build>
</project>