/
pom.xml
130 lines (124 loc) · 4.63 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
<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>org.xwiki.manager</groupId>
<artifactId>xwiki-manager-distribution</artifactId>
<version>4.1-SNAPSHOT</version>
</parent>
<artifactId>xwiki-manager-ui-all</artifactId>
<name>XWiki Enterprise Manager - UI All</name>
<packaging>xar</packaging>
<description>All in one XWiki Enterprise Manager XAR package</description>
<dependencies>
<dependency>
<groupId>org.xwiki.manager</groupId>
<artifactId>xwiki-manager-ui</artifactId>
<version>${project.version}</version>
<type>xar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-workspace-ui</artifactId>
<version>${platform.version}</version>
<type>xar</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<!-- Exclude from being Clovered since it doesn't bring interesting
information and causes problems with the XAR plugin since Clover generates
files in target/classes that conflicts -->
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-plugin</artifactId>
<configuration>
<includeDependencies>true</includeDependencies>
</configuration>
<executions>
<!-- Step 1: Unpack the Workspace Application so that we can upload
a base template xar to WorkspaceManager.Install -->
<execution>
<id>unxar-xwiki-platform-workspace-ui</id>
<phase>generate-resources</phase>
<goals>
<goal>unxar</goal>
</goals>
<configuration>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-workspace-ui</artifactId>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<includes>
<include>WorkspaceManager/Install.xml</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<!-- Step 2: Download XE xar to be used as base workspace template -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- <phase>generate-sources</phase> -->
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.xwiki.enterprise</groupId>
<artifactId>xwiki-enterprise-ui-all</artifactId>
<version>${enterprise.version}</version>
<type>xar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/xe</outputDirectory>
<destFileName>workspace-template.xar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- Step 3: Attach XE xar to XEM install page -->
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-xmldoc-update-plugin</artifactId>
<version>${platform.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<id>attach-xe-xar</id>
<goals>
<goal>attach</goal>
</goals>
<configuration>
<file>${project.build.directory}/xe/workspace-template.xar</file>
<sourceDocument>${project.build.outputDirectory}/WorkspaceManager/Install.xml</sourceDocument>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-context</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>