Commit 3dacad51fe0aeddb1966b228759e6da4bec03d9f

Authored by Ahmed Owian
1 parent 8e56e17574
Exists in master

Updated parent artifact id to alfresco-skype-parent, and added alfresco-skype pr…

…efix to amp artifact ids.
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <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"> 2 <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">
3 <modelVersion>4.0.0</modelVersion> 3 <modelVersion>4.0.0</modelVersion>
4 <artifactId>repo-amp</artifactId> 4 <artifactId>alfresco-skype-repo-amp</artifactId>
5 <name>Alfresco Repository AMP Module</name> 5 <name>Alfresco Repository AMP Module</name>
6 <packaging>amp</packaging> 6 <packaging>amp</packaging>
7 <description>This is a sample Alfresco repository AMP project, depended upon by the alfresco WAR aggregator</description> 7 <description>This is a sample Alfresco repository AMP project, depended upon by the alfresco WAR aggregator</description>
8 8
9 <parent> 9 <parent>
10 <groupId>org.alfresco.skype</groupId> 10 <groupId>org.alfresco.skype</groupId>
11 <artifactId>alfresco-skype</artifactId> 11 <artifactId>alfresco-skype-parent</artifactId>
12 <version>1.0-SNAPSHOT</version> 12 <version>1.0-SNAPSHOT</version>
13 </parent> 13 </parent>
14 14
15 <properties> 15 <properties>
16 <!-- Property overrides are mostly done in parent pom --> 16 <!-- Property overrides are mostly done in parent pom -->
17 </properties> 17 </properties>
18 18
19 <!-- Following dependencies are needed for compiling Java code in src/main/java; 19 <!-- Following dependencies are needed for compiling Java code in src/main/java;
20 <scope>provided</scope> is inherited for each of the following; 20 <scope>provided</scope> is inherited for each of the following;
21 for more info, please refer to alfresco-platform-distribution POM --> 21 for more info, please refer to alfresco-platform-distribution POM -->
22 <dependencies> 22 <dependencies>
23 <dependency> 23 <dependency>
24 <groupId>${alfresco.groupId}</groupId> 24 <groupId>${alfresco.groupId}</groupId>
25 <artifactId>alfresco-repository</artifactId> 25 <artifactId>alfresco-repository</artifactId>
26 </dependency> 26 </dependency>
27 27
28 <!-- Uncomment if you are using RM (Records Management) module, brings in RM related classes --> 28 <!-- Uncomment if you are using RM (Records Management) module, brings in RM related classes -->
29 <!-- 29 <!--
30 <dependency> 30 <dependency>
31 <groupId>${alfresco.groupId}</groupId> 31 <groupId>${alfresco.groupId}</groupId>
32 <artifactId>alfresco-rm</artifactId> 32 <artifactId>alfresco-rm</artifactId>
33 <version>${alfresco.rm.version}</version> 33 <version>${alfresco.rm.version}</version>
34 <classifier>classes</classifier> 34 <classifier>classes</classifier>
35 </dependency> 35 </dependency>
36 --> 36 -->
37 </dependencies> 37 </dependencies>
38 38
39 <profiles> 39 <profiles>
40 40
41 <!-- 41 <!--
42 Brings in the extra Enterprise specific repository classes, 42 Brings in the extra Enterprise specific repository classes,
43 if the 'enterprise' profile has been activated, needs to be activated manually. --> 43 if the 'enterprise' profile has been activated, needs to be activated manually. -->
44 <profile> 44 <profile>
45 <id>enterprise</id> 45 <id>enterprise</id>
46 <dependencies> 46 <dependencies>
47 <dependency> 47 <dependency>
48 <groupId>${alfresco.groupId}</groupId> 48 <groupId>${alfresco.groupId}</groupId>
49 <artifactId>alfresco-enterprise-repository</artifactId> 49 <artifactId>alfresco-enterprise-repository</artifactId>
50 <version>${alfresco.version}</version> 50 <version>${alfresco.version}</version>
51 <scope>provided</scope> 51 <scope>provided</scope>
52 </dependency> 52 </dependency>
53 </dependencies> 53 </dependencies>
54 </profile> 54 </profile>
55 55
56 <!-- If we are running in embedded Tomcat skip unit tests --> 56 <!-- If we are running in embedded Tomcat skip unit tests -->
57 <profile> 57 <profile>
58 <id>run</id> 58 <id>run</id>
59 <properties> 59 <properties>
60 <skipTests>true</skipTests> 60 <skipTests>true</skipTests>
61 </properties> 61 </properties>
62 </profile> 62 </profile>
63 </profiles> 63 </profiles>
64 </project> 64 </project>
65 65
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 2 <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
3 license agreements. See the NOTICE file distributed with this work for additional 3 license agreements. See the NOTICE file distributed with this work for additional
4 information regarding copyright ownership. The ASF licenses this file to 4 information regarding copyright ownership. The ASF licenses this file to
5 You under the Apache License, Version 2.0 (the "License"); you may not use 5 You under the Apache License, Version 2.0 (the "License"); you may not use
6 this file except in compliance with the License. You may obtain a copy of 6 this file except in compliance with the License. You may obtain a copy of
7 the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 7 the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the 8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific 10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License. --> 11 language governing permissions and limitations under the License. -->
12 12
13 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 13 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 14 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
15 <modelVersion>4.0.0</modelVersion> 15 <modelVersion>4.0.0</modelVersion>
16 <artifactId>repo</artifactId> 16 <artifactId>repo</artifactId>
17 <name>Alfresco Repository WAR Aggregator</name> 17 <name>Alfresco Repository WAR Aggregator</name>
18 <packaging>war</packaging> 18 <packaging>war</packaging>
19 <description>Alfresco Repository aggregator, installs your repository AMPs in the Alfresco WAR for aggregation and easy deployment purposes</description> 19 <description>Alfresco Repository aggregator, installs your repository AMPs in the Alfresco WAR for aggregation and easy deployment purposes</description>
20 20
21 <parent> 21 <parent>
22 <groupId>org.alfresco.skype</groupId> 22 <groupId>org.alfresco.skype</groupId>
23 <artifactId>alfresco-skype</artifactId> 23 <artifactId>alfresco-skype-parent</artifactId>
24 <version>1.0-SNAPSHOT</version> 24 <version>1.0-SNAPSHOT</version>
25 </parent> 25 </parent>
26 26
27 <properties> 27 <properties>
28 <!-- During development we set log root level to Debug, 28 <!-- During development we set log root level to Debug,
29 this will be applicable to the log configuration in 29 this will be applicable to the log configuration in
30 repo/src/main/resources/alfresco/extension/dev-log4j.properties, 30 repo/src/main/resources/alfresco/extension/dev-log4j.properties,
31 such as DemoComponent logging. --> 31 such as DemoComponent logging. -->
32 <app.log.root.level>DEBUG</app.log.root.level> 32 <app.log.root.level>DEBUG</app.log.root.level>
33 </properties> 33 </properties>
34 34
35 <dependencies> 35 <dependencies>
36 <dependency> 36 <dependency>
37 <groupId>${alfresco.groupId}</groupId> 37 <groupId>${alfresco.groupId}</groupId>
38 <artifactId>${alfresco.repo.artifactId}</artifactId> 38 <artifactId>${alfresco.repo.artifactId}</artifactId>
39 <version>${alfresco.version}</version> 39 <version>${alfresco.version}</version>
40 <type>war</type> 40 <type>war</type>
41 </dependency> 41 </dependency>
42 <!-- Demonstrating the dependency / installation of the repo AMP developed in the 'repo-amp' module --> 42 <!-- Demonstrating the dependency / installation of the repo AMP developed in the 'repo-amp' module -->
43 <dependency> 43 <dependency>
44 <groupId>${project.groupId}</groupId> 44 <groupId>${project.groupId}</groupId>
45 <artifactId>repo-amp</artifactId> 45 <artifactId>repo-amp</artifactId>
46 <version>${project.version}</version> 46 <version>${project.version}</version>
47 <type>amp</type> 47 <type>amp</type>
48 </dependency> 48 </dependency>
49 <!-- Uncomment if you are using SPP (SharePoint Protocol Support) for Online Edit etc --> 49 <!-- Uncomment if you are using SPP (SharePoint Protocol Support) for Online Edit etc -->
50 <!-- 50 <!--
51 <dependency> 51 <dependency>
52 <groupId>${alfresco.groupId}</groupId> 52 <groupId>${alfresco.groupId}</groupId>
53 <artifactId>alfresco-spp</artifactId> 53 <artifactId>alfresco-spp</artifactId>
54 <version>${alfresco.version}</version> 54 <version>${alfresco.version}</version>
55 <type>amp</type> 55 <type>amp</type>
56 </dependency> 56 </dependency>
57 --> 57 -->
58 <!-- Uncomment if you are using the RM (Records Management) module. --> 58 <!-- Uncomment if you are using the RM (Records Management) module. -->
59 <!-- 59 <!--
60 <dependency> 60 <dependency>
61 <groupId>${alfresco.groupId}</groupId> 61 <groupId>${alfresco.groupId}</groupId>
62 <artifactId>alfresco-rm</artifactId> 62 <artifactId>alfresco-rm</artifactId>
63 <version>${alfresco.rm.version}</version> 63 <version>${alfresco.rm.version}</version>
64 <type>amp</type> 64 <type>amp</type>
65 </dependency> 65 </dependency>
66 --> 66 -->
67 </dependencies> 67 </dependencies>
68 68
69 <build> 69 <build>
70 <plugins> 70 <plugins>
71 <plugin> 71 <plugin>
72 <artifactId>maven-war-plugin</artifactId> 72 <artifactId>maven-war-plugin</artifactId>
73 <configuration> 73 <configuration>
74 <!-- Here is can control the order of overlay of your (WAR, AMP, etc.) dependencies 74 <!-- Here is can control the order of overlay of your (WAR, AMP, etc.) dependencies
75 | NOTE: At least one WAR dependency must be uncompressed first 75 | NOTE: At least one WAR dependency must be uncompressed first
76 | NOTE: In order to have a dependency effectively added to the WAR you need to 76 | NOTE: In order to have a dependency effectively added to the WAR you need to
77 | explicitly mention it in the overlay section. 77 | explicitly mention it in the overlay section.
78 | NOTE: First-win resource strategy is used by the WAR plugin 78 | NOTE: First-win resource strategy is used by the WAR plugin
79 --> 79 -->
80 <overlays> 80 <overlays>
81 <!-- Current project customizations. This is normally empty, since customizations come from the AMPs --> 81 <!-- Current project customizations. This is normally empty, since customizations come from the AMPs -->
82 <overlay/> 82 <overlay/>
83 <!-- The Alfresco WAR --> 83 <!-- The Alfresco WAR -->
84 <overlay> 84 <overlay>
85 <groupId>${alfresco.groupId}</groupId> 85 <groupId>${alfresco.groupId}</groupId>
86 <artifactId>${alfresco.repo.artifactId}</artifactId> 86 <artifactId>${alfresco.repo.artifactId}</artifactId>
87 <type>war</type> 87 <type>war</type>
88 <!-- To allow inclusion of META-INF --> 88 <!-- To allow inclusion of META-INF -->
89 <excludes/> 89 <excludes/>
90 </overlay> 90 </overlay>
91 <!-- Add / sort your AMPs here --> 91 <!-- Add / sort your AMPs here -->
92 <overlay> 92 <overlay>
93 <groupId>${project.groupId}</groupId> 93 <groupId>${project.groupId}</groupId>
94 <artifactId>repo-amp</artifactId> 94 <artifactId>repo-amp</artifactId>
95 <type>amp</type> 95 <type>amp</type>
96 </overlay> 96 </overlay>
97 <!-- Uncomment if you are using SPP --> 97 <!-- Uncomment if you are using SPP -->
98 <!-- 98 <!--
99 <overlay> 99 <overlay>
100 <groupId>${alfresco.groupId}</groupId> 100 <groupId>${alfresco.groupId}</groupId>
101 <artifactId>alfresco-spp</artifactId> 101 <artifactId>alfresco-spp</artifactId>
102 <type>amp</type> 102 <type>amp</type>
103 </overlay> 103 </overlay>
104 --> 104 -->
105 <!-- Uncomment if you are using RM --> 105 <!-- Uncomment if you are using RM -->
106 <!-- 106 <!--
107 <overlay> 107 <overlay>
108 <groupId>${alfresco.groupId}</groupId> 108 <groupId>${alfresco.groupId}</groupId>
109 <artifactId>alfresco-rm</artifactId> 109 <artifactId>alfresco-rm</artifactId>
110 <type>amp</type> 110 <type>amp</type>
111 </overlay> 111 </overlay>
112 --> 112 -->
113 </overlays> 113 </overlays>
114 </configuration> 114 </configuration>
115 </plugin> 115 </plugin>
116 </plugins> 116 </plugins>
117 </build> 117 </build>
118 118
119 <profiles> 119 <profiles>
120 <!-- Overrides the run profile to disable securecomms and add rapid development configuration --> 120 <!-- Overrides the run profile to disable securecomms and add rapid development configuration -->
121 <profile> 121 <profile>
122 <id>run</id> 122 <id>run</id>
123 <build> 123 <build>
124 <plugins> 124 <plugins>
125 <plugin> 125 <plugin>
126 <artifactId>maven-war-plugin</artifactId> 126 <artifactId>maven-war-plugin</artifactId>
127 <executions> 127 <executions>
128 <execution> 128 <execution>
129 <id>prepare-exploded-war</id> 129 <id>prepare-exploded-war</id>
130 <goals> 130 <goals>
131 <goal>exploded</goal> 131 <goal>exploded</goal>
132 </goals> 132 </goals>
133 <phase>prepare-package</phase> 133 <phase>prepare-package</phase>
134 </execution> 134 </execution>
135 <execution> 135 <execution>
136 <id>default-war</id> 136 <id>default-war</id>
137 <configuration> 137 <configuration>
138 <webXml>${project.build.directory}/${project.build.finalName}-nossl/WEB-INF/web.xml</webXml> 138 <webXml>${project.build.directory}/${project.build.finalName}-nossl/WEB-INF/web.xml</webXml>
139 </configuration> 139 </configuration>
140 </execution> 140 </execution>
141 </executions> 141 </executions>
142 </plugin> 142 </plugin>
143 <!-- Replaces web.xml where applicable, commenting out the security-constraints --> 143 <!-- Replaces web.xml where applicable, commenting out the security-constraints -->
144 <plugin> 144 <plugin>
145 <groupId>com.google.code.maven-replacer-plugin</groupId> 145 <groupId>com.google.code.maven-replacer-plugin</groupId>
146 <artifactId>replacer</artifactId> 146 <artifactId>replacer</artifactId>
147 <executions> 147 <executions>
148 <execution> 148 <execution>
149 <id>disable-securecomms</id> 149 <id>disable-securecomms</id>
150 <phase>prepare-package</phase> 150 <phase>prepare-package</phase>
151 <goals> 151 <goals>
152 <goal>replace</goal> 152 <goal>replace</goal>
153 </goals> 153 </goals>
154 </execution> 154 </execution>
155 </executions> 155 </executions>
156 <configuration> 156 <configuration>
157 <ignoreErrors>true</ignoreErrors> 157 <ignoreErrors>true</ignoreErrors>
158 <file>${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml</file> 158 <file>${project.build.directory}/${project.build.finalName}/WEB-INF/web.xml</file>
159 <outputDir>${project.build.directory}/${project.build.finalName}-nossl/WEB-INF/</outputDir> 159 <outputDir>${project.build.directory}/${project.build.finalName}-nossl/WEB-INF/</outputDir>
160 <preserveDir>false</preserveDir> 160 <preserveDir>false</preserveDir>
161 <replacements> 161 <replacements>
162 <replacement> 162 <replacement>
163 <token><![CDATA[<!-- Toggle securecomms placeholder start -->]]></token> 163 <token><![CDATA[<!-- Toggle securecomms placeholder start -->]]></token>
164 <value><![CDATA[<!--]]></value> 164 <value><![CDATA[<!--]]></value>
165 </replacement> 165 </replacement>
166 <replacement> 166 <replacement>
167 <token><![CDATA[<!-- Toggle securecomms placeholder end -->]]></token> 167 <token><![CDATA[<!-- Toggle securecomms placeholder end -->]]></token>
168 <value><![CDATA[-->]]></value> 168 <value><![CDATA[-->]]></value>
169 </replacement> 169 </replacement>
170 </replacements> 170 </replacements>
171 </configuration> 171 </configuration>
172 </plugin> 172 </plugin>
173 </plugins> 173 </plugins>
174 </build> 174 </build>
175 <dependencies> 175 <dependencies>
176 <dependency> 176 <dependency>
177 <groupId>org.alfresco.maven</groupId> 177 <groupId>org.alfresco.maven</groupId>
178 <artifactId>alfresco-rad</artifactId> 178 <artifactId>alfresco-rad</artifactId>
179 <version>${maven.alfresco.version}</version> 179 <version>${maven.alfresco.version}</version>
180 </dependency> 180 </dependency>
181 </dependencies> 181 </dependencies>
182 </profile> 182 </profile>
183 </profiles> 183 </profiles>
184 </project> 184 </project>
185 185
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <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"> 2 <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">
3 <modelVersion>4.0.0</modelVersion> 3 <modelVersion>4.0.0</modelVersion>
4 <artifactId>runner</artifactId> 4 <artifactId>runner</artifactId>
5 <name>Alfresco, Share and Solr4 Tomcat Runner</name> 5 <name>Alfresco, Share and Solr4 Tomcat Runner</name>
6 <packaging>pom</packaging> 6 <packaging>pom</packaging>
7 <description>Alfresco, Share and Solr4 Tomcat Runner</description> 7 <description>Alfresco, Share and Solr4 Tomcat Runner</description>
8 8
9 <parent> 9 <parent>
10 <groupId>org.alfresco.skype</groupId> 10 <groupId>org.alfresco.skype</groupId>
11 <artifactId>alfresco-skype</artifactId> 11 <artifactId>alfresco-skype-parent</artifactId>
12 <version>1.0-SNAPSHOT</version> 12 <version>1.0-SNAPSHOT</version>
13 </parent> 13 </parent>
14 14
15 <profiles> 15 <profiles>
16 <profile> 16 <profile>
17 <id>run</id> 17 <id>run</id>
18 18
19 <!-- TODO: figure out a way to define these properties in a parent POM, they are now also duplicated 19 <!-- TODO: figure out a way to define these properties in a parent POM, they are now also duplicated
20 in the solr-config/pom.xml --> 20 in the solr-config/pom.xml -->
21 <properties> 21 <properties>
22 <alfresco.solr.dir>${alfresco.data.location}/solr4</alfresco.solr.dir> 22 <alfresco.solr.dir>${alfresco.data.location}/solr4</alfresco.solr.dir>
23 <alfresco.solr.home.dir>${alfresco.solr.dir}/config</alfresco.solr.home.dir> 23 <alfresco.solr.home.dir>${alfresco.solr.dir}/config</alfresco.solr.home.dir>
24 <alfresco.solr.data.dir>${alfresco.solr.dir}/data</alfresco.solr.data.dir> 24 <alfresco.solr.data.dir>${alfresco.solr.dir}/data</alfresco.solr.data.dir>
25 </properties> 25 </properties>
26 26
27 <build> 27 <build>
28 <plugins> 28 <plugins>
29 <!-- Copy and filter webapp context files - output dir is runner/target/contexts --> 29 <!-- Copy and filter webapp context files - output dir is runner/target/contexts -->
30 <plugin> 30 <plugin>
31 <groupId>org.apache.maven.plugins</groupId> 31 <groupId>org.apache.maven.plugins</groupId>
32 <artifactId>maven-resources-plugin</artifactId> 32 <artifactId>maven-resources-plugin</artifactId>
33 <executions> 33 <executions>
34 <execution> 34 <execution>
35 <id>copy-tomcat-resources</id> 35 <id>copy-tomcat-resources</id>
36 <phase>prepare-package</phase> 36 <phase>prepare-package</phase>
37 <goals> 37 <goals>
38 <goal>copy-resources</goal> 38 <goal>copy-resources</goal>
39 </goals> 39 </goals>
40 <configuration> 40 <configuration>
41 <outputDirectory>${project.build.directory}/contexts</outputDirectory> 41 <outputDirectory>${project.build.directory}/contexts</outputDirectory>
42 <resources> 42 <resources>
43 <resource> 43 <resource>
44 <directory>tomcat</directory> 44 <directory>tomcat</directory>
45 <filtering>true</filtering> 45 <filtering>true</filtering>
46 </resource> 46 </resource>
47 </resources> 47 </resources>
48 </configuration> 48 </configuration>
49 </execution> 49 </execution>
50 </executions> 50 </executions>
51 </plugin> 51 </plugin>
52 52
53 <!-- Run Tomcat 7 embedded with Alfresco.war and Share.war contexts. 53 <!-- Run Tomcat 7 embedded with Alfresco.war and Share.war contexts.
54 The solr4.war is fetched directly from the Maven repo, it is not built like the other WARs. 54 The solr4.war is fetched directly from the Maven repo, it is not built like the other WARs.
55 Plugin version is picked up from alfresco-sdk-parent.pom pluginManagement definition, 55 Plugin version is picked up from alfresco-sdk-parent.pom pluginManagement definition,
56 which also brings in the H2 database lib --> 56 which also brings in the H2 database lib -->
57 <plugin> 57 <plugin>
58 <groupId>org.apache.tomcat.maven</groupId> 58 <groupId>org.apache.tomcat.maven</groupId>
59 <artifactId>tomcat7-maven-plugin</artifactId> 59 <artifactId>tomcat7-maven-plugin</artifactId>
60 <executions> 60 <executions>
61 <execution> 61 <execution>
62 <id>run-wars</id> 62 <id>run-wars</id>
63 <goals> 63 <goals>
64 <goal>run</goal> 64 <goal>run</goal>
65 </goals> 65 </goals>
66 <phase>pre-integration-test</phase> 66 <phase>pre-integration-test</phase>
67 </execution> 67 </execution>
68 </executions> 68 </executions>
69 <configuration> 69 <configuration>
70 <ignorePackaging>true</ignorePackaging> 70 <ignorePackaging>true</ignorePackaging>
71 <!-- Make sure Catalina classes are picked up when we got virtual webapp contexts with classpaths --> 71 <!-- Make sure Catalina classes are picked up when we got virtual webapp contexts with classpaths -->
72 <useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader> 72 <useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader>
73 <path>/</path> 73 <path>/</path>
74 <systemProperties> 74 <systemProperties>
75 <solr.solr.home>${alfresco.solr.home.dir}</solr.solr.home> 75 <solr.solr.home>${alfresco.solr.home.dir}</solr.solr.home>
76 </systemProperties> 76 </systemProperties>
77 <!-- Should this class loader delegate to the parent class loader before searching its 77 <!-- Should this class loader delegate to the parent class loader before searching its
78 own repositories (i.e. the usual Java2 delegation model) --> 78 own repositories (i.e. the usual Java2 delegation model) -->
79 <!-- Prevent parent classloader delegation, each webapp loads. 79 <!-- Prevent parent classloader delegation, each webapp loads.
80 If set to true then you will get a truckload of Solr logging as 80 If set to true then you will get a truckload of Solr logging as
81 the alf_data_dev/solr4/config/log4j-solr.properties file is not picked up. 81 the alf_data_dev/solr4/config/log4j-solr.properties file is not picked up.
82 This also fixes issues with the Google Guava Library, which this tomcat plugin uses 82 This also fixes issues with the Google Guava Library, which this tomcat plugin uses
83 version 10.0.1 of but Solr uses 14.0.1 --> 83 version 10.0.1 of but Solr uses 14.0.1 -->
84 <delegate>false</delegate> 84 <delegate>false</delegate>
85 <webapps> 85 <webapps>
86 <webapp> 86 <webapp>
87 <groupId>${project.groupId}</groupId> 87 <groupId>${project.groupId}</groupId>
88 <artifactId>repo</artifactId> 88 <artifactId>repo</artifactId>
89 <version>${project.version}</version> 89 <version>${project.version}</version>
90 <type>war</type> 90 <type>war</type>
91 <!-- Make sure webapp is loaded with context and everything, 91 <!-- Make sure webapp is loaded with context and everything,
92 if set to 'false' then you will get 404 when trying to access the webapp from browser --> 92 if set to 'false' then you will get 404 when trying to access the webapp from browser -->
93 <asWebapp>true</asWebapp> 93 <asWebapp>true</asWebapp>
94 <contextPath>/alfresco</contextPath> 94 <contextPath>/alfresco</contextPath>
95 <contextFile>${project.build.directory}/contexts/context-repo.xml</contextFile> 95 <contextFile>${project.build.directory}/contexts/context-repo.xml</contextFile>
96 </webapp> 96 </webapp>
97 <webapp> 97 <webapp>
98 <groupId>${project.groupId}</groupId> 98 <groupId>${project.groupId}</groupId>
99 <artifactId>share</artifactId> 99 <artifactId>share</artifactId>
100 <version>${project.version}</version> 100 <version>${project.version}</version>
101 <type>war</type> 101 <type>war</type>
102 <asWebapp>true</asWebapp> 102 <asWebapp>true</asWebapp>
103 <contextPath>/share</contextPath> 103 <contextPath>/share</contextPath>
104 <contextFile>${project.build.directory}/contexts/context-share.xml</contextFile> 104 <contextFile>${project.build.directory}/contexts/context-share.xml</contextFile>
105 </webapp> 105 </webapp>
106 <webapp> 106 <webapp>
107 <groupId>${alfresco.groupId}</groupId> 107 <groupId>${alfresco.groupId}</groupId>
108 <artifactId>alfresco-solr4</artifactId> 108 <artifactId>alfresco-solr4</artifactId>
109 <version>${alfresco.version}</version> 109 <version>${alfresco.version}</version>
110 <type>war</type> 110 <type>war</type>
111 <asWebapp>true</asWebapp> 111 <asWebapp>true</asWebapp>
112 <contextPath>/solr4</contextPath> 112 <contextPath>/solr4</contextPath>
113 <contextFile>${project.build.directory}/contexts/context-solr.xml</contextFile> 113 <contextFile>${project.build.directory}/contexts/context-solr.xml</contextFile>
114 </webapp> 114 </webapp>
115 </webapps> 115 </webapps>
116 </configuration> 116 </configuration>
117 </plugin> 117 </plugin>
118 </plugins> 118 </plugins>
119 </build> 119 </build>
120 </profile> 120 </profile>
121 121
122 <!-- Runs Share User Interface regression tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone (WebDriver wrapper). 122 <!-- Runs Share User Interface regression tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone (WebDriver wrapper).
123 NOTE: Assumes an already running Alfresco + Share at the default location ${share.client.url} 123 NOTE: Assumes an already running Alfresco + Share at the default location ${share.client.url}
124 (e.g. by invoking: 124 (e.g. by invoking:
125 $ mvn clean install -Prun,regression-testing 125 $ mvn clean install -Prun,regression-testing
126 to run a specific test do: 126 to run a specific test do:
127 $ mvn clean install -Prun,regression-testing -Dit.test=LoginPageTest 127 $ mvn clean install -Prun,regression-testing -Dit.test=LoginPageTest
128 --> 128 -->
129 <profile> 129 <profile>
130 <id>regression-testing</id> 130 <id>regression-testing</id>
131 <properties> 131 <properties>
132 <!-- Re-configure Tomcat 7 Plugin (see run profile) to fork so we can run tests in parallel --> 132 <!-- Re-configure Tomcat 7 Plugin (see run profile) to fork so we can run tests in parallel -->
133 <!-- Note. the fork option does not fork a new JVM. Rather it is run in a thread created by the 133 <!-- Note. the fork option does not fork a new JVM. Rather it is run in a thread created by the
134 Maven Launcher class (org.codehaus.plexus.classworlds.launcher.Launcher) that is invoked by the mvn command. --> 134 Maven Launcher class (org.codehaus.plexus.classworlds.launcher.Launcher) that is invoked by the mvn command. -->
135 <maven.tomcat.fork>true</maven.tomcat.fork> 135 <maven.tomcat.fork>true</maven.tomcat.fork>
136 136
137 <!-- Make sure we are actually testing something --> 137 <!-- Make sure we are actually testing something -->
138 <skipTests>false</skipTests> 138 <skipTests>false</skipTests>
139 </properties> 139 </properties>
140 <build> 140 <build>
141 <plugins> 141 <plugins>
142 <!-- Need to unpack the tests becuase of Jiras: --> 142 <!-- Need to unpack the tests becuase of Jiras: -->
143 <!-- https://jira.codehaus.org/browse/SUREFIRE-997 --> 143 <!-- https://jira.codehaus.org/browse/SUREFIRE-997 -->
144 <!-- https://jira.codehaus.org/browse/SUREFIRE-1024 --> 144 <!-- https://jira.codehaus.org/browse/SUREFIRE-1024 -->
145 <!-- Workaround for classloading issue in share-po (need to unpack it)--> 145 <!-- Workaround for classloading issue in share-po (need to unpack it)-->
146 <plugin> 146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId> 147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-dependency-plugin</artifactId> 148 <artifactId>maven-dependency-plugin</artifactId>
149 <executions> 149 <executions>
150 <execution> 150 <execution>
151 <id>prepare-regression-test-resources</id> 151 <id>prepare-regression-test-resources</id>
152 <phase>pre-integration-test</phase> 152 <phase>pre-integration-test</phase>
153 <goals> 153 <goals>
154 <goal>unpack</goal> 154 <goal>unpack</goal>
155 </goals> 155 </goals>
156 <configuration> 156 <configuration>
157 <artifact>${alfresco.groupId}:share-po:${alfresco.version}:jar:tests</artifact> 157 <artifact>${alfresco.groupId}:share-po:${alfresco.version}:jar:tests</artifact>
158 <outputDirectory>${project.build.directory}/testng-resources</outputDirectory> 158 <outputDirectory>${project.build.directory}/testng-resources</outputDirectory>
159 </configuration> 159 </configuration>
160 </execution> 160 </execution>
161 </executions> 161 </executions>
162 </plugin> 162 </plugin>
163 163
164 <plugin> 164 <plugin>
165 <groupId>org.apache.maven.plugins</groupId> 165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-failsafe-plugin</artifactId> 166 <artifactId>maven-failsafe-plugin</artifactId>
167 <version>2.18.1</version> 167 <version>2.18.1</version>
168 <configuration> 168 <configuration>
169 <suiteXmlFiles> 169 <suiteXmlFiles>
170 <!-- Smaller test suite for Share, essential stuff like Login, Navigation, DocLib, and Search --> 170 <!-- Smaller test suite for Share, essential stuff like Login, Navigation, DocLib, and Search -->
171 <!-- Currently using our own config to be able to comment out one test class 171 <!-- Currently using our own config to be able to comment out one test class
172 <suiteXmlFile>${project.build.directory}/testng-resources/testng-alfresco-share.xml</suiteXmlFile> --> 172 <suiteXmlFile>${project.build.directory}/testng-resources/testng-alfresco-share.xml</suiteXmlFile> -->
173 <suiteXmlFile>${project.basedir}/test-ng/testng-alfresco-share.xml</suiteXmlFile> 173 <suiteXmlFile>${project.basedir}/test-ng/testng-alfresco-share.xml</suiteXmlFile>
174 </suiteXmlFiles> 174 </suiteXmlFiles>
175 <testClassesDirectory>${project.build.directory}/testng-resources</testClassesDirectory> 175 <testClassesDirectory>${project.build.directory}/testng-resources</testClassesDirectory>
176 <systemPropertyVariables> 176 <systemPropertyVariables>
177 <!-- Where is the Alfresco Share Webapp that we are testing --> 177 <!-- Where is the Alfresco Share Webapp that we are testing -->
178 <share.target>${share.client.url}</share.target> 178 <share.target>${share.client.url}</share.target>
179 </systemPropertyVariables> 179 </systemPropertyVariables>
180 180
181 <!-- The out-of-the-box Alfresco Share PO test classes does not follow the *IT.java 181 <!-- The out-of-the-box Alfresco Share PO test classes does not follow the *IT.java
182 naming convention, they use *Test.java, so need to add that --> 182 naming convention, they use *Test.java, so need to add that -->
183 <includes> 183 <includes>
184 <include>**/*Test.java</include> 184 <include>**/*Test.java</include>
185 </includes> 185 </includes>
186 </configuration> 186 </configuration>
187 <executions> 187 <executions>
188 <execution> 188 <execution>
189 <id>regression-tests</id> 189 <id>regression-tests</id>
190 <phase>integration-test</phase> 190 <phase>integration-test</phase>
191 <goals> 191 <goals>
192 <goal>integration-test</goal> 192 <goal>integration-test</goal>
193 </goals> 193 </goals>
194 </execution> 194 </execution>
195 <execution> 195 <execution>
196 <id>verify-tests</id> 196 <id>verify-tests</id>
197 <phase>verify</phase> 197 <phase>verify</phase>
198 <goals> 198 <goals>
199 <goal>verify</goal> 199 <goal>verify</goal>
200 </goals> 200 </goals>
201 </execution> 201 </execution>
202 </executions> 202 </executions>
203 </plugin> 203 </plugin>
204 204
205 </plugins> 205 </plugins>
206 </build> 206 </build>
207 207
208 <dependencies> 208 <dependencies>
209 <!-- Bring in the Share Page Objects (PO) used in the regression tests --> 209 <!-- Bring in the Share Page Objects (PO) used in the regression tests -->
210 <dependency> 210 <dependency>
211 <groupId>${alfresco.groupId}</groupId> 211 <groupId>${alfresco.groupId}</groupId>
212 <artifactId>share-po</artifactId> 212 <artifactId>share-po</artifactId>
213 <version>${alfresco.version}</version> 213 <version>${alfresco.version}</version>
214 <scope>test</scope> 214 <scope>test</scope>
215 215
216 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include 216 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include
217 version 2.45 later on here in this profile --> 217 version 2.45 later on here in this profile -->
218 <exclusions> 218 <exclusions>
219 <exclusion> 219 <exclusion>
220 <groupId>org.seleniumhq.selenium</groupId> 220 <groupId>org.seleniumhq.selenium</groupId>
221 <artifactId>selenium-java</artifactId> 221 <artifactId>selenium-java</artifactId>
222 </exclusion> 222 </exclusion>
223 <exclusion> 223 <exclusion>
224 <groupId>org.seleniumhq.selenium</groupId> 224 <groupId>org.seleniumhq.selenium</groupId>
225 <artifactId>selenium-server</artifactId> 225 <artifactId>selenium-server</artifactId>
226 </exclusion> 226 </exclusion>
227 </exclusions> 227 </exclusions>
228 </dependency> 228 </dependency>
229 <!-- Bring in the Share Page Object (PO) regression tests that comes with Alfresco. 229 <!-- Bring in the Share Page Object (PO) regression tests that comes with Alfresco.
230 These tests cover the Alfresco Share Web Application --> 230 These tests cover the Alfresco Share Web Application -->
231 <dependency> 231 <dependency>
232 <groupId>${alfresco.groupId}</groupId> 232 <groupId>${alfresco.groupId}</groupId>
233 <artifactId>share-po</artifactId> 233 <artifactId>share-po</artifactId>
234 <version>${alfresco.version}</version> 234 <version>${alfresco.version}</version>
235 <classifier>tests</classifier> 235 <classifier>tests</classifier>
236 <scope>test</scope> 236 <scope>test</scope>
237 237
238 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include 238 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include
239 version 2.45 later on here in this profile --> 239 version 2.45 later on here in this profile -->
240 <exclusions> 240 <exclusions>
241 <exclusion> 241 <exclusion>
242 <groupId>org.seleniumhq.selenium</groupId> 242 <groupId>org.seleniumhq.selenium</groupId>
243 <artifactId>selenium-java</artifactId> 243 <artifactId>selenium-java</artifactId>
244 </exclusion> 244 </exclusion>
245 <exclusion> 245 <exclusion>
246 <groupId>org.seleniumhq.selenium</groupId> 246 <groupId>org.seleniumhq.selenium</groupId>
247 <artifactId>selenium-server</artifactId> 247 <artifactId>selenium-server</artifactId>
248 </exclusion> 248 </exclusion>
249 </exclusions> 249 </exclusions>
250 </dependency> 250 </dependency>
251 251
252 <!-- Make sure we are running with newer selenium that works with newest FF (newer than 2.39.0) --> 252 <!-- Make sure we are running with newer selenium that works with newest FF (newer than 2.39.0) -->
253 <dependency> 253 <dependency>
254 <groupId>org.seleniumhq.selenium</groupId> 254 <groupId>org.seleniumhq.selenium</groupId>
255 <artifactId>selenium-java</artifactId> 255 <artifactId>selenium-java</artifactId>
256 <version>2.45.0-alfresco</version> 256 <version>2.45.0-alfresco</version>
257 </dependency> 257 </dependency>
258 <dependency> 258 <dependency>
259 <groupId>org.seleniumhq.selenium</groupId> 259 <groupId>org.seleniumhq.selenium</groupId>
260 <artifactId>selenium-server</artifactId> 260 <artifactId>selenium-server</artifactId>
261 <version>2.45.0-alfresco</version> 261 <version>2.45.0-alfresco</version>
262 <exclusions> 262 <exclusions>
263 <exclusion> 263 <exclusion>
264 <groupId>org.mortbay.jetty</groupId> 264 <groupId>org.mortbay.jetty</groupId>
265 <artifactId>servlet-api-2.5</artifactId> 265 <artifactId>servlet-api-2.5</artifactId>
266 </exclusion> 266 </exclusion>
267 </exclusions> 267 </exclusions>
268 </dependency> 268 </dependency>
269 269
270 <!-- Test NG is defined with test scope in share-po, so need it here too --> 270 <!-- Test NG is defined with test scope in share-po, so need it here too -->
271 <!-- Alfresco code creates a wrapper around Test NG --> 271 <!-- Alfresco code creates a wrapper around Test NG -->
272 <dependency> 272 <dependency>
273 <groupId>org.alfresco.test</groupId> 273 <groupId>org.alfresco.test</groupId>
274 <artifactId>alfresco-testng</artifactId> 274 <artifactId>alfresco-testng</artifactId>
275 <version>1.1</version> 275 <version>1.1</version>
276 <scope>test</scope> 276 <scope>test</scope>
277 <exclusions> 277 <exclusions>
278 <exclusion> 278 <exclusion>
279 <groupId>org.hamcrest</groupId> 279 <groupId>org.hamcrest</groupId>
280 <artifactId>hamcrest-core</artifactId> 280 <artifactId>hamcrest-core</artifactId>
281 </exclusion> 281 </exclusion>
282 </exclusions> 282 </exclusions>
283 </dependency> 283 </dependency>
284 </dependencies> 284 </dependencies>
285 </profile> 285 </profile>
286 286
287 <!-- Runs functional domain specific tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone (WebDriver wrapper). 287 <!-- Runs functional domain specific tests using Alfresco Share PO (Page Object) vanilla Selenium / Webdrone (WebDriver wrapper).
288 NOTE: Assumes an already running Alfresco + Share at the default location ${share.client.url} 288 NOTE: Assumes an already running Alfresco + Share at the default location ${share.client.url}
289 (e.g. by invoking: 289 (e.g. by invoking:
290 $ mvn clean install -Prun,functional-testing 290 $ mvn clean install -Prun,functional-testing
291 to run a specific test do: 291 to run a specific test do:
292 $ mvn clean install -Prun,functional-testing -Dit.test=DemoPageTestIT 292 $ mvn clean install -Prun,functional-testing -Dit.test=DemoPageTestIT
293 --> 293 -->
294 <profile> 294 <profile>
295 <id>functional-testing</id> 295 <id>functional-testing</id>
296 <properties> 296 <properties>
297 <!-- Re-configure Tomcat 7 Plugin (see run profile) to fork so we can run tests in parallel --> 297 <!-- Re-configure Tomcat 7 Plugin (see run profile) to fork so we can run tests in parallel -->
298 <!-- Note. the fork option does not fork a new JVM. Rather it is run in a thread created by the 298 <!-- Note. the fork option does not fork a new JVM. Rather it is run in a thread created by the
299 Maven Launcher class (org.codehaus.plexus.classworlds.launcher.Launcher) that is invoked by the mvn command. --> 299 Maven Launcher class (org.codehaus.plexus.classworlds.launcher.Launcher) that is invoked by the mvn command. -->
300 <maven.tomcat.fork>true</maven.tomcat.fork> 300 <maven.tomcat.fork>true</maven.tomcat.fork>
301 </properties> 301 </properties>
302 <build> 302 <build>
303 <plugins> 303 <plugins>
304 <plugin> 304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId> 305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-failsafe-plugin</artifactId> 306 <artifactId>maven-failsafe-plugin</artifactId>
307 <version>2.18.1</version> 307 <version>2.18.1</version>
308 <configuration> 308 <configuration>
309 <suiteXmlFiles> 309 <suiteXmlFiles>
310 <suiteXmlFile>${project.parent.basedir}/share-amp/target/test-classes/testng.xml</suiteXmlFile> 310 <suiteXmlFile>${project.parent.basedir}/share-amp/target/test-classes/testng.xml</suiteXmlFile>
311 </suiteXmlFiles> 311 </suiteXmlFiles>
312 <testClassesDirectory>${project.parent.basedir}/share-amp/target/test-classes</testClassesDirectory> 312 <testClassesDirectory>${project.parent.basedir}/share-amp/target/test-classes</testClassesDirectory>
313 <systemPropertyVariables> 313 <systemPropertyVariables>
314 <!-- Where is the Alfresco Share Webapp that we are testing --> 314 <!-- Where is the Alfresco Share Webapp that we are testing -->
315 <share.target>${share.client.url}</share.target> 315 <share.target>${share.client.url}</share.target>
316 </systemPropertyVariables> 316 </systemPropertyVariables>
317 </configuration> 317 </configuration>
318 <executions> 318 <executions>
319 <execution> 319 <execution>
320 <id>functional-tests</id> 320 <id>functional-tests</id>
321 <phase>integration-test</phase> 321 <phase>integration-test</phase>
322 <goals> 322 <goals>
323 <goal>integration-test</goal> 323 <goal>integration-test</goal>
324 </goals> 324 </goals>
325 </execution> 325 </execution>
326 <execution> 326 <execution>
327 <id>verify-tests</id> 327 <id>verify-tests</id>
328 <phase>verify</phase> 328 <phase>verify</phase>
329 <goals> 329 <goals>
330 <goal>verify</goal> 330 <goal>verify</goal>
331 </goals> 331 </goals>
332 </execution> 332 </execution>
333 </executions> 333 </executions>
334 </plugin> 334 </plugin>
335 </plugins> 335 </plugins>
336 </build> 336 </build>
337 337
338 <dependencies> 338 <dependencies>
339 <!-- Bring in the Share Page Objects (PO) used in our functional tests. 339 <!-- Bring in the Share Page Objects (PO) used in our functional tests.
340 Without it TestNG cannot load our test class when it uses page objects such as LoginPage --> 340 Without it TestNG cannot load our test class when it uses page objects such as LoginPage -->
341 <dependency> 341 <dependency>
342 <groupId>${alfresco.groupId}</groupId> 342 <groupId>${alfresco.groupId}</groupId>
343 <artifactId>share-po</artifactId> 343 <artifactId>share-po</artifactId>
344 <version>${alfresco.version}</version> 344 <version>${alfresco.version}</version>
345 <scope>test</scope> 345 <scope>test</scope>
346 346
347 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include 347 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include
348 version 2.45 later on here in this profile --> 348 version 2.45 later on here in this profile -->
349 <exclusions> 349 <exclusions>
350 <exclusion> 350 <exclusion>
351 <groupId>org.seleniumhq.selenium</groupId> 351 <groupId>org.seleniumhq.selenium</groupId>
352 <artifactId>selenium-java</artifactId> 352 <artifactId>selenium-java</artifactId>
353 </exclusion> 353 </exclusion>
354 <exclusion> 354 <exclusion>
355 <groupId>org.seleniumhq.selenium</groupId> 355 <groupId>org.seleniumhq.selenium</groupId>
356 <artifactId>selenium-server</artifactId> 356 <artifactId>selenium-server</artifactId>
357 </exclusion> 357 </exclusion>
358 </exclusions> 358 </exclusions>
359 </dependency> 359 </dependency>
360 360
361 <!-- Bring in the Share Page Object (PO) Tests that comes with Alfresco. It has 361 <!-- Bring in the Share Page Object (PO) Tests that comes with Alfresco. It has
362 the org.alfresco.po.share.AbstractTest class that our custom tests extend. 362 the org.alfresco.po.share.AbstractTest class that our custom tests extend.
363 Without it TestNG cannot load our test class --> 363 Without it TestNG cannot load our test class -->
364 <dependency> 364 <dependency>
365 <groupId>${alfresco.groupId}</groupId> 365 <groupId>${alfresco.groupId}</groupId>
366 <artifactId>share-po</artifactId> 366 <artifactId>share-po</artifactId>
367 <version>${alfresco.version}</version> 367 <version>${alfresco.version}</version>
368 <classifier>tests</classifier> 368 <classifier>tests</classifier>
369 <scope>test</scope> 369 <scope>test</scope>
370 370
371 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include 371 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include
372 version 2.45 later on here in this profile --> 372 version 2.45 later on here in this profile -->
373 <exclusions> 373 <exclusions>
374 <exclusion> 374 <exclusion>
375 <groupId>org.seleniumhq.selenium</groupId> 375 <groupId>org.seleniumhq.selenium</groupId>
376 <artifactId>selenium-java</artifactId> 376 <artifactId>selenium-java</artifactId>
377 </exclusion> 377 </exclusion>
378 <exclusion> 378 <exclusion>
379 <groupId>org.seleniumhq.selenium</groupId> 379 <groupId>org.seleniumhq.selenium</groupId>
380 <artifactId>selenium-server</artifactId> 380 <artifactId>selenium-server</artifactId>
381 </exclusion> 381 </exclusion>
382 </exclusions> 382 </exclusions>
383 </dependency> 383 </dependency>
384 384
385 <!-- Make sure we are running with newer selenium that works with newest FF (newer than 2.39.0) --> 385 <!-- Make sure we are running with newer selenium that works with newest FF (newer than 2.39.0) -->
386 <dependency> 386 <dependency>
387 <groupId>org.seleniumhq.selenium</groupId> 387 <groupId>org.seleniumhq.selenium</groupId>
388 <artifactId>selenium-java</artifactId> 388 <artifactId>selenium-java</artifactId>
389 <version>2.45.0-alfresco</version> 389 <version>2.45.0-alfresco</version>
390 </dependency> 390 </dependency>
391 <dependency> 391 <dependency>
392 <groupId>org.seleniumhq.selenium</groupId> 392 <groupId>org.seleniumhq.selenium</groupId>
393 <artifactId>selenium-server</artifactId> 393 <artifactId>selenium-server</artifactId>
394 <version>2.45.0-alfresco</version> 394 <version>2.45.0-alfresco</version>
395 <exclusions> 395 <exclusions>
396 <exclusion> 396 <exclusion>
397 <groupId>org.mortbay.jetty</groupId> 397 <groupId>org.mortbay.jetty</groupId>
398 <artifactId>servlet-api-2.5</artifactId> 398 <artifactId>servlet-api-2.5</artifactId>
399 </exclusion> 399 </exclusion>
400 </exclusions> 400 </exclusions>
401 </dependency> 401 </dependency>
402 402
403 <!-- Test NG is defined with test scope in share-po, so need it here too --> 403 <!-- Test NG is defined with test scope in share-po, so need it here too -->
404 <!-- Alfresco code creates a wrapper around Test NG --> 404 <!-- Alfresco code creates a wrapper around Test NG -->
405 <dependency> 405 <dependency>
406 <groupId>org.alfresco.test</groupId> 406 <groupId>org.alfresco.test</groupId>
407 <artifactId>alfresco-testng</artifactId> 407 <artifactId>alfresco-testng</artifactId>
408 <version>1.1</version> 408 <version>1.1</version>
409 <scope>test</scope> 409 <scope>test</scope>
410 <exclusions> 410 <exclusions>
411 <exclusion> 411 <exclusion>
412 <groupId>org.hamcrest</groupId> 412 <groupId>org.hamcrest</groupId>
413 <artifactId>hamcrest-core</artifactId> 413 <artifactId>hamcrest-core</artifactId>
414 </exclusion> 414 </exclusion>
415 </exclusions> 415 </exclusions>
416 </dependency> 416 </dependency>
417 </dependencies> 417 </dependencies>
418 </profile> 418 </profile>
419 419
420 </profiles> 420 </profiles>
421 </project> 421 </project>
422 422
share-amp/pom.xml
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion> 4 <modelVersion>4.0.0</modelVersion>
5 <artifactId>share-amp</artifactId> 5 <artifactId>alfresco-skype-share-amp</artifactId>
6 <name>Alfresco Share AMP Module</name> 6 <name>Alfresco Share AMP Module</name>
7 <packaging>amp</packaging> 7 <packaging>amp</packaging>
8 <description>This is a sample Alfresco Share AMP project, depended upon by the share WAR module</description> 8 <description>This is a sample Alfresco Share AMP project, depended upon by the share WAR module</description>
9 9
10 <parent> 10 <parent>
11 <groupId>org.alfresco.skype</groupId> 11 <groupId>org.alfresco.skype</groupId>
12 <artifactId>alfresco-skype</artifactId> 12 <artifactId>alfresco-skype-parent</artifactId>
13 <version>1.0-SNAPSHOT</version> 13 <version>1.0-SNAPSHOT</version>
14 </parent> 14 </parent>
15 15
16 <!-- 16 <!--
17 SDK properties have sensible defaults in the SDK parent, 17 SDK properties have sensible defaults in the SDK parent,
18 but you can override the properties below to use another version. 18 but you can override the properties below to use another version.
19 For more available properties see the alfresco-sdk-parent POM. 19 For more available properties see the alfresco-sdk-parent POM.
20 --> 20 -->
21 <properties> 21 <properties>
22 <!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war switch 22 <!-- Defines the target WAR artifactId to run this amp, only used with the -Pamp-to-war switch
23 Allowed values: alfresco | share. In this case it's configured to use OOTB share --> 23 Allowed values: alfresco | share. In this case it's configured to use OOTB share -->
24 <app.amp.client.war.artifactId>share</app.amp.client.war.artifactId> 24 <app.amp.client.war.artifactId>share</app.amp.client.war.artifactId>
25 25
26 <!-- Defines the log level used in log4j.properties --> 26 <!-- Defines the log level used in log4j.properties -->
27 <app.log.root.level>WARN</app.log.root.level> 27 <app.log.root.level>WARN</app.log.root.level>
28 </properties> 28 </properties>
29 29
30 <!-- Following dependencies are needed for compiling Java code in src/main/java; 30 <!-- Following dependencies are needed for compiling Java code in src/main/java;
31 <scope>provided</scope> is inherited for each of the following; 31 <scope>provided</scope> is inherited for each of the following;
32 for more info, please refer to alfresco-platform-distribution POM --> 32 for more info, please refer to alfresco-platform-distribution POM -->
33 <dependencies> 33 <dependencies>
34 <dependency> 34 <dependency>
35 <groupId>${alfresco.groupId}</groupId> 35 <groupId>${alfresco.groupId}</groupId>
36 <artifactId>share</artifactId> 36 <artifactId>share</artifactId>
37 <version>${alfresco.version}</version> 37 <version>${alfresco.version}</version>
38 <classifier>classes</classifier> 38 <classifier>classes</classifier>
39 <scope>provided</scope> 39 <scope>provided</scope>
40 </dependency> 40 </dependency>
41 41
42 <dependency> 42 <dependency>
43 <groupId>org.springframework.extensions.surf</groupId> 43 <groupId>org.springframework.extensions.surf</groupId>
44 <artifactId>spring-surf-api</artifactId> 44 <artifactId>spring-surf-api</artifactId>
45 <scope>provided</scope> 45 <scope>provided</scope>
46 </dependency> 46 </dependency>
47 47
48 <!--=============================================================== 48 <!--===============================================================
49 The following dependencies are needed to be able to compile the 49 The following dependencies are needed to be able to compile the
50 custom functional tests that are based on Page Objects (PO) 50 custom functional tests that are based on Page Objects (PO)
51 ===============================================================--> 51 ===============================================================-->
52 52
53 <!-- Bring in the Share Page Objects (PO) used in our functional tests. 53 <!-- Bring in the Share Page Objects (PO) used in our functional tests.
54 It contains page objects such as LoginPage --> 54 It contains page objects such as LoginPage -->
55 <dependency> 55 <dependency>
56 <groupId>${alfresco.groupId}</groupId> 56 <groupId>${alfresco.groupId}</groupId>
57 <artifactId>share-po</artifactId> 57 <artifactId>share-po</artifactId>
58 <version>${alfresco.version}</version> 58 <version>${alfresco.version}</version>
59 <scope>test</scope> 59 <scope>test</scope>
60 </dependency> 60 </dependency>
61 <!-- Bring in the Share Page Object (PO) Tests that comes with Alfresco. It has 61 <!-- Bring in the Share Page Object (PO) Tests that comes with Alfresco. It has
62 the org.alfresco.po.share.AbstractTest class that our custom tests extend. --> 62 the org.alfresco.po.share.AbstractTest class that our custom tests extend. -->
63 <dependency> 63 <dependency>
64 <groupId>${alfresco.groupId}</groupId> 64 <groupId>${alfresco.groupId}</groupId>
65 <artifactId>share-po</artifactId> 65 <artifactId>share-po</artifactId>
66 <version>${alfresco.version}</version> 66 <version>${alfresco.version}</version>
67 <classifier>tests</classifier> 67 <classifier>tests</classifier>
68 <scope>test</scope> 68 <scope>test</scope>
69 69
70 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include 70 <!-- Exclude version 2.39.0 of selenium that does not work with latest FF browsers, we include
71 version 2.45 later on here --> 71 version 2.45 later on here -->
72 <exclusions> 72 <exclusions>
73 <exclusion> 73 <exclusion>
74 <groupId>org.seleniumhq.selenium</groupId> 74 <groupId>org.seleniumhq.selenium</groupId>
75 <artifactId>selenium-java</artifactId> 75 <artifactId>selenium-java</artifactId>
76 </exclusion> 76 </exclusion>
77 <exclusion> 77 <exclusion>
78 <groupId>org.seleniumhq.selenium</groupId> 78 <groupId>org.seleniumhq.selenium</groupId>
79 <artifactId>selenium-server</artifactId> 79 <artifactId>selenium-server</artifactId>
80 </exclusion> 80 </exclusion>
81 </exclusions> 81 </exclusions>
82 </dependency> 82 </dependency>
83 <!-- Bring in newer selenium version --> 83 <!-- Bring in newer selenium version -->
84 <dependency> 84 <dependency>
85 <groupId>org.seleniumhq.selenium</groupId> 85 <groupId>org.seleniumhq.selenium</groupId>
86 <artifactId>selenium-java</artifactId> 86 <artifactId>selenium-java</artifactId>
87 <version>2.45.0-alfresco</version> 87 <version>2.45.0-alfresco</version>
88 <scope>test</scope> 88 <scope>test</scope>
89 </dependency> 89 </dependency>
90 <!-- Test NG is defined with test scope in share-po, so need it here too --> 90 <!-- Test NG is defined with test scope in share-po, so need it here too -->
91 <!-- Alfresco code creates a wrapper around Test NG --> 91 <!-- Alfresco code creates a wrapper around Test NG -->
92 <dependency> 92 <dependency>
93 <groupId>org.alfresco.test</groupId> 93 <groupId>org.alfresco.test</groupId>
94 <artifactId>alfresco-testng</artifactId> 94 <artifactId>alfresco-testng</artifactId>
95 <version>1.1</version> 95 <version>1.1</version>
96 <scope>test</scope> 96 <scope>test</scope>
97 <exclusions> 97 <exclusions>
98 <exclusion> 98 <exclusion>
99 <groupId>org.hamcrest</groupId> 99 <groupId>org.hamcrest</groupId>
100 <artifactId>hamcrest-core</artifactId> 100 <artifactId>hamcrest-core</artifactId>
101 </exclusion> 101 </exclusion>
102 </exclusions> 102 </exclusions>
103 </dependency> 103 </dependency>
104 104
105 </dependencies> 105 </dependencies>
106 106
107 </project> 107 </project>
108 108
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion> 4 <modelVersion>4.0.0</modelVersion>
5 <artifactId>share</artifactId> 5 <artifactId>share</artifactId>
6 <name>Alfresco Share WAR Aggregator</name> 6 <name>Alfresco Share WAR Aggregator</name>
7 <packaging>war</packaging> 7 <packaging>war</packaging>
8 <description>Alfresco Share aggregator, installs your Share AMPs in the Share WAR for aggregation and easy deployment purposes</description> 8 <description>Alfresco Share aggregator, installs your Share AMPs in the Share WAR for aggregation and easy deployment purposes</description>
9 9
10 <parent> 10 <parent>
11 <groupId>org.alfresco.skype</groupId> 11 <groupId>org.alfresco.skype</groupId>
12 <artifactId>alfresco-skype</artifactId> 12 <artifactId>alfresco-skype-parent</artifactId>
13 <version>1.0-SNAPSHOT</version> 13 <version>1.0-SNAPSHOT</version>
14 </parent> 14 </parent>
15 15
16 <properties> 16 <properties>
17 <!-- Used in share-config-custom.xml when testing. 17 <!-- Used in share-config-custom.xml when testing.
18 By default points to standard location (local) of Alfresco Repository --> 18 By default points to standard location (local) of Alfresco Repository -->
19 <alfresco.repo.url>http://localhost:8080/alfresco</alfresco.repo.url> 19 <alfresco.repo.url>http://localhost:8080/alfresco</alfresco.repo.url>
20 </properties> 20 </properties>
21 21
22 <dependencies> 22 <dependencies>
23 <dependency> 23 <dependency>
24 <groupId>${alfresco.groupId}</groupId> 24 <groupId>${alfresco.groupId}</groupId>
25 <artifactId>${alfresco.share.artifactId}</artifactId> 25 <artifactId>${alfresco.share.artifactId}</artifactId>
26 <version>${alfresco.version}</version> 26 <version>${alfresco.version}</version>
27 <type>war</type> 27 <type>war</type>
28 </dependency> 28 </dependency>
29 <!-- Demonstrating the dependency / installation of the share AMP developed in the 'share-amp' module --> 29 <!-- Demonstrating the dependency / installation of the share AMP developed in the 'share-amp' module -->
30 <dependency> 30 <dependency>
31 <groupId>${project.groupId}</groupId> 31 <groupId>${project.groupId}</groupId>
32 <artifactId>share-amp</artifactId> 32 <artifactId>share-amp</artifactId>
33 <version>${project.version}</version> 33 <version>${project.version}</version>
34 <type>amp</type> 34 <type>amp</type>
35 </dependency> 35 </dependency>
36 <!-- Uncomment if you are using RM (Records Management) module --> 36 <!-- Uncomment if you are using RM (Records Management) module -->
37 <!-- 37 <!--
38 <dependency> 38 <dependency>
39 <groupId>${alfresco.groupId}</groupId> 39 <groupId>${alfresco.groupId}</groupId>
40 <artifactId>alfresco-rm-share</artifactId> 40 <artifactId>alfresco-rm-share</artifactId>
41 <version>${alfresco.rm.version}</version> 41 <version>${alfresco.rm.version}</version>
42 <type>amp</type> 42 <type>amp</type>
43 </dependency> 43 </dependency>
44 --> 44 -->
45 </dependencies> 45 </dependencies>
46 46
47 <build> 47 <build>
48 <plugins> 48 <plugins>
49 <plugin> 49 <plugin>
50 <artifactId>maven-war-plugin</artifactId> 50 <artifactId>maven-war-plugin</artifactId>
51 <configuration> 51 <configuration>
52 <!-- Here is can control the order of overlay of your (WAR, AMP, etc.) dependencies 52 <!-- Here is can control the order of overlay of your (WAR, AMP, etc.) dependencies
53 | NOTE: At least one WAR dependency must be uncompressed first 53 | NOTE: At least one WAR dependency must be uncompressed first
54 | NOTE: In order to have a dependency effectively added to the WAR you need to 54 | NOTE: In order to have a dependency effectively added to the WAR you need to
55 | explicitly mention it in the overlay section. 55 | explicitly mention it in the overlay section.
56 | NOTE: First-win resource strategy is used by the WAR plugin 56 | NOTE: First-win resource strategy is used by the WAR plugin
57 --> 57 -->
58 <overlays> 58 <overlays>
59 <!-- The current project customizations --> 59 <!-- The current project customizations -->
60 <overlay/> 60 <overlay/>
61 <!-- The Share WAR --> 61 <!-- The Share WAR -->
62 <overlay> 62 <overlay>
63 <groupId>${alfresco.groupId}</groupId> 63 <groupId>${alfresco.groupId}</groupId>
64 <artifactId>${alfresco.share.artifactId}</artifactId> 64 <artifactId>${alfresco.share.artifactId}</artifactId>
65 <type>war</type> 65 <type>war</type>
66 <!-- To allow inclusion of META-INF --> 66 <!-- To allow inclusion of META-INF -->
67 <excludes/> 67 <excludes/>
68 </overlay> 68 </overlay>
69 <!-- Add / sort your AMPs here --> 69 <!-- Add / sort your AMPs here -->
70 <overlay> 70 <overlay>
71 <groupId>${project.groupId}</groupId> 71 <groupId>${project.groupId}</groupId>
72 <artifactId>share-amp</artifactId> 72 <artifactId>share-amp</artifactId>
73 <type>amp</type> 73 <type>amp</type>
74 </overlay> 74 </overlay>
75 <!-- Uncomment if you are using RM module --> 75 <!-- Uncomment if you are using RM module -->
76 <!-- 76 <!--
77 <overlay> 77 <overlay>
78 <groupId>${alfresco.groupId}</groupId> 78 <groupId>${alfresco.groupId}</groupId>
79 <artifactId>alfresco-rm-share</artifactId> 79 <artifactId>alfresco-rm-share</artifactId>
80 <type>amp</type> 80 <type>amp</type>
81 </overlay> 81 </overlay>
82 --> 82 -->
83 </overlays> 83 </overlays>
84 </configuration> 84 </configuration>
85 </plugin> 85 </plugin>
86 </plugins> 86 </plugins>
87 </build> 87 </build>
88 </project> 88 </project>
89 89
solr-config/pom.xml
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <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"> 2 <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">
3 <modelVersion>4.0.0</modelVersion> 3 <modelVersion>4.0.0</modelVersion>
4 4
5 <artifactId>solr-config</artifactId> 5 <artifactId>solr-config</artifactId>
6 <packaging>pom</packaging> 6 <packaging>pom</packaging>
7 <name>Alfresco Solr 4 Configuration</name> 7 <name>Alfresco Solr 4 Configuration</name>
8 <description>Apache Solr 4 Configuration Customization</description> 8 <description>Apache Solr 4 Configuration Customization</description>
9 9
10 <!-- Setup the parent extension project, which contain all the Alfresco Maven SDK stuff --> 10 <!-- Setup the parent extension project, which contain all the Alfresco Maven SDK stuff -->
11 <parent> 11 <parent>
12 <groupId>org.alfresco.skype</groupId> 12 <groupId>org.alfresco.skype</groupId>
13 <artifactId>alfresco-skype</artifactId> 13 <artifactId>alfresco-skype-parent</artifactId>
14 <version>1.0-SNAPSHOT</version> 14 <version>1.0-SNAPSHOT</version>
15 </parent> 15 </parent>
16 16
17 <!-- Build Solr Configuration only when we run an embedded Tomcat (i.e. profile run is enabled). 17 <!-- Build Solr Configuration only when we run an embedded Tomcat (i.e. profile run is enabled).
18 We assume that there is no need to customize Apache Solr 4 itself. --> 18 We assume that there is no need to customize Apache Solr 4 itself. -->
19 <profiles> 19 <profiles>
20 <profile> 20 <profile>
21 <id>run</id> 21 <id>run</id>
22 22
23 <properties> 23 <properties>
24 <alfresco.solr.dir>${alfresco.data.location}/solr4</alfresco.solr.dir> 24 <alfresco.solr.dir>${alfresco.data.location}/solr4</alfresco.solr.dir>
25 <alfresco.solr.home.dir>${alfresco.solr.dir}/config</alfresco.solr.home.dir> 25 <alfresco.solr.home.dir>${alfresco.solr.dir}/config</alfresco.solr.home.dir>
26 <alfresco.solr.data.dir>${alfresco.solr.dir}/data</alfresco.solr.data.dir> 26 <alfresco.solr.data.dir>${alfresco.solr.dir}/data</alfresco.solr.data.dir>
27 </properties> 27 </properties>
28 28
29 <dependencies> 29 <dependencies>
30 <!-- Download the default Solr4-config.zip Configuration files, 30 <!-- Download the default Solr4-config.zip Configuration files,
31 they will be updated so we can run locally over HTTP --> 31 they will be updated so we can run locally over HTTP -->
32 <dependency> 32 <dependency>
33 <groupId>${alfresco.groupId}</groupId> 33 <groupId>${alfresco.groupId}</groupId>
34 <artifactId>alfresco-solr4</artifactId> 34 <artifactId>alfresco-solr4</artifactId>
35 <version>${alfresco.version}</version> 35 <version>${alfresco.version}</version>
36 <classifier>config</classifier> 36 <classifier>config</classifier>
37 <type>zip</type> 37 <type>zip</type>
38 </dependency> 38 </dependency>
39 </dependencies> 39 </dependencies>
40 40
41 <build> 41 <build>
42 <plugins> 42 <plugins>
43 <!-- Run goal unpack and unzip the content of the downloaded default solr-config.zip file into the 43 <!-- Run goal unpack and unzip the content of the downloaded default solr-config.zip file into the
44 alfresco-maven-sdk2-test/alf_data_dev/solr4/config directory 44 alfresco-maven-sdk2-test/alf_data_dev/solr4/config directory
45 (The solr-config.zip is brought in via the dependency section) --> 45 (The solr-config.zip is brought in via the dependency section) -->
46 <plugin> 46 <plugin>
47 <groupId>org.apache.maven.plugins</groupId> 47 <groupId>org.apache.maven.plugins</groupId>
48 <artifactId>maven-dependency-plugin</artifactId> 48 <artifactId>maven-dependency-plugin</artifactId>
49 <executions> 49 <executions>
50 <execution> 50 <execution>
51 <id>unpack-alfresco-config</id> 51 <id>unpack-alfresco-config</id>
52 <goals> 52 <goals>
53 <goal>unpack</goal> 53 <goal>unpack</goal>
54 </goals> 54 </goals>
55 <phase>generate-resources</phase> 55 <phase>generate-resources</phase>
56 <configuration> 56 <configuration>
57 <outputDirectory>${alfresco.solr.home.dir}</outputDirectory> 57 <outputDirectory>${alfresco.solr.home.dir}</outputDirectory>
58 <artifactItems> 58 <artifactItems>
59 <artifactItem> 59 <artifactItem>
60 <groupId>${alfresco.groupId}</groupId> 60 <groupId>${alfresco.groupId}</groupId>
61 <artifactId>alfresco-solr4</artifactId> 61 <artifactId>alfresco-solr4</artifactId>
62 <version>${alfresco.version}</version> 62 <version>${alfresco.version}</version>
63 <classifier>config</classifier> 63 <classifier>config</classifier>
64 <type>zip</type> 64 <type>zip</type>
65 </artifactItem> 65 </artifactItem>
66 </artifactItems> 66 </artifactItems>
67 </configuration> 67 </configuration>
68 </execution> 68 </execution>
69 </executions> 69 </executions>
70 </plugin> 70 </plugin>
71 71
72 <!-- For windows paths, convert single \ to / for the ${alfresco.solr.data.dir} path, 72 <!-- For windows paths, convert single \ to / for the ${alfresco.solr.data.dir} path,
73 by default it will be c:\bla\, we need forward slash or double backslash. --> 73 by default it will be c:\bla\, we need forward slash or double backslash. -->
74 <plugin> 74 <plugin>
75 <groupId>org.codehaus.mojo</groupId> 75 <groupId>org.codehaus.mojo</groupId>
76 <artifactId>build-helper-maven-plugin</artifactId> 76 <artifactId>build-helper-maven-plugin</artifactId>
77 <executions> 77 <executions>
78 <execution> 78 <execution>
79 <id>regexp-property</id> 79 <id>regexp-property</id>
80 <phase>generate-resources</phase> 80 <phase>generate-resources</phase>
81 <goals> 81 <goals>
82 <goal>regex-property</goal> 82 <goal>regex-property</goal>
83 </goals> 83 </goals>
84 </execution> 84 </execution>
85 </executions> 85 </executions>
86 <configuration> 86 <configuration>
87 <name>solrDataDir</name> 87 <name>solrDataDir</name>
88 <value>${alfresco.solr.data.dir}</value> 88 <value>${alfresco.solr.data.dir}</value>
89 <regex>\\</regex> 89 <regex>\\</regex>
90 <replacement>/</replacement> 90 <replacement>/</replacement>
91 <failIfNoMatch>false</failIfNoMatch> 91 <failIfNoMatch>false</failIfNoMatch>
92 </configuration> 92 </configuration>
93 </plugin> 93 </plugin>
94 94
95 95
96 <!-- Run the goal replace and update configuration files for the 96 <!-- Run the goal replace and update configuration files for the
97 Solr cores to reflect our build structure --> 97 Solr cores to reflect our build structure -->
98 <plugin> 98 <plugin>
99 <groupId>com.google.code.maven-replacer-plugin</groupId> 99 <groupId>com.google.code.maven-replacer-plugin</groupId>
100 <artifactId>replacer</artifactId> 100 <artifactId>replacer</artifactId>
101 <executions> 101 <executions>
102 <execution> 102 <execution>
103 <id>setup-solr-config</id> 103 <id>setup-solr-config</id>
104 <phase>generate-resources</phase> 104 <phase>generate-resources</phase>
105 <goals> 105 <goals>
106 <goal>replace</goal> 106 <goal>replace</goal>
107 </goals> 107 </goals>
108 </execution> 108 </execution>
109 </executions> 109 </executions>
110 <configuration> 110 <configuration>
111 <regex>false</regex> 111 <regex>false</regex>
112 <includes> 112 <includes>
113 <include>${alfresco.solr.home.dir}/archive-SpacesStore/conf/solrcore.properties</include> 113 <include>${alfresco.solr.home.dir}/archive-SpacesStore/conf/solrcore.properties</include>
114 <include>${alfresco.solr.home.dir}/workspace-SpacesStore/conf/solrcore.properties</include> 114 <include>${alfresco.solr.home.dir}/workspace-SpacesStore/conf/solrcore.properties</include>
115 </includes> 115 </includes>
116 <replacements> 116 <replacements>
117 <replacement> 117 <replacement>
118 <token>@@ALFRESCO_SOLR4_DATA_DIR@@</token> 118 <token>@@ALFRESCO_SOLR4_DATA_DIR@@</token>
119 <value>${solrDataDir}/index</value> 119 <value>${solrDataDir}/index</value>
120 </replacement> 120 </replacement>
121 </replacements> 121 </replacements>
122 </configuration> 122 </configuration>
123 </plugin> 123 </plugin>
124 </plugins> 124 </plugins>
125 </build> 125 </build>
126 </profile> 126 </profile>
127 </profiles> 127 </profiles>
128 128
129 </project> 129 </project>
130 130