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