Blame view

pom.xml 7.47 KB
b9d79694a   Rui Fernandes   mavenization, pac...
1
  <?xml version="1.0" encoding="UTF-8"?>
08c5f6f61   Rui Fernandes   reviewed to updat...
2
3
  <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">
b9d79694a   Rui Fernandes   mavenization, pac...
4
      <modelVersion>4.0.0</modelVersion>
b9d79694a   Rui Fernandes   mavenization, pac...
5
      <artifactId>alfresco-trashcan-cleaner</artifactId>
dccc62ede   Rui Fernandes   updated pom version
6
      <version>2.1-SNAPSHOT</version>
216f38bde   Steven Glover   REPO-1485 "Align ...
7
8
      <name>alfresco-trashcan-cleaner project</name>
      <packaging>jar</packaging>
7a33ab324   Steven Glover   MNT-16541 "Cache ...
9
      <description>The Alfresco Trash Can Cleaner (Alfresco Module)</description>
b9d79694a   Rui Fernandes   mavenization, pac...
10

674dfb149   Steven Glover   MNT-16541 "Cache ...
11
12
13
14
15
      <parent>
          <groupId>org.alfresco</groupId>
          <artifactId>alfresco-super-pom</artifactId>
          <version>7</version>
      </parent>
b9d79694a   Rui Fernandes   mavenization, pac...
16
      <properties>
08c5f6f61   Rui Fernandes   reviewed to updat...
17
          <!-- Defines the alfresco edition to compile against. Allowed values are [org.alfresco|org.alfresco.enterprise]--> 
b9d79694a   Rui Fernandes   mavenization, pac...
18
          <alfresco.groupId>org.alfresco</alfresco.groupId>
08c5f6f61   Rui Fernandes   reviewed to updat...
19
          <!-- Defines the alfresco version to compile against -->
216f38bde   Steven Glover   REPO-1485 "Align ...
20
          <alfresco.version>5.2.1-SNAPSHOT</alfresco.version>
216f38bde   Steven Glover   REPO-1485 "Align ...
21

674dfb149   Steven Glover   MNT-16541 "Cache ...
22
23
24
25
26
27
28
29
          <db.drop.command>drop database if exists ${db.name}</db.drop.command>
          <db.create.command>create database ${db.name}</db.create.command>
          <db.driver>org.postgresql.Driver</db.driver>
          <db.name>alfresco</db.name>
          <db.url>jdbc:postgresql:${db.name}</db.url>
          <db.master.url>jdbc:postgresql:template1</db.master.url>
          <db.master.username>alfresco</db.master.username>
          <db.master.password>alfresco</db.master.password>
216f38bde   Steven Glover   REPO-1485 "Align ...
30
31
32
  
          <maven.compiler.source>1.8</maven.compiler.source>
          <maven.compiler.target>1.8</maven.compiler.target>
b9d79694a   Rui Fernandes   mavenization, pac...
33
      </properties>
08c5f6f61   Rui Fernandes   reviewed to updat...
34
35
36
37
      <!-- Here we realize the connection with the Alfresco selected platform 
          (e.g.version and edition) -->
      <dependencyManagement>
          <dependencies>
216f38bde   Steven Glover   REPO-1485 "Align ...
38
39
          <!-- 
               This will import the dependencyManagement for all artifacts in the selected Alfresco version/edition
08c5f6f61   Rui Fernandes   reviewed to updat...
40
41
                  (see http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies) 
                  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 
216f38bde   Steven Glover   REPO-1485 "Align ...
42
43
                  to the latest version this SDK pom has been tested with, but alfresco version can/should be overridden in your project's pom
                   --> 
08c5f6f61   Rui Fernandes   reviewed to updat...
44
45
46
47
48
49
50
51
52
              <dependency>
                  <groupId>${alfresco.groupId}</groupId>
                  <artifactId>alfresco-platform-distribution</artifactId>
                  <version>${alfresco.version}</version>
                  <type>pom</type>
                  <scope>import</scope>
              </dependency>
          </dependencies>
      </dependencyManagement>
216f38bde   Steven Glover   REPO-1485 "Align ...
53
      
08c5f6f61   Rui Fernandes   reviewed to updat...
54
55
56
57
58
59
60
61
      <!-- Following dependencies are needed for compiling Java code in src/main/java; 
           <scope>provided</scope> is inherited for each of the following; 
           for more info, please refer to alfresco-platform-distribution POM -->
      <dependencies>
          <dependency>
              <groupId>${alfresco.groupId}</groupId>
              <artifactId>alfresco-repository</artifactId>
          </dependency>
216f38bde   Steven Glover   REPO-1485 "Align ...
62
63
64
65
66
67
          <dependency>
              <groupId>javax.servlet</groupId>
              <artifactId>servlet-api</artifactId>
              <version>2.5</version>
              <scope>provided</scope>
          </dependency>
08c5f6f61   Rui Fernandes   reviewed to updat...
68
69
70
71
          <!-- Test dependencies -->
          <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
216f38bde   Steven Glover   REPO-1485 "Align ...
72
73
74
75
76
77
78
79
              <scope>test</scope>
          </dependency>
          <dependency>
              <groupId>xml-apis</groupId>
              <artifactId>xml-apis</artifactId>
              <scope>test</scope>
          </dependency>
          <dependency>
674dfb149   Steven Glover   MNT-16541 "Cache ...
80
              <groupId>org.postgresql</groupId>
216f38bde   Steven Glover   REPO-1485 "Align ...
81
              <artifactId>postgresql</artifactId>
08c5f6f61   Rui Fernandes   reviewed to updat...
82
83
84
              <scope>test</scope>
          </dependency>
      </dependencies>
216f38bde   Steven Glover   REPO-1485 "Align ...
85
86
87
88
89
90
91
      <build>
          <resources>
              <resource>
                  <filtering>true</filtering>
                  <directory>src/main/config</directory>
              </resource>
          </resources>
674dfb149   Steven Glover   MNT-16541 "Cache ...
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
  
          <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.codehaus.mojo
          								</groupId>
          								<artifactId>
          									sql-maven-plugin
          								</artifactId>
          								<versionRange>
          									[1.5,)
          								</versionRange>
          								<goals>
          									<goal>execute</goal>
          								</goals>
          							</pluginExecutionFilter>
          							<action>
          								<ignore></ignore>
          							</action>
          						</pluginExecution>
          					</pluginExecutions>
          				</lifecycleMappingMetadata>
          			</configuration>
          		</plugin>
          	</plugins>
          </pluginManagement>
216f38bde   Steven Glover   REPO-1485 "Align ...
128
      </build>
674dfb149   Steven Glover   MNT-16541 "Cache ...
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
      
      <profiles>
          <profile>
              <!-- Wipe the database before starting tests -->
              <id>wipe-db</id>
              <activation>
                  <property>
                      <name>wipeDB</name>
                  </property>
              </activation>
  	        <build>
  	            <plugins>
  		            <plugin>
  		               <groupId>org.codehaus.mojo</groupId>
  		               <artifactId>sql-maven-plugin</artifactId>
  		               <dependencies>
  			                <dependency>
  			                    <groupId>org.postgresql</groupId>
  			                    <artifactId>postgresql</artifactId>
  			                    <version>${dependency.postgresql.version}</version>
  			                </dependency>
                          </dependencies>
  		                <configuration>
  		                    <skip>${db.skip}</skip>
  		                    <autocommit>true</autocommit>
  		                    <driver>${db.driver}</driver>
  		                    <url>${db.master.url}</url>
  		                    <username>${db.master.username}</username>
  		                    <password>${db.master.password}</password>
  		                </configuration>
  		               <executions>
  		                   <execution>
  		                       <id>drop-db</id>
  		                       <phase>initialize</phase>
  		                       <goals>
  		                           <goal>execute</goal>
  		                       </goals>
  		                       <configuration>
  		                           <skip>false</skip><!-- always run -->
  		                           <sqlCommand>${db.drop.command}</sqlCommand>
  		                       </configuration>
  		                   </execution>
  		                   <execution>
  		                       <id>create-db</id>
  		                       <phase>initialize</phase>
  		                       <goals>
  		                           <goal>execute</goal>
  		                       </goals>
  		                       <configuration>
  		                           <skip>false</skip><!-- always run -->
  		                           <sqlCommand>${db.create.command}</sqlCommand>
  		                       </configuration>
  		                   </execution>
  		               </executions>
  		           </plugin>
  	            </plugins>
  	        </build>
          </profile>
      </profiles>
08c5f6f61   Rui Fernandes   reviewed to updat...
188
  </project>