Blame view
pom.xml
8.42 KB
b9d79694a
![]() |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
08c5f6f61
![]() |
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
![]() |
4 |
<modelVersion>4.0.0</modelVersion> |
b9d79694a
![]() |
5 |
<artifactId>alfresco-trashcan-cleaner</artifactId> |
dccc62ede
![]() |
6 |
<version>2.1-SNAPSHOT</version> |
216f38bde
|
7 8 |
<name>alfresco-trashcan-cleaner project</name> <packaging>jar</packaging> |
7a33ab324
|
9 |
<description>The Alfresco Trash Can Cleaner (Alfresco Module)</description> |
b9d79694a
![]() |
10 |
|
674dfb149
|
11 12 13 14 15 |
<parent> <groupId>org.alfresco</groupId> <artifactId>alfresco-super-pom</artifactId> <version>7</version> </parent> |
b9d79694a
![]() |
16 |
<properties> |
a93188af9
|
17 18 |
<!-- Defines the alfresco edition to compile against. Allowed values are [org.alfresco|org.alfresco.enterprise] --> |
b9d79694a
![]() |
19 |
<alfresco.groupId>org.alfresco</alfresco.groupId> |
08c5f6f61
![]() |
20 |
<!-- Defines the alfresco version to compile against --> |
216f38bde
|
21 |
<alfresco.version>5.2.1-SNAPSHOT</alfresco.version> |
216f38bde
|
22 |
|
674dfb149
|
23 24 25 26 27 28 29 30 |
<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> |
b9d79694a
![]() |
31 |
</properties> |
08c5f6f61
![]() |
32 33 34 35 |
<!-- Here we realize the connection with the Alfresco selected platform (e.g.version and edition) --> <dependencyManagement> <dependencies> |
a93188af9
|
36 37 38 39 40 41 |
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco version/edition (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 to the latest version this SDK pom has been tested with, but alfresco version can/should be overridden in your project's pom --> |
08c5f6f61
![]() |
42 43 44 45 46 47 48 49 50 |
<dependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-platform-distribution</artifactId> <version>${alfresco.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> |
a93188af9
|
51 |
|
08c5f6f61
![]() |
52 |
<!-- Following dependencies are needed for compiling Java code in src/main/java; |
a93188af9
|
53 54 |
<scope>provided</scope> is inherited for each of the following; for more info, please refer to alfresco-platform-distribution POM --> |
08c5f6f61
![]() |
55 56 57 58 59 |
<dependencies> <dependency> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-repository</artifactId> </dependency> |
216f38bde
|
60 61 62 63 64 65 |
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> |
08c5f6f61
![]() |
66 67 68 69 |
<!-- Test dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> |
216f38bde
|
70 71 72 73 74 75 76 77 |
<scope>test</scope> </dependency> <dependency> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> <scope>test</scope> </dependency> <dependency> |
674dfb149
|
78 |
<groupId>org.postgresql</groupId> |
216f38bde
|
79 |
<artifactId>postgresql</artifactId> |
08c5f6f61
![]() |
80 81 82 |
<scope>test</scope> </dependency> </dependencies> |
216f38bde
|
83 84 85 86 87 88 89 |
<build> <resources> <resource> <filtering>true</filtering> <directory>src/main/config</directory> </resource> </resources> |
674dfb149
|
90 91 |
<pluginManagement> |
a93188af9
|
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 |
<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> |
674dfb149
|
120 |
</pluginManagement> |
216f38bde
|
121 |
</build> |
55a23d394
|
122 123 124 125 126 127 128 129 130 131 132 |
<distributionManagement> <repository> <id>alfresco-internal</id> <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-releases</url> </repository> <snapshotRepository> <id>alfresco-internal-snapshots</id> <url>https://artifacts.alfresco.com/nexus/content/repositories/internal-snapshots</url> </snapshotRepository> </distributionManagement> |
674dfb149
|
133 134 135 136 137 138 139 140 141 |
<profiles> <profile> <!-- Wipe the database before starting tests --> <id>wipe-db</id> <activation> <property> <name>wipeDB</name> </property> </activation> |
a93188af9
|
142 143 144 145 146 147 148 149 150 151 152 |
<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> |
674dfb149
|
153 |
</dependencies> |
a93188af9
|
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 188 |
<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> |
674dfb149
|
189 190 |
</profile> </profiles> |
08c5f6f61
![]() |
191 |
</project> |