Project

General

Profile

« Previous | Next » 

Revision 8150

Added by Jing Tao over 11 years ago

Use the properties for the schema url and name.

View differences:

metacat-common/pom.xml
7 7
	<version>2.2.0-SNAPSHOT</version>
8 8
	<name>metacat-common</name>
9 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>
10 14
	<repositories>
11 15
        <repository>
12 16
            <id>dataone.org</id>
......
99 103
              </goals>
100 104
            <configuration> 
101 105
                <connectionType>connection</connectionType> 
102
                <connectionUrl>scm:svn:https://repository.dataone.org/software/cicore/tags/DATAONE-CN-INDEX_v1.1.1/usr/share/dataone-cn-index/index-solr-schema-v1_1.xml</connectionUrl > 
106
                <connectionUrl>${d1_solr_index_schema_url}</connectionUrl > 
103 107
            </configuration> 
104 108
          </execution>
105 109
         </executions>
......
117 121
                        </goals>
118 122
                        <configuration>
119 123
                            <target name="copy and rename file">
120
                                <copy file="target/export/index-solr-schema-v1_1.xml" tofile="../metacat-index/src/main/resources/solr-home/conf/schema.xml" />
124
                                <copy file="target/export/${d1_solr_index_schema_name}" tofile="../metacat-index/src/main/resources/solr-home/conf/schema.xml" />
121 125
                            </target>
122 126
                        </configuration>
123 127
                    </execution>

Also available in: Unified diff