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"
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 >
5
+ <groupId >es.keensoft.alfresco</groupId >
6
+ <artifactId >site-groups</artifactId >
7
+ <version >1.0-SNAPSHOT</version >
8
+ <name >site-groups AMP project</name >
9
+ <packaging >amp</packaging >
10
+ <description >Manages the lifecycle of the site-groups AMP (Alfresco Module Package)</description >
11
+
12
+ <parent >
13
+ <groupId >org.alfresco.maven</groupId >
14
+ <artifactId >alfresco-sdk-parent</artifactId >
15
+ <version >2.1.0</version >
16
+ </parent >
17
+
18
+ <!--
19
+ SDK properties have sensible defaults in the SDK parent,
20
+ but you can override the properties below to use another version.
21
+ For more available properties see the alfresco-sdk-parent POM.
22
+ -->
23
+ <properties >
24
+ <!-- The following are default values for data location and Alfresco version.
25
+ Uncomment if you need to change
26
+ <alfresco.version>${alfresco.community.default.version}</alfresco.version> -->
27
+
28
+ <!-- This control the root logging level for all apps uncomment and change, defaults to WARN
29
+ <app.log.root.level>WARN</app.log.root.level>
30
+ -->
31
+
32
+ <!-- Set the enviroment to use, this controls which properties will be picked in src/test/properties
33
+ for embedded run, defaults to the 'local' environment. See SDK Parent POM for more info.
34
+ <env>other environment name</env>
35
+ -->
36
+
37
+ <!-- The Maven artifact ID to use when loading the Share.WAR that the AMP should be applied to,
38
+ defaults to the alfresco.war artifact ID, so we need to override here. -->
39
+ <app .amp.client.war.artifactId>${alfresco.share.artifactId} </app .amp.client.war.artifactId>
40
+
41
+ <!-- Since Alfresco.WAR (i.e. the Repository) is already running on port 8080, we run Share.WAR on port 8081 -->
42
+ <maven .tomcat.port>8081</maven .tomcat.port>
43
+
44
+ <!-- Used in share-config-custom.xml. By default points to local installation of Alfresco Repo -->
45
+ <alfresco .repo.url>http://localhost:8080/alfresco</alfresco .repo.url>
46
+
47
+ </properties >
48
+
49
+ <!-- Here we realize the connection with the Alfresco selected platform
50
+ (e.g.version and edition) -->
51
+ <dependencyManagement >
52
+ <dependencies >
53
+ <!-- This will import the dependencyManagement for all artifacts in the selected Alfresco version/edition
54
+ (see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies)
55
+ NOTE: You still need to define dependencies in your POM, but you can omit version as it's enforced by this dependencyManagement. NOTE: It defaults
56
+ to the latest version this SDK pom has been tested with, but alfresco version can/should be overridden in your project's pom -->
57
+ <dependency >
58
+ <groupId >${alfresco.groupId} </groupId >
59
+ <artifactId >alfresco-platform-distribution</artifactId >
60
+ <version >${alfresco.version} </version >
61
+ <type >pom</type >
62
+ <scope >import</scope >
63
+ </dependency >
64
+ </dependencies >
65
+ </dependencyManagement >
66
+
67
+ <!-- Following dependencies are needed for compiling Java code in src/main/java; -->
68
+ <dependencies >
69
+ <dependency >
70
+ <groupId >${alfresco.groupId} </groupId >
71
+ <artifactId >share</artifactId >
72
+ <version >${alfresco.version} </version >
73
+ <classifier >classes</classifier >
74
+ <scope >provided</scope >
75
+ </dependency >
76
+ <dependency >
77
+ <groupId >org.springframework.extensions.surf</groupId >
78
+ <artifactId >spring-surf-api</artifactId >
79
+ <scope >provided</scope >
80
+ </dependency >
81
+ </dependencies >
82
+
83
+ <build >
84
+ <plugins >
85
+ <!-- Compress JavaScript files and store as *-min.js -->
86
+ <plugin >
87
+ <groupId >net.alchim31.maven</groupId >
88
+ <artifactId >yuicompressor-maven-plugin</artifactId >
89
+ </plugin >
90
+ </plugins >
91
+ </build >
92
+
93
+ <profiles >
94
+ <!--
95
+ Brings in the extra Enterprise specific share classes,
96
+ if the 'enterprise' profile has been activated, needs to be activated manually. -->
97
+ <profile >
98
+ <id >enterprise</id >
99
+ <dependencies >
100
+ <dependency >
101
+ <groupId >${alfresco.groupId} </groupId >
102
+ <artifactId >share-enterprise</artifactId >
103
+ <version >${alfresco.version} </version >
104
+ <classifier >classes</classifier >
105
+ <scope >provided</scope >
106
+ </dependency >
107
+ </dependencies >
108
+ </profile >
109
+ </profiles >
110
+ </project >
0 commit comments