Project

General

Profile

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>edu.ucsb.nceas.metacat.common</groupId>
5
	<artifactId>metacat-common</artifactId>
6
	<packaging>jar</packaging>
7
	<version>2.4.2-SNAPSHOT</version>
8
	<name>metacat-common</name>
9
	<url>http://maven.apache.org</url>
10
	<properties>
11
        <d1_solr_index_schema_name>index-solr-schema-v1_1.xml</d1_solr_index_schema_name>
12
        <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
    </properties>
14
	<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
	<dependencies>
27
		<dependency>
28
			<groupId>junit</groupId>
29
			<artifactId>junit</artifactId>
30
			<version>4.8.2</version>
31
			<scope>test</scope>
32
		</dependency>
33
		<dependency>
34
            <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
			<groupId>org.apache.solr</groupId>
42
			<artifactId>solr-core</artifactId>
43
			<version>3.4.0</version>
44
			<exclusions>
45
                <exclusion>
46
                  <groupId>org.slf4j</groupId>
47
                  <artifactId>slf4j-jdk14</artifactId>
48
                </exclusion>
49
            </exclusions>
50
		</dependency>
51
		  <dependency>
52
            <groupId>org.slf4j</groupId>
53
            <artifactId>slf4j-log4j12</artifactId>
54
            <version>1.6.1</version>
55
        </dependency>
56
		<dependency>
57
			<groupId>org.apache.solr</groupId>
58
			<artifactId>solr-test-framework</artifactId>
59
			<version>3.4.0</version>
60
		</dependency>
61
		<dependency>
62
			<groupId>org.dataone</groupId>
63
			<artifactId>d1_common_java</artifactId>
64
			<version>1.1.3</version>
65
			<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
	</dependencies>
103
	<build>
104
	   <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
	   <plugins> 
114
	   	<!--  
115
	       <plugin>
116
            <groupId>org.apache.maven.plugins</groupId> 
117
            <artifactId>maven-scm-plugin</artifactId> 
118
            <version>1.8.1</version> 
119
            <executions>
120
                <execution>
121
                    <phase>validate</phase>
122
                    <goals>
123
                        <goal>export</goal>
124
                    </goals>
125
                    <configuration> 
126
                        <connectionType>connection</connectionType> 
127
                        <connectionUrl>${d1_solr_index_schema_url}</connectionUrl > 
128
                    </configuration> 
129
                </execution>
130
            </executions>
131
          </plugin> 
132
          -->
133
          <!--  
134
          <plugin>
135
                <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
                                <copy file="target/export/${d1_solr_index_schema_name}" tofile="src/main/resources/solr-home/conf/schema.xml" overwrite="true" />
148
                            </target>
149
                        </configuration>
150
                    </execution>
151
                </executions>
152
        </plugin>
153
        -->
154
        <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
                        </resources>
173
                        <overwrite>true</overwrite>              
174
                    </configuration>            
175
                 </execution>
176
                </executions>
177
        </plugin>
178
		<plugin>
179
				<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
</project>
    (1-1/1)