Author: jukka
Date: Sun Dec 14 13:42:06 2008
New Revision: 726539

URL: http://svn.apache.org/viewvc?rev=726539&view=rev
Log:
TIKA-184: Avoid the <resource/> entry on ${basedir}

Use the copy-resources goal of maven-resources-plugin to copy the
META-INF files. This way Eclipse does not get confused.

Modified:
    lucene/tika/trunk/pom.xml

Modified: lucene/tika/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/lucene/tika/trunk/pom.xml?rev=726539&r1=726538&r2=726539&view=diff
==============================================================================
--- lucene/tika/trunk/pom.xml (original)
+++ lucene/tika/trunk/pom.xml Sun Dec 14 13:42:06 2008
@@ -245,15 +245,6 @@
         <targetPath>org/apache/tika</targetPath>
         <directory>${basedir}/src/main/resources</directory>
       </resource>
-      <resource>
-        <targetPath>META-INF</targetPath>
-        <directory>${basedir}</directory>
-        <includes>
-          <include>README.txt</include>
-          <include>NOTICE.txt</include>
-          <include>LICENSE.txt</include>
-        </includes>
-      </resource>
     </resources>
     <plugins>
       <plugin>
@@ -267,6 +258,33 @@
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
         <version>2.3</version>
+        <configuration>
+          <encoding>UTF-8</encoding>
+        </configuration>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>
+                ${project.build.directory}/classes/META-INF
+              </outputDirectory>
+              <resources>
+                <resource>
+                  <directory>${basedir}</directory>
+                  <includes>
+                    <include>README.txt</include>
+                    <include>NOTICE.txt</include>
+                    <include>LICENSE.txt</include>
+                  </includes>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>


Reply via email to