Project

General

Profile

« Previous | Next » 

Revision 8158

Added by Jing Tao almost 11 years ago

Not include the solr-home in the jar file.

View differences:

metacat-common/pom.xml
90 90
		</dependency>
91 91
	</dependencies>
92 92
	<build>
93
	   <resources>
94
            <resource>
95
                <directory>src/main/resources</directory>
96
                <excludes>
97
                    <exclude>solr-home/**</exclude>
98
                </excludes>
99
                <filtering>false</filtering>
100
            </resource>
101
        </resources>
93 102
	   <plugins> 
103
	     <plugin>
104
            <artifactId>maven-resources-plugin</artifactId>
105
            <version>2.6</version>
106
            <executions>
107
                <execution>
108
                    <id>copy-resources</id>
109
                    <!-- here the phase you need -->
110
                    <phase>validate</phase>
111
                    <goals>
112
                        <goal>copy-resources</goal>
113
                    </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>
94 126
	   <plugin>
95 127
        <groupId>org.apache.maven.plugins</groupId> 
96 128
        <artifactId>maven-scm-plugin</artifactId> 

Also available in: Unified diff