Andy Seaborne wrote:
>> I tried to run mvn eclipse:eclipse to update the .classpath but I run
>> into a strange problem and failed to do that. I'll try again later.
> 
> Works for me in a test project.

Just for documenting my problem (in case others have/see the same)...

cd /tmp
svn co http://svn.apache.org/repos/asf/incubator/jena/Jena2/Fuseki/trunk/ Fuseki
cd Fuseki/
mvn eclipse:eclipse

[...]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on
project jena-fuseki: Request to merge when 'filtering' is not identical.
Original=resource src/main/resources: output=target/classes-eclipse, include=[],
exclude=[META-INF/NOTICE|META-INF/LICENSE|META-INF/DEPENDENCIES|**/*.java],
test=false, filtering=false, merging with=resource src/main/resources:
output=target/classes-eclipse,
include=[org/apache/jena/fuseki/fuseki-properties.xml], exclude=[**/*.java],
test=false, filtering=true -> [Help 1]

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)

This used to work for me.

It is probably something related to:

    <resources>
      <!-- Order of resource elements matters -->
      <resource>
        <filtering>false</filtering>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
        <includes>
          <include>org/apache/jena/fuseki/fuseki-properties.xml</include>
        </includes>
      </resource>
    </resources>

... having two <resource>s pointing to the same <directory> somehow is
confusing my Maven and/or is there a bug in maven-remote-resources-plugin!?
Is this causing problems to someone else?

This seems to fix the problem I am experiencing:

Index: pom.xml
===================================================================
--- pom.xml     (revision 1292443)
+++ pom.xml     (working copy)
@@ -220,17 +220,9 @@

   <build>
     <resources>
-      <!-- Order of resource elements matters -->
       <resource>
-        <filtering>false</filtering>
-        <directory>src/main/resources</directory>
-      </resource>
-      <resource>
         <filtering>true</filtering>
         <directory>src/main/resources</directory>
-       <includes>
-         <include>org/apache/jena/fuseki/fuseki-properties.xml</include>
-       </includes>
       </resource>
     </resources>
     <filters>
@@ -388,6 +380,15 @@
         </configuration>
       </plugin>

+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-remote-resources-plugin</artifactId>
+        <version>1.2.1</version>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+
     </plugins>

   </build>


> I'll swap after some experimentation on configurations.

Ack. Thanks.

Paolo
> 
>     Andy
> 
>>
>> Paolo
> 

Reply via email to