Project

General

Profile

« Previous | Next » 

Revision 8279

Added by Jing Tao about 11 years ago

Fixed a bug that the code copied the solr-home to the target directory before it checked out the schema from the dataone svn repository.

View differences:

metacat-common/pom.xml
100 100
            </resource>
101 101
        </resources>
102 102
	   <plugins> 
103
	     <plugin>
104
            <artifactId>maven-resources-plugin</artifactId>
105
            <version>2.6</version>
103
	       <plugin>
104
            <groupId>org.apache.maven.plugins</groupId> 
105
            <artifactId>maven-scm-plugin</artifactId> 
106
            <version>1.8.1</version> 
106 107
            <executions>
107 108
                <execution>
108
                    <id>copy-resources</id>
109
                    <!-- here the phase you need -->
110 109
                    <phase>validate</phase>
111 110
                    <goals>
112
                        <goal>copy-resources</goal>
111
                        <goal>export</goal>
113 112
                    </goals>
114
                    <configuration>
115
                        <outputDirectory>target/solr-home</outputDirectory>
116
                        <resources>          
117
                            <resource>
118
                                <directory>src/main/resources/solr-home</directory>
119
                                <filtering>false</filtering>
120
                            </resource>
121
                        </resources>              
122
                    </configuration>            
123
                 </execution>
124
                </executions>
125
       </plugin>
126
	   <plugin>
127
        <groupId>org.apache.maven.plugins</groupId> 
128
        <artifactId>maven-scm-plugin</artifactId> 
129
        <version>1.8.1</version> 
130
        <executions>
131
           <execution>
132
              <phase>validate</phase>
133
              <goals>
134
                <goal>export</goal>
135
              </goals>
136
            <configuration> 
137
                <connectionType>connection</connectionType> 
138
                <connectionUrl>${d1_solr_index_schema_url}</connectionUrl > 
139
            </configuration> 
140
          </execution>
141
         </executions>
142
        </plugin> 
143
        <plugin>
113
                    <configuration> 
114
                        <connectionType>connection</connectionType> 
115
                        <connectionUrl>${d1_solr_index_schema_url}</connectionUrl > 
116
                    </configuration> 
117
                </execution>
118
            </executions>
119
          </plugin> 
120
          <plugin>
144 121
                <groupId>org.apache.maven.plugins</groupId>
145 122
                <artifactId>maven-antrun-plugin</artifactId>
146 123
                <version>1.7</version>
......
159 136
                    </execution>
160 137
                </executions>
161 138
        </plugin>
139
        <plugin>
140
            <artifactId>maven-resources-plugin</artifactId>
141
            <version>2.6</version>
142
            <executions>
143
                <execution>
144
                    <id>copy-resources</id>
145
                    <!-- here the phase you need -->
146
                    <phase>validate</phase>
147
                    <goals>
148
                        <goal>copy-resources</goal>
149
                    </goals>
150
                    <configuration>
151
                        <outputDirectory>target/solr-home</outputDirectory>
152
                        <resources>          
153
                            <resource>
154
                                <directory>src/main/resources/solr-home</directory>
155
                                <filtering>false</filtering>
156
                            </resource>
157
                        </resources>              
158
                    </configuration>            
159
                 </execution>
160
                </executions>
161
        </plugin>
162 162
		<plugin>
163 163
				<groupId>org.apache.maven.plugins</groupId>
164 164
				<artifactId>maven-compiler-plugin</artifactId>

Also available in: Unified diff