/
pom.xml
133 lines (117 loc) · 4.87 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
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>kie-eap-distributions</artifactId>
<groupId>org.kie</groupId>
<version>6.1.0.CR1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>kie-eap-distributions-bpms-webapp</artifactId>
<name>KIE EAP - BPMS Webapp</name>
<properties>
<!-- The distribution name. -->
<modules.distribution.name>bpms-webapp</modules.distribution.name>
<!-- The output path where descriptors and assemblies will be placed. -->
<modules.tmp.path>${project.build.directory}/generated</modules.tmp.path>
<!-- The final names for the assembled webapps. -->
<modules.kie-wb.finalName>kie-wb-distribution-wars-${project.version}-${modules.distribution.name}</modules.kie-wb.finalName>
<modules.jbpm-dasbuilder.finalName>jbpm-dashboard-distributions-${project.version}-${modules.distribution.name}</modules.jbpm-dasbuilder.finalName>
<!-- This property is required to set a module dependency from jBPM dashbuilder to kiwb-webap.
Note that the property module.add-jboss-all is set into the pom.xml for module org-jbpm-dashbuilder-webapp. -->
<jboss-all-org.jbpm.dashbuilder>${modules.kie-wb.finalName}.war</jboss-all-org.jbpm.dashbuilder>
</properties>
<!-- The BPMS distributions dependencies. -->
<dependencies>
<!-- The kie-wb dynamic module definition. -->
<dependency>
<groupId>org.kie.modules</groupId>
<artifactId>org-kie-wb-webapp</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
<!-- The jBPM Dashbuilder dynamic module definition. -->
<dependency>
<groupId>org.kie.modules</groupId>
<artifactId>org-jbpm-dashbuilder-webapp</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Create the module templates and assembly files. -->
<plugin>
<groupId>org.kie</groupId>
<artifactId>jboss-modules</artifactId>
<version>${project.version}</version>
<configuration>
<distributionName>${modules.distribution.name}</distributionName>
<!-- The output path for the assembly file. -->
<outputPath>${modules.tmp.path}</outputPath>
<!-- The static layer definition artifact. -->
<staticLayerArtifact>
<groupId>org.kie</groupId>
<artifactId>kie-eap-distributions-bpms-layer</artifactId>
<version>${project.version}</version>
<type>jar</type>
</staticLayerArtifact>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build-dynamic-modules</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Assembly the kie-wb and dashbuilder distributions. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<!-- Assembly the kie-wb WAR distribution. -->
<execution>
<id>assembly-kie-wb</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${modules.kie-wb.finalName}</finalName>
<descriptors>
<!-- Assembly the kie-wb WAR. -->
<descriptor>${modules.tmp.path}/dynamic-modules/${modules.distribution.name}/org-kie-wb-webapp-assembly.xml</descriptor>
</descriptors>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<!-- Assembly the dashbuilder WAR distribution. -->
<execution>
<id>assembly-dashbuilder</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>${modules.jbpm-dasbuilder.finalName}</finalName>
<descriptors>
<!-- Assembly the dashbuilder WAR. -->
<descriptor>${modules.tmp.path}/dynamic-modules/${modules.distribution.name}/org-jbpm-dashbuilder-webapp-assembly.xml</descriptor>
</descriptors>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>