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 8458 leinfelder
	<version>2.4.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
            <url>http://dev-testing.dataone.org/maven</url>
18
            <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 8105 leinfelder
			<version>1.1.3</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 8279 tao
	       <plugin>
115
            <groupId>org.apache.maven.plugins</groupId>
116
            <artifactId>maven-scm-plugin</artifactId>
117
            <version>1.8.1</version>
118 8158 tao
            <executions>
119
                <execution>
120
                    <phase>validate</phase>
121
                    <goals>
122 8279 tao
                        <goal>export</goal>
123 8158 tao
                    </goals>
124 8279 tao
                    <configuration>
125
                        <connectionType>connection</connectionType>
126
                        <connectionUrl>${d1_solr_index_schema_url}</connectionUrl >
127
                    </configuration>
128
                </execution>
129
            </executions>
130
          </plugin>
131
          <plugin>
132 8143 tao
                <groupId>org.apache.maven.plugins</groupId>
133
                <artifactId>maven-antrun-plugin</artifactId>
134
                <version>1.7</version>
135
                <executions>
136
                    <execution>
137
                        <id>copy</id>
138
                        <phase>validate</phase>
139
                         <goals>
140
                            <goal>run</goal>
141
                        </goals>
142
                        <configuration>
143
                            <target name="copy and rename file">
144 8302 tao
                                <copy file="target/export/${d1_solr_index_schema_name}" tofile="src/main/resources/solr-home/conf/schema.xml" overwrite="true" />
145 8143 tao
                            </target>
146
                        </configuration>
147
                    </execution>
148
                </executions>
149
        </plugin>
150 8279 tao
        <plugin>
151
            <artifactId>maven-resources-plugin</artifactId>
152
            <version>2.6</version>
153
            <executions>
154
                <execution>
155
                    <id>copy-resources</id>
156
                    <!-- here the phase you need -->
157
                    <phase>validate</phase>
158
                    <goals>
159
                        <goal>copy-resources</goal>
160
                    </goals>
161
                    <configuration>
162
                        <outputDirectory>target/solr-home</outputDirectory>
163
                        <resources>
164
                            <resource>
165
                                <directory>src/main/resources/solr-home</directory>
166
                                <filtering>false</filtering>
167
                            </resource>
168 8302 tao
                        </resources>
169
                        <overwrite>true</overwrite>
170 8279 tao
                    </configuration>
171
                 </execution>
172
                </executions>
173
        </plugin>
174 8143 tao
		<plugin>
175 7738 leinfelder
				<groupId>org.apache.maven.plugins</groupId>
176
				<artifactId>maven-compiler-plugin</artifactId>
177
				<version>2.3</version>
178
				<configuration>
179
					<source>1.6</source>
180
					<target>1.6</target>
181
				</configuration>
182
			</plugin>
183
		</plugins>
184
	</build>
185 7628 tao
</project>