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

Last change on this file since 257 was 257, checked in by oschonef, 14 years ago
  • fix some javac warnings while generating JPA meta model
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 7.5 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                  <!-- hack to silence javac warnings -->
32                  <include name="**/*.java"/>
33                  <exclude name="**/VirtualCollectionValidator.java"/>
34                  <exclude name="**/*Provider.java"/>
35                  <compilerarg value="-proc:only"/>
36                  <classpath>
37                    <path refid="maven.compile.classpath"/>
38                  </classpath>
39                </javac>
40              </tasks>
41              <sourceRoot>${project.build.directory}/generated-sources/jpamodelgen</sourceRoot>
42            </configuration>
43            <goals>
44              <goal>run</goal>
45            </goals>
46          </execution>
47        </executions>
48      </plugin>
49
50      <plugin>
51        <groupId>org.antlr</groupId>
52        <artifactId>antlr3-maven-plugin</artifactId>
53        <version>3.2</version>
54        <executions>
55          <execution>
56            <goals>
57              <goal>antlr</goal>
58            </goals>
59          </execution>
60        </executions>
61      </plugin>
62
63      <plugin>
64        <groupId>org.apache.maven.plugins</groupId>
65        <artifactId>maven-compiler-plugin</artifactId>
66        <version>2.1</version>
67        <configuration>
68          <source>${maven.compiler.source}</source>
69          <target>${maven.compiler.target}</target>
70        </configuration>
71      </plugin>
72    </plugins>
73  </build>
74
75  <repositories>
76    <repository>
77      <id>repository.java-net</id>
78      <name>Java.net Repository</name>
79      <url>http://download.java.net/maven/2</url>
80    </repository>
81
82    <repository>
83      <id>repository.jboss</id>
84      <name>JBoss Repository</name>
85      <url>http://repository.jboss.com/maven2/</url>
86    </repository>
87  </repositories>
88  <pluginRepositories>
89    <pluginRepository>
90      <id>repository.java-net</id>
91      <name>Java.net Repository</name>
92      <url>http://download.java.net/maven/2</url>
93    </pluginRepository>
94
95    <pluginRepository>
96      <id>repository.jboss</id>
97      <name>JBoss Repository</name>
98      <url>http://repository.jboss.com/maven2/</url>
99    </pluginRepository>
100  </pluginRepositories>
101
102  <dependencies>
103    <dependency>
104      <groupId>javax.servlet</groupId>
105      <artifactId>servlet-api</artifactId>
106      <version>2.5</version>
107      <type>jar</type>
108      <scope>provided</scope>
109    </dependency>
110
111    <dependency>
112      <groupId>org.hibernate.javax.persistence</groupId>
113      <artifactId>hibernate-jpa-2.0-api</artifactId>
114      <version>${hibernate.jpaVersion}</version>
115    </dependency>
116
117    <dependency>
118      <groupId>org.hibernate</groupId>
119      <artifactId>hibernate-entitymanager</artifactId>
120      <version>${hibernate.version}</version>
121      <scope>runtime</scope>
122      <exclusions>
123        <exclusion>
124          <groupId>org.slf4j</groupId>
125          <artifactId>slf4j-api</artifactId>
126        </exclusion>
127      </exclusions>
128    </dependency>
129
130    <dependency>
131      <groupId>org.hibernate</groupId>
132      <artifactId>hibernate-jpamodelgen</artifactId>
133      <version>${hibernate.jpaVersion}</version>
134      <!-- "provided" is actually a lie, but this dependency is only
135           needed at compile time, and "provided" does the trick -->
136      <scope>provided</scope>
137      <exclusions>
138        <exclusion>
139          <!-- Use the jpa-api defined here, crossing fingers they match up signature-wise -->
140          <groupId>org.hibernate.javax.persistence</groupId>
141          <artifactId>hibernate-jpa-2.0-api</artifactId>
142        </exclusion>
143        <exclusion>
144          <groupId>org.slf4j</groupId>
145          <artifactId>slf4j-api</artifactId>
146        </exclusion>
147      </exclusions>
148    </dependency>
149
150    <dependency>
151      <groupId>commons-lang</groupId>
152      <artifactId>commons-lang</artifactId>
153      <version>2.4</version>
154      <type>jar</type>
155    </dependency>
156
157    <dependency>
158      <groupId>javax.ws.rs</groupId>
159      <artifactId>jsr311-api</artifactId>
160      <version>1.1.1</version>
161      <type>jar</type>
162    </dependency>
163
164    <dependency>
165      <groupId>com.sun.jersey</groupId>
166      <artifactId>jersey-server</artifactId>
167      <version>1.1.5</version>
168      <scope>runtime</scope>
169    </dependency>
170
171    <dependency>
172      <groupId>javax.xml.bind</groupId>
173      <artifactId>jaxb-api</artifactId>
174      <version>2.2</version>
175      <exclusions>
176        <exclusion>
177          <groupId>javax.xml.stream</groupId>
178          <artifactId>stax-api</artifactId>
179        </exclusion>
180      </exclusions>
181    </dependency>
182
183    <dependency>
184      <groupId>com.sun.jersey</groupId>
185      <artifactId>jersey-json</artifactId>
186      <version>1.1.5</version>
187      <scope>runtime</scope>
188      <exclusions>
189        <exclusion>
190          <groupId>stax</groupId>
191          <artifactId>stax-api</artifactId>
192        </exclusion>
193        <exclusion>
194          <groupId>com.sun.xml.bind</groupId>
195          <artifactId>jaxb-impl</artifactId>
196        </exclusion>
197      </exclusions>
198    </dependency>
199
200    <dependency>
201      <groupId>org.codehaus.jettison</groupId>
202      <artifactId>jettison</artifactId>
203      <version>1.2</version>
204      <exclusions>
205        <exclusion>
206          <groupId>stax</groupId>
207          <artifactId>stax-api</artifactId>
208        </exclusion>
209      </exclusions>
210    </dependency>
211
212    <dependency>
213      <groupId>org.slf4j</groupId>
214      <artifactId>slf4j-jdk14</artifactId>
215      <version>${slf4j.version}</version>
216      <scope>runtime</scope>
217    </dependency>
218
219    <dependency>
220      <groupId>org.slf4j</groupId>
221      <artifactId>slf4j-api</artifactId>
222      <version>${slf4j.version}</version>
223    </dependency>
224
225    <dependency>
226      <groupId>org.antlr</groupId>
227      <artifactId>antlr-runtime</artifactId>
228      <version>3.2</version>
229      <type>jar</type>
230    </dependency>
231    <dependency>
232        <groupId>org.apache.httpcomponents</groupId>
233        <artifactId>httpclient</artifactId>
234        <version>4.0.1</version>
235        <type>jar</type>
236        <scope>compile</scope>
237    </dependency>
238  </dependencies>
239
240  <properties>
241    <!-- plug-in settings -->
242        <maven.compiler.source>1.6</maven.compiler.source>
243        <maven.compiler.target>1.6</maven.compiler.target>
244    <!-- dependency versions -->
245        <hibernate.version>3.5.0-CR-2</hibernate.version>
246        <hibernate.jpaVersion>1.0.0-CR-1</hibernate.jpaVersion>
247        <slf4j.version>1.5.11</slf4j.version>
248  </properties>
249</project>
Note: See TracBrowser for help on using the repository browser.