source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/pom.xml @ 214

Last change on this file since 214 was 214, checked in by oschonef, 14 years ago
  • no need to export Hibernate jpa-modelgen to WAR
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 7.0 KB
Line 
1<project xmlns="http://maven.apache.org/POM/4.0.0"
2    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>eu.clarin.cmdi</groupId>
6  <artifactId>VirtualCollectionRegistry</artifactId>
7  <packaging>war</packaging>
8  <name>CLARIN Virtual Collection Registry</name>
9  <version>0.0.1-SNAPSHOT</version>
10
11  <build>
12    <plugins>
13      <plugin>
14        <groupId>org.apache.maven.plugins</groupId>
15        <artifactId>maven-antrun-plugin</artifactId>
16        <version>1.3</version>
17        <executions>
18          <execution>
19            <id>process-jpa-annotations</id>
20            <phase>generate-sources</phase>
21            <configuration>
22              <tasks>
23                <echo>processing JPA annotations</echo>
24                <property name="target.dir" value="${project.build.directory}/generated-sources/jpamodelgen"/>
25                <mkdir dir="${target.dir}"/>
26                <javac srcdir="${basedir}/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/model"
27                       destdir="${target.dir}"
28                       failonerror="false"
29                       fork="true"
30                       target="${maven.compiler.target}">
31                  <compilerarg value="-proc:only"/>
32                  <classpath>
33                    <path refid="maven.compile.classpath"/>
34                  </classpath>
35                </javac>
36              </tasks>
37              <sourceRoot>${project.build.directory}/generated-sources/jpamodelgen</sourceRoot>
38            </configuration>
39            <goals>
40              <goal>run</goal>
41            </goals>
42          </execution>
43        </executions>
44      </plugin>
45
46      <plugin>
47        <groupId>org.antlr</groupId>
48        <artifactId>antlr3-maven-plugin</artifactId>
49        <version>3.2</version>
50        <executions>
51          <execution>
52            <goals>
53              <goal>antlr</goal>
54            </goals>
55          </execution>
56        </executions>
57      </plugin>
58
59      <plugin>
60        <groupId>org.apache.maven.plugins</groupId>
61        <artifactId>maven-compiler-plugin</artifactId>
62        <version>2.1</version>
63        <configuration>
64          <source>${maven.compiler.source}</source>
65          <target>${maven.compiler.target}</target>
66        </configuration>
67      </plugin>
68    </plugins>
69  </build>
70
71  <repositories>
72    <repository>
73      <id>repository.java-net</id>
74      <name>Java.net Repository</name>
75      <url>http://download.java.net/maven/2</url>
76    </repository>
77
78    <repository>
79      <id>repository.jboss</id>
80      <name>JBoss Repository</name>
81      <url>http://repository.jboss.com/maven2/</url>
82    </repository>
83  </repositories>
84  <pluginRepositories>
85    <pluginRepository>
86      <id>repository.java-net</id>
87      <name>Java.net Repository</name>
88      <url>http://download.java.net/maven/2</url>
89    </pluginRepository>
90
91    <pluginRepository>
92      <id>repository.jboss</id>
93      <name>JBoss Repository</name>
94      <url>http://repository.jboss.com/maven2/</url>
95    </pluginRepository>
96  </pluginRepositories>
97
98  <dependencies>
99    <dependency>
100      <groupId>javax.servlet</groupId>
101      <artifactId>servlet-api</artifactId>
102      <version>2.5</version>
103      <type>jar</type>
104      <scope>provided</scope>
105    </dependency>
106
107    <dependency>
108      <groupId>org.hibernate.javax.persistence</groupId>
109      <artifactId>hibernate-jpa-2.0-api</artifactId>
110      <version>${hibernate.jpaVersion}</version>
111    </dependency>
112
113    <dependency>
114      <groupId>org.hibernate</groupId>
115      <artifactId>hibernate-entitymanager</artifactId>
116      <version>${hibernate.version}</version>
117      <scope>runtime</scope>
118      <exclusions>
119        <exclusion>
120          <groupId>org.slf4j</groupId>
121          <artifactId>slf4j-api</artifactId>
122        </exclusion>
123      </exclusions>
124    </dependency>
125
126    <dependency>
127      <groupId>org.hibernate</groupId>
128      <artifactId>hibernate-jpamodelgen</artifactId>
129      <version>${hibernate.jpaVersion}</version>
130      <!-- "provided" is actually a lie, but this dependency is only
131           needed at compile time, and "provided" does the trick -->
132      <scope>provided</scope>
133      <exclusions>
134        <exclusion>
135          <!-- Use the jpa-api defined here, crossing fingers they match up signature-wise -->
136          <groupId>org.hibernate.javax.persistence</groupId>
137          <artifactId>hibernate-jpa-2.0-api</artifactId>
138        </exclusion>
139        <exclusion>
140          <groupId>org.slf4j</groupId>
141          <artifactId>slf4j-api</artifactId>
142        </exclusion>
143      </exclusions>
144    </dependency>
145
146    <dependency>
147      <groupId>commons-lang</groupId>
148      <artifactId>commons-lang</artifactId>
149      <version>2.4</version>
150      <type>jar</type>
151    </dependency>
152
153    <dependency>
154      <groupId>javax.ws.rs</groupId>
155      <artifactId>jsr311-api</artifactId>
156      <version>1.1.1</version>
157      <type>jar</type>
158    </dependency>
159
160    <dependency>
161      <groupId>com.sun.jersey</groupId>
162      <artifactId>jersey-server</artifactId>
163      <version>1.1.5</version>
164      <scope>runtime</scope>
165    </dependency>
166
167    <dependency>
168      <groupId>javax.xml.bind</groupId>
169      <artifactId>jaxb-api</artifactId>
170      <version>2.2</version>
171      <exclusions>
172        <exclusion>
173          <groupId>javax.xml.stream</groupId>
174          <artifactId>stax-api</artifactId>
175        </exclusion>
176      </exclusions>
177    </dependency>
178
179    <dependency>
180      <groupId>com.sun.jersey</groupId>
181      <artifactId>jersey-json</artifactId>
182      <version>1.1.5</version>
183      <scope>runtime</scope>
184      <exclusions>
185        <exclusion>
186          <groupId>stax</groupId>
187          <artifactId>stax-api</artifactId>
188        </exclusion>
189        <exclusion>
190          <groupId>com.sun.xml.bind</groupId>
191          <artifactId>jaxb-impl</artifactId>
192        </exclusion>
193      </exclusions>
194    </dependency>
195
196    <dependency>
197      <groupId>org.codehaus.jettison</groupId>
198      <artifactId>jettison</artifactId>
199      <version>1.2</version>
200      <exclusions>
201        <exclusion>
202          <groupId>stax</groupId>
203          <artifactId>stax-api</artifactId>
204        </exclusion>
205      </exclusions>
206    </dependency>
207
208    <dependency>
209      <groupId>org.slf4j</groupId>
210      <artifactId>slf4j-jdk14</artifactId>
211      <version>1.5.10</version>
212      <scope>runtime</scope>
213    </dependency>
214
215    <dependency>
216      <groupId>org.slf4j</groupId>
217      <artifactId>slf4j-api</artifactId>
218      <version>1.5.10</version>
219      <scope>runtime</scope>
220    </dependency>
221
222    <dependency>
223      <groupId>org.antlr</groupId>
224      <artifactId>antlr-runtime</artifactId>
225      <version>3.2</version>
226      <type>jar</type>
227    </dependency>
228  </dependencies>
229
230  <properties>
231    <!-- plug-in settings -->
232        <maven.compiler.source>1.6</maven.compiler.source>
233        <maven.compiler.target>1.6</maven.compiler.target>
234    <!-- dependency versions -->
235        <hibernate.version>3.5.0-CR-2</hibernate.version>
236        <hibernate.jpaVersion>1.0.0-CR-1</hibernate.jpaVersion>
237  </properties>
238</project>
Note: See TracBrowser for help on using the repository browser.