Project

General

Profile

metacat / metacat-common / pom.xml @ 8150

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.2.0-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.1.1/usr/share/dataone-cn-index/${d1_solr_index_schema_name}</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
                </dependency>
45
                <dependency>
46
                        <groupId>org.apache.solr</groupId>
47
                        <artifactId>solr-test-framework</artifactId>
48
                        <version>3.4.0</version>
49
                </dependency>
50
                <dependency>
51
                        <groupId>org.dataone</groupId>
52
                        <artifactId>d1_common_java</artifactId>
53
                        <version>1.1.3</version>
54
                        <type>jar</type>
55
                        <!-- exclude extraneous artifacts (jars) -->
56
                        <exclusions>
57
                        <exclusion>
58
                          <groupId>org.jibx</groupId>
59
                          <artifactId>jibx-tools</artifactId>
60
                        </exclusion>
61
                        <exclusion>
62
                          <groupId>org.jibx</groupId>
63
                          <artifactId>jibx-schema</artifactId>
64
                        </exclusion>
65
                        <exclusion>
66
                          <groupId>org.jibx</groupId>
67
                          <artifactId>jibx-extras</artifactId>
68
                        </exclusion>
69
                        <exclusion>
70
                          <groupId>org.jibx</groupId>
71
                          <artifactId>jibx-bind</artifactId>
72
                        </exclusion>
73
                        <exclusion>
74
                                <groupId>org.apache.maven.plugins</groupId>
75
                                        <artifactId>maven-compiler-plugin</artifactId>
76
                        </exclusion>
77
                        <exclusion>
78
                                <groupId>org.apache.maven.plugins</groupId>
79
                                        <artifactId>maven-jar-plugin</artifactId>
80
                        </exclusion>
81
                        <exclusion>
82
                                <groupId>org.apache.maven.plugins</groupId>
83
                                        <artifactId>maven-clean-plugin</artifactId>
84
                        </exclusion>
85
                        <exclusion>
86
                                <groupId>org.jibx</groupId>
87
                                        <artifactId>maven-jibx-plugin</artifactId>
88
                        </exclusion>
89
                        </exclusions>
90
                </dependency>
91
        </dependencies>
92
        <build>
93
           <plugins> 
94
           <plugin>
95
        <groupId>org.apache.maven.plugins</groupId> 
96
        <artifactId>maven-scm-plugin</artifactId> 
97
        <version>1.8.1</version> 
98
        <executions>
99
           <execution>
100
              <phase>validate</phase>
101
              <goals>
102
                <goal>export</goal>
103
              </goals>
104
            <configuration> 
105
                <connectionType>connection</connectionType> 
106
                <connectionUrl>${d1_solr_index_schema_url}</connectionUrl > 
107
            </configuration> 
108
          </execution>
109
         </executions>
110
        </plugin> 
111
        <plugin>
112
                <groupId>org.apache.maven.plugins</groupId>
113
                <artifactId>maven-antrun-plugin</artifactId>
114
                <version>1.7</version>
115
                <executions>
116
                    <execution>
117
                        <id>copy</id>
118
                        <phase>validate</phase>
119
                         <goals>
120
                            <goal>run</goal>
121
                        </goals>
122
                        <configuration>
123
                            <target name="copy and rename file">
124
                                <copy file="target/export/${d1_solr_index_schema_name}" tofile="../metacat-index/src/main/resources/solr-home/conf/schema.xml" />
125
                            </target>
126
                        </configuration>
127
                    </execution>
128
                </executions>
129
        </plugin>
130
                <plugin>
131
                                <groupId>org.apache.maven.plugins</groupId>
132
                                <artifactId>maven-compiler-plugin</artifactId>
133
                                <version>2.3</version>
134
                                <configuration>
135
                                        <source>1.6</source>
136
                                        <target>1.6</target>
137
                                </configuration>
138
                        </plugin>
139
                </plugins>
140
        </build>
141
</project>