7135effae979ac62b43e9312389228e486dc9e99
[taxeditor.git] / eu.etaxonomy.taxeditor.webapp / pom.xml
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 <parent>
5 <groupId>eu.etaxonomy</groupId>
6 <artifactId>taxeditor-parent</artifactId>
7 <version>4.0.0-SNAPSHOT</version>
8 </parent>
9 <modelVersion>4.0.0</modelVersion>
10 <artifactId>eu.etaxonomy.taxeditor.webapp</artifactId>
11 <packaging>eclipse-plugin</packaging>
12 <name>CDM Library Webapp Plugin</name>
13 <description>CDM Library webapp as a plugin</description>
14
15 <build>
16 <pluginManagement>
17 <plugins>
18 <plugin>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-surefire-plugin</artifactId>
21 <version>2.7</version>
22 </plugin>
23 </plugins>
24 </pluginManagement>
25 <plugins>
26 <plugin>
27 <groupId>org.apache.maven.plugins</groupId>
28 <artifactId>maven-dependency-plugin</artifactId>
29 <version>2.4</version>
30 <executions>
31 <execution>
32 <id>copy-dependency-war</id>
33 <phase>validate</phase>
34 <goals>
35 <goal>copy-dependencies</goal>
36 </goals>
37 <configuration>
38 <includeArtifactIds>
39 cdmlib-remote-webapp
40 </includeArtifactIds>
41 <outputDirectory>
42 ${basedir}/lib
43 </outputDirectory>
44 <overWriteReleases>true</overWriteReleases>
45 <overWriteSnapshots>true</overWriteSnapshots>
46 <excludeTransitive>true</excludeTransitive>
47 </configuration>
48 </execution>
49 <execution>
50 <id>copy-dependency-jars</id>
51 <phase>validate</phase>
52 <goals>
53 <goal>copy-dependencies</goal>
54 </goals>
55 <configuration>
56 <includeArtifactIds><!-- Comma separated list of Artifact names to include -->
57 c3p0,mchange-commons-java,h2
58 </includeArtifactIds>
59 <outputDirectory>
60 ${basedir}/lib
61 </outputDirectory>
62 <overWriteReleases>true</overWriteReleases>
63 <overWriteSnapshots>true</overWriteSnapshots>
64 <excludeTransitive>true</excludeTransitive>
65 </configuration>
66 </execution>
67 </executions>
68 </plugin>
69 <plugin>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-antrun-plugin</artifactId>
72 <version>1.7</version>
73 <executions>
74 <execution>
75 <id>update-snapshot-jar-names</id>
76 <phase>validate</phase>
77 <goals>
78 <goal>run</goal>
79 </goals>
80 <configuration>
81 <target>
82 <echo>Anonymizing war</echo>
83 <move todir="./lib">
84 <fileset dir="./lib" />
85 <mapper type="regexp"
86 from="(^cdmlib\-remote\-webapp).*(\.war)" to="\1\2" />
87 </move>
88 </target>
89 </configuration>
90 </execution>
91 </executions>
92 </plugin>
93 </plugins>
94 </build>
95 <repositories>
96 <repository>
97 <id>SpringSource Enterprise Bundle Repository - External Bundle
98 Milestones
99 </id>
100 <url>http://repository.springsource.com/maven/bundles/milestone
101 </url>
102 </repository>
103 <repository>
104 <id>SpringSource Enterprise Bundle Repository - SpringSource
105 Bundle
106 Releases
107 </id>
108 <url>http://repository.springsource.com/maven/bundles/release
109 </url>
110 </repository>
111 <repository>
112 <id>SpringSource Enterprise Bundle Repository - External Bundle
113 Releases
114 </id>
115 <url>http://repository.springsource.com/maven/bundles/external
116 </url>
117 </repository>
118 </repositories>
119 <dependencies>
120 <dependency>
121 <groupId>eu.etaxonomy</groupId>
122 <artifactId>cdmlib-remote-webapp</artifactId>
123 <version>${cdmlib.version}</version>
124 <type>war</type>
125 </dependency>
126 <dependency>
127 <groupId>com.h2database</groupId>
128 <artifactId>h2</artifactId>
129 <version>1.4.190</version>
130 </dependency>
131 <dependency>
132 <groupId>com.mchange</groupId>
133 <artifactId>c3p0</artifactId>
134 <!--
135 IMPORTANT!!!
136 this must exactly match the version as set in
137 cdmlib-parent pom.xml
138 -->
139 <version>0.9.5.2</version>
140 </dependency>
141 <dependency>
142 <groupId>com.mchange</groupId>
143 <artifactId>mchange-commons-java</artifactId>
144 <version>0.2.11</version>
145 </dependency>
146 </dependencies>
147 </project>
148