Project

General

Profile

1 7628 tao
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 7702 leinfelder
	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>edu.ucsb.nceas.metacat.common</groupId>
5
	<artifactId>metacat-common</artifactId>
6
	<packaging>jar</packaging>
7 9419 leinfelder
	<version>2.6.0-SNAPSHOT</version>
8 7702 leinfelder
	<name>metacat-common</name>
9
	<url>http://maven.apache.org</url>
10 8150 tao
	<properties>
11
        <d1_solr_index_schema_name>index-solr-schema-v1_1.xml</d1_solr_index_schema_name>
12 8305 tao
        <d1_solr_index_schema_url>scm:svn:https://repository.dataone.org/software/cicore/tags/DATAONE-CN-INDEX_v1.2.1/usr/share/dataone-cn-index</d1_solr_index_schema_url>
13 8150 tao
    </properties>
14 7804 tao
	<repositories>
15
        <repository>
16
            <id>dataone.org</id>
17 8965 leinfelder
            <url>http://maven.dataone.org</url>
18 7804 tao
            <releases>
19
                <enabled>true</enabled>
20
            </releases>
21
            <snapshots>
22
                <enabled>true</enabled>
23
            </snapshots>
24
        </repository>
25
    </repositories>
26 7702 leinfelder
	<dependencies>
27
		<dependency>
28
			<groupId>junit</groupId>
29
			<artifactId>junit</artifactId>
30 7758 tao
			<version>4.8.2</version>
31 7702 leinfelder
			<scope>test</scope>
32
		</dependency>
33
		<dependency>
34 8118 tao
            <groupId>javax.servlet</groupId>
35
            <artifactId>servlet-api</artifactId>
36
            <version>2.5</version>
37
            <type>jar</type>
38
            <scope>test</scope>
39
        </dependency>
40
		<dependency>
41 7702 leinfelder
			<groupId>org.apache.solr</groupId>
42
			<artifactId>solr-core</artifactId>
43
			<version>3.4.0</version>
44 8332 tao
			<exclusions>
45
                <exclusion>
46
                  <groupId>org.slf4j</groupId>
47
                  <artifactId>slf4j-jdk14</artifactId>
48
                </exclusion>
49
            </exclusions>
50 7702 leinfelder
		</dependency>
51 8332 tao
		  <dependency>
52
            <groupId>org.slf4j</groupId>
53
            <artifactId>slf4j-log4j12</artifactId>
54
            <version>1.6.1</version>
55
        </dependency>
56 7702 leinfelder
		<dependency>
57
			<groupId>org.apache.solr</groupId>
58
			<artifactId>solr-test-framework</artifactId>
59
			<version>3.4.0</version>
60
		</dependency>
61
		<dependency>
62 7716 tao
			<groupId>org.dataone</groupId>
63
			<artifactId>d1_common_java</artifactId>
64 9550 tao
			<version>2.2.0-SNAPSHOT</version>
65 7716 tao
			<type>jar</type>
66
			<!-- exclude extraneous artifacts (jars) -->
67
			<exclusions>
68
		        <exclusion>
69
		          <groupId>org.jibx</groupId>
70
		          <artifactId>jibx-tools</artifactId>
71
		        </exclusion>
72
		        <exclusion>
73
		          <groupId>org.jibx</groupId>
74
		          <artifactId>jibx-schema</artifactId>
75
		        </exclusion>
76
		        <exclusion>
77
		          <groupId>org.jibx</groupId>
78
		          <artifactId>jibx-extras</artifactId>
79
		        </exclusion>
80
		        <exclusion>
81
		          <groupId>org.jibx</groupId>
82
		          <artifactId>jibx-bind</artifactId>
83
		        </exclusion>
84
		        <exclusion>
85
		        	<groupId>org.apache.maven.plugins</groupId>
86
					<artifactId>maven-compiler-plugin</artifactId>
87
		        </exclusion>
88
		        <exclusion>
89
		        	<groupId>org.apache.maven.plugins</groupId>
90
					<artifactId>maven-jar-plugin</artifactId>
91
		        </exclusion>
92
		        <exclusion>
93
		        	<groupId>org.apache.maven.plugins</groupId>
94
					<artifactId>maven-clean-plugin</artifactId>
95
		        </exclusion>
96
		        <exclusion>
97
		        	<groupId>org.jibx</groupId>
98
					<artifactId>maven-jibx-plugin</artifactId>
99
		        </exclusion>
100
			</exclusions>
101
		</dependency>
102 7702 leinfelder
	</dependencies>
103 7738 leinfelder
	<build>
104 8158 tao
	   <resources>
105
            <resource>
106
                <directory>src/main/resources</directory>
107
                <excludes>
108
                    <exclude>solr-home/**</exclude>
109
                </excludes>
110
                <filtering>false</filtering>
111
            </resource>
112
        </resources>
113 8143 tao
	   <plugins>
114 8498 leinfelder
	   	<!--
115 8279 tao
	       <plugin>
116
            <groupId>org.apache.maven.plugins</groupId>
117
            <artifactId>maven-scm-plugin</artifactId>
118
            <version>1.8.1</version>
119 8158 tao
            <executions>
120
                <execution>
121
                    <phase>validate</phase>
122
                    <goals>
123 8279 tao
                        <goal>export</goal>
124 8158 tao
                    </goals>
125 8279 tao
                    <configuration>
126
                        <connectionType>connection</connectionType>
127
                        <connectionUrl>${d1_solr_index_schema_url}</connectionUrl >
128
                    </configuration>
129
                </execution>
130
            </executions>
131
          </plugin>
132 8498 leinfelder
          -->
133
          <!--
134 8279 tao
          <plugin>
135 8143 tao
                <groupId>org.apache.maven.plugins</groupId>
136
                <artifactId>maven-antrun-plugin</artifactId>
137
                <version>1.7</version>
138
                <executions>
139
                    <execution>
140
                        <id>copy</id>
141
                        <phase>validate</phase>
142
                         <goals>
143
                            <goal>run</goal>
144
                        </goals>
145
                        <configuration>
146
                            <target name="copy and rename file">
147 8302 tao
                                <copy file="target/export/${d1_solr_index_schema_name}" tofile="src/main/resources/solr-home/conf/schema.xml" overwrite="true" />
148 8143 tao
                            </target>
149
                        </configuration>
150
                    </execution>
151
                </executions>
152
        </plugin>
153 8498 leinfelder
        -->
154 8279 tao
        <plugin>
155
            <artifactId>maven-resources-plugin</artifactId>
156
            <version>2.6</version>
157
            <executions>
158
                <execution>
159
                    <id>copy-resources</id>
160
                    <!-- here the phase you need -->
161
                    <phase>validate</phase>
162
                    <goals>
163
                        <goal>copy-resources</goal>
164
                    </goals>
165
                    <configuration>
166
                        <outputDirectory>target/solr-home</outputDirectory>
167
                        <resources>
168
                            <resource>
169
                                <directory>src/main/resources/solr-home</directory>
170
                                <filtering>false</filtering>
171
                            </resource>
172 8302 tao
                        </resources>
173
                        <overwrite>true</overwrite>
174 8279 tao
                    </configuration>
175
                 </execution>
176
                </executions>
177
        </plugin>
178 8143 tao
		<plugin>
179 7738 leinfelder
				<groupId>org.apache.maven.plugins</groupId>
180
				<artifactId>maven-compiler-plugin</artifactId>
181
				<version>2.3</version>
182
				<configuration>
183
					<source>1.6</source>
184
					<target>1.6</target>
185
				</configuration>
186
			</plugin>
187
		</plugins>
188
	</build>
189 7628 tao
</project>