forked from liferay/liferay-faces
/
pom.xml
172 lines (169 loc) · 5.83 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
<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>
<parent>
<groupId>com.liferay.faces.support</groupId>
<artifactId>liferay-faces-support-weblogic</artifactId>
<version>3.2.4-ga5-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>com.oracle.weblogic</groupId>
<artifactId>glassfish.jsf_1.0.0.0_2-1-21</artifactId>
<version>12.1.2-0-0</version>
<name>WebLogic GlassFish JSF</name>
<properties>
<weblogic.shipped.mojarra.version>2.1.20</weblogic.shipped.mojarra.version>
<weblogic-shipped-mojarra-version>2-1-20</weblogic-shipped-mojarra-version>
<weblogic.shipped.jar.version>1.0.0.0_${weblogic-shipped-mojarra-version}</weblogic.shipped.jar.version>
<weblogic.upgraded.mojarra.version>2.1.21</weblogic.upgraded.mojarra.version>
<weblogic-upgraded-mojarra-version>2-1-21</weblogic-upgraded-mojarra-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>set-properties</id>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>weblogic.short.version</name>
<value>${project.version}</value>
<regex>-0-0</regex>
<replacement></replacement>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>install</id>
<phase>process-resources</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${env.MW_HOME}/wlserver/modules/glassfish.jsf_${weblogic.shipped.jar.version}.jar</file>
<pomFile>${env.MW_HOME}/wlserver/plugins/maven/com/oracle/weblogic/glassfish.jsf_${weblogic.shipped.jar.version}/${weblogic.short.version}/glassfish.jsf_${weblogic.shipped.jar.version}.${weblogic.short.version}.pom</pomFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.oracle.weblogic</groupId>
<artifactId>glassfish.jsf_${weblogic.shipped.jar.version}</artifactId>
<version>${project.version}</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<includes>com/bea/faces/*.class,META-INF/MANIFEST.MF</includes>
</artifactItem>
<artifactItem>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>${weblogic.upgraded.mojarra.version}</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<excludes>META-INF/MANIFEST.MF</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<configuration>
<tasks>
<replace token="${weblogic.shipped.mojarra.version}" value="${weblogic.upgraded.mojarra.version}" dir="${project.build.directory}/classes/META-INF">
<include name="MANIFEST.MF" />
</replace>
<replace token="${weblogic-shipped-mojarra-version}" value="${weblogic-upgraded-mojarra-version}" dir="${project.build.directory}/classes/META-INF">
<include name="MANIFEST.MF" />
</replace>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
<manifestFile>${project.build.directory}/classes/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[2.1,)</versionRange>
<goals>
<goal>unpack</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<versionRange>[2.5.1,)</versionRange>
<goals>
<goal>install-file</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>