source: ComponentRegistry/trunk/ComponentRegistry/pom.xml @ 207

Last change on this file since 207 was 207, checked in by patdui, 14 years ago
  • addd Basic security in webapp
  • Added Delete functionality in registry
  • Made POST and DELETE use authorisation
File size: 10.2 KB
Line 
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4  <groupId>clarin.cmdi</groupId>
5  <artifactId>ComponentRegistry</artifactId>
6  <packaging>${packaging}</packaging>
7  <version>1.1-SNAPSHOT</version>
8  <name>ComponentRegistry</name>
9  <description>
10        ComponentRegistry is part of the clarin metadata infrastructure (cmdi).
11        The goal of the ComponentRegistry will be to register and make searchable Metadata Components and Profiles.
12  </description>
13
14  <dependencies>
15    <dependency>
16      <groupId>junit</groupId>
17      <artifactId>junit</artifactId>
18      <version>4.6</version>
19      <scope>test</scope>
20    </dependency>
21    <dependency>
22      <groupId>net.sf.saxon</groupId>
23      <artifactId>saxon</artifactId>
24      <version>8.7</version>
25    </dependency>
26    <dependency>
27      <groupId>javax.xml.bind</groupId>
28      <artifactId>jaxb-api</artifactId>
29      <version>2.1</version>
30    </dependency>
31    <dependency>
32      <groupId>javax.xml</groupId>
33      <artifactId>jaxb-impl</artifactId>
34      <version>2.1</version>
35    </dependency>
36    <dependency>
37      <groupId>javax.servlet</groupId>
38      <artifactId>servlet-api</artifactId>
39      <version>2.5</version>
40      <scope>provided</scope>
41    </dependency>
42    <dependency>
43      <groupId>commons-io</groupId>
44      <artifactId>commons-io</artifactId>
45      <version>1.4</version>
46    </dependency>
47    <dependency>
48      <groupId>commons-lang</groupId>
49      <artifactId>commons-lang</artifactId>
50      <version>2.1</version>
51    </dependency>
52    <dependency>
53      <groupId>commons-fileupload</groupId>
54      <artifactId>commons-fileupload</artifactId>
55      <version>1.2.1</version>
56    </dependency>
57    <dependency>
58      <groupId>org.slf4j</groupId>
59      <artifactId>slf4j-log4j12</artifactId>
60      <version>1.4.2</version>
61    </dependency>
62    <dependency>
63      <groupId>log4j</groupId>
64      <artifactId>log4j</artifactId>
65      <version>1.2.14</version>
66    </dependency>
67    <dependency>
68      <groupId>org.springframework</groupId>
69      <artifactId>spring</artifactId>
70      <version>2.5.6</version>
71    </dependency>
72    <dependency>
73      <groupId>com.sun.jersey</groupId>
74      <artifactId>jersey-server</artifactId>
75      <version>1.1.5</version>
76    </dependency>
77    <dependency> <!-- Needed for "automatic" json support -->
78      <groupId>com.sun.jersey</groupId>
79      <artifactId>jersey-json</artifactId>
80      <version>1.1.5</version>
81      <exclusions>
82        <!--
83          Jersey has dependencies with different group ids therefore maven cannot resolve the conflict and gives me both
84          jars (two of stax and two of jaxb-impl). Excluding them manually to overcome the problem
85        -->
86        <exclusion>
87          <groupId>stax</groupId>
88          <artifactId>stax-api</artifactId>
89        </exclusion>
90        <exclusion>
91          <groupId>com.sun.xml.bind</groupId>
92          <artifactId>jaxb-impl</artifactId>
93        </exclusion>
94      </exclusions>
95    </dependency>
96    <dependency> <!-- Needed for form upload support -->
97      <groupId>com.sun.jersey.contribs</groupId>
98      <artifactId>jersey-multipart</artifactId>
99      <version>1.1.5</version>
100    </dependency>
101    <dependency> <!-- Client used for RegistryFiller command line tool-->
102      <groupId>com.sun.jersey</groupId>
103      <artifactId>jersey-client</artifactId>
104      <version>1.1.5</version>
105    </dependency>
106    <dependency>
107      <groupId>net.sf.saxon</groupId>
108      <artifactId>saxon-dom</artifactId>
109      <version>8.7</version>
110    </dependency>
111
112    <dependency>
113      <groupId>com.sun.jersey</groupId>
114      <artifactId>jersey-test-framework</artifactId>
115      <version>1.1.5</version>
116      <scope>test</scope>
117      <exclusions>
118        <exclusion>
119          <groupId>org.glassfish.embedded</groupId>
120          <artifactId>glassfish-embedded-all</artifactId>
121        </exclusion>
122        <exclusion>
123          <groupId>com.sun.grizzly</groupId>
124          <artifactId>grizzly-servlet-webserver</artifactId>
125        </exclusion>
126        <exclusion>
127          <groupId>com.sun.xml.bind</groupId>
128          <artifactId>jaxb-impl</artifactId>
129        </exclusion>
130      </exclusions>
131    </dependency>
132    <dependency>
133      <groupId>com.sun.xml.stream</groupId>
134      <artifactId>sjsxp</artifactId>
135      <version>1.0.1</version>
136    </dependency>
137    <dependency>
138      <groupId>de.mpg.mpgaai</groupId>
139      <artifactId>mpgaai-jaas</artifactId>
140      <version>1.3.2</version>
141    </dependency>
142
143    <dependency>
144      <groupId>de.mpg.mpgaai</groupId>
145      <artifactId>mpgaai-shhaa</artifactId>
146      <version>1.0.2</version>
147    </dependency>
148
149  </dependencies>
150
151  <properties>
152    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
153    <packaging>war</packaging>
154    <!-- Properties to configure ComponentRegistry override on commandline with -D or change here -->
155    <serviceRootUrl>http://localhost:8080/${pom.artifactId}</serviceRootUrl>
156    <registryRoot>/tmp/ComponentRegistry</registryRoot> <!-- /Users/patdui/Workspace/Clarin/MyRegistry -->
157    <ComponentBrowserGuiVersion>1.1-SNAPSHOT</ComponentBrowserGuiVersion>
158  </properties>
159
160  <build>
161    <filters>
162      <filter>properties/flexindex.properties</filter>
163    </filters>
164    <resources>
165      <resource>
166        <filtering>false</filtering>
167        <directory>src/generated/jaxb</directory>
168      </resource>
169      <resource>
170        <filtering>true</filtering>
171        <directory>src/main/resources</directory>
172      </resource>
173    </resources>
174    <testResources>
175      <testResource>
176        <directory>src/test/resources</directory>
177      </testResource>
178    </testResources>
179    <plugins>
180      <plugin>
181        <groupId>org.apache.maven.plugins</groupId>
182        <artifactId>maven-compiler-plugin</artifactId>
183        <configuration>
184          <source>1.5</source>
185          <target>1.5</target>
186        </configuration>
187      </plugin>
188      <plugin>
189        <groupId>org.apache.maven.plugins</groupId>
190        <artifactId>maven-war-plugin</artifactId>
191        <configuration>
192          <warName>${pom.artifactId}</warName>
193          <webResources>
194            <resource>
195              <directory>src/main/webresources</directory>
196              <filtering>true</filtering>
197              <includes>
198                <include>index.html</include>
199                <include>WEB-INF/applicationContext.xml</include>
200              </includes>
201            </resource>
202          </webResources>
203        </configuration>
204      </plugin>
205      <plugin>
206        <groupId>org.jvnet.jaxb2.maven2</groupId>
207        <artifactId>maven-jaxb2-plugin</artifactId>
208        <executions>
209          <execution>
210            <goals>
211              <goal>generate</goal>
212            </goals>
213          </execution>
214        </executions>
215        <configuration>
216          <!-- assuming claring metadata project is checked out in same folder as this project -->
217          <schemaDirectory>../../metadata/toolkit/</schemaDirectory>
218          <schemaIncludes>
219            <include>general-component-schema.xsd</include>
220          </schemaIncludes>
221          <bindingDirectory>src/main/binding</bindingDirectory>
222          <extension>true</extension>
223          <generateDirectory>${basedir}/src/generated/jaxb</generateDirectory>
224          <generatePackage>clarin.cmdi.componentregistry.components</generatePackage>
225        </configuration>
226      </plugin>
227      <plugin>
228        <groupId>org.apache.maven.plugins</groupId>
229        <artifactId>maven-dependency-plugin</artifactId>
230        <executions>
231          <execution>
232            <id>copy</id>
233            <phase>process-resources</phase>
234            <goals>
235              <goal>copy</goal>
236            </goals>
237            <configuration>
238              <artifactItems>
239                <artifactItem>
240                  <groupId>clarin.cmdi</groupId>
241                  <artifactId>ComponentBrowserGui</artifactId>
242                  <version>${ComponentBrowserGuiVersion}</version>
243                  <type>swf</type>
244                  <overWrite>true</overWrite>
245                  <outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
246                  <destFileName>${pom.artifactId}.swf</destFileName>
247                </artifactItem>
248              </artifactItems>
249            </configuration>
250          </execution>
251        </executions>
252      </plugin>
253      <!--
254        Assembly helper to create the RegistryFiller tool a command line tool which can help fill in a registry with
255        existing components/profiles. Build the tool with: mvn -Dpackaging=jar -Dmaven.test.skip=true assembly:assembly
256        This creates a in "target" a ComponentRegistry-1.0-SNAPSHOT-RegistryFiller directory with a bin and share
257        directory. You can start the tool from the bin dir.
258      -->
259      <plugin>
260        <groupId>org.apache.maven.plugins</groupId>
261        <artifactId>maven-assembly-plugin</artifactId>
262        <configuration>
263          <attach>false</attach>
264          <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
265          <descriptors>
266            <descriptor>src/main/assembly/registryFiller.xml</descriptor>
267          </descriptors>
268        </configuration>
269      </plugin>
270    </plugins>
271  </build>
272
273
274
275  <repositories>
276    <repository>
277      <id>maven2-repository.dev.java.net</id>
278      <name>Java.net Maven 2 Repository</name>
279      <url>http://download.java.net/maven/2</url>
280    </repository>
281    <repository>
282      <id>maven-repository.dev.java.net</id>
283      <name>Java.net Maven 1 Repository (legacy)</name>
284      <url>http://download.java.net/maven/1</url>
285      <layout>legacy</layout>
286    </repository>
287  </repositories>
288  <pluginRepositories>
289    <pluginRepository>
290      <id>maven2-repository.dev.java.net</id>
291      <name>Java.net Maven 2 Repository</name>
292      <url>http://download.java.net/maven/2</url>
293    </pluginRepository>
294    <pluginRepository>
295      <id>maven-repository.dev.java.net</id>
296      <name>Java.net Maven 1 Repository (legacy)</name>
297      <url>http://download.java.net/maven/1</url>
298      <layout>legacy</layout>
299    </pluginRepository>
300  </pluginRepositories>
301
302</project>
Note: See TracBrowser for help on using the repository browser.