Return-Path: X-Original-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2591B90E5 for ; Fri, 9 Mar 2012 14:06:28 +0000 (UTC) Received: (qmail 18322 invoked by uid 500); 9 Mar 2012 14:06:28 -0000 Delivered-To: apmail-incubator-connectors-dev-archive@incubator.apache.org Received: (qmail 18270 invoked by uid 500); 9 Mar 2012 14:06:28 -0000 Mailing-List: contact connectors-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-dev@incubator.apache.org Received: (qmail 18262 invoked by uid 99); 9 Mar 2012 14:06:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 14:06:28 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [129.240.10.58] (HELO mail-out2.uio.no) (129.240.10.58) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 14:06:19 +0000 Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.75) (envelope-from ) id 1S60SE-0004xX-UE for connectors-dev@incubator.apache.org; Fri, 09 Mar 2012 15:05:58 +0100 Received: from c137bbf51.dhcp.bluecom.no ([81.191.123.19] helo=erlend-garasens-macbook-pro.local) by mail-mx4.uio.no with esmtpsa (TLSv1:CAMELLIA256-SHA:256) user erlendfg (Exim 4.76) (envelope-from ) id 1S60SE-0004pn-5W for connectors-dev@incubator.apache.org; Fri, 09 Mar 2012 15:05:58 +0100 Message-ID: <4F5A0E45.5050807@usit.uio.no> Date: Fri, 09 Mar 2012 15:05:57 +0100 From: =?UTF-8?B?RXJsZW5kIEdhcsOlc2Vu?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: connectors-dev@incubator.apache.org Subject: Re: mvn eclipse:eclipse fails with Maven 3 References: <4F5A0798.1020705@usit.uio.no> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-UiO-Ratelimit-Test: rcpts/h 1 msgs/h 1 sum rcpts/h 2 sum msgs/h 2 total rcpts 5326 max rcpts/h 29 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 7913BA8962CC88742FF1C810F438EABD06E379DD X-UiO-SPAM-Test: remote_host: 81.191.123.19 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 221 max/h 6 blacklist 0 greylist 0 ratelimit 0 X-Virus-Checked: Checked by ClamAV on apache.org Thanks for your answer, Piergiorgio. I have a workaround, so it's not a blocker. Since I upgraded Maven for only a week ago, I guess that I will get similar problems with my other Java projects as well. Erlend On 09.03.12 14.55, Piergiorgio Lucidi wrote: > Hi Erlend, > > that problem depends on some issues about filtering of the Maven > Eclipse Plugin that are introduced with the latest versions. > Infact in the 2.6 version there is no problem. > > Now I think that this plugin could be considered deprecated. > We are waiting for the new version that should have all these issues > solved but I don't know when it will be released. > > There are many other projects in the world that exactly have the same problem. > > I suggest to use the m2Eclipse plugin directly inside Eclipse IDE > without invoking the mvn eclipse:eclipse command. > m2Eclipse is the most updated plugin with all the these issues solved. > > I don't use Maven Eclipse Plugin for a long time because I never need to use it. > Hope this helps. > > Cheers, > Piergiorgio > > Il 09 marzo 2012 14:45, Karl Wright ha scritto: >> Hi Erlend, >> >> The pom which maven is unhappy with came from Alfresco. We included >> it in the project with only minor modifications. But it does a whole >> pile of stuff that I don't really understand in the process of >> constructing the alfresco.war. >> >> Piergiorgio may have a better idea what is going wrong. Hopefully he >> will chime in. >> >> Karl >> >> >> On Fri, Mar 9, 2012 at 8:37 AM, Erlend Garåsen wrote: >>> >>> When I try to run mvn eclipse:eclipse in order to prepare the MCF project >>> for Eclipse, I get an error which seems to be related to the Alfresco >>> connector, but this might be an issue with version 2.8 of the Maven Eclipse >>> plugin. BTW, it works by running the following: >>> mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse >>> >>> I upgraded to Maven 3 for a week ago, so I haven't seen this error (yet) i >>> my other Java projects. >>> >>> This is the part of the error message from Maven using the -e switch: >>> >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on >>> project mcf-alfresco-war-test: Request to merge when 'filtering' is not >>> identical. Original=resource src/main/resources: output=target/classes, >>> include=[], exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java], >>> test=false, filtering=false, merging with=resource src/main/resources: >>> output=target/classes, include=[log4j.properties], exclude=[**/*.java], >>> test=false, filtering=true -> [Help 1] >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >>> goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) >>> on project mcf-alfresco-war-test: Request to merge when 'filtering' is not >>> identical. Original=resource src/main/resources: output=target/classes, >>> include=[], exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java], >>> test=false, filtering=false, merging with=resource src/main/resources: >>> output=target/classes, include=[log4j.properties], exclude=[**/*.java], >>> test=false, filtering=true >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) >>> Caused by: org.apache.maven.plugin.MojoExecutionException: Request to merge >>> when 'filtering' is not identical. Original=resource src/main/resources: >>> output=target/classes, include=[], >>> exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java], test=false, >>> filtering=false, merging with=resource src/main/resources: >>> output=target/classes, include=[log4j.properties], exclude=[**/*.java], >>> test=false, filtering=true >>> at >>> org.apache.maven.plugin.eclipse.EclipseSourceDir.merge(EclipseSourceDir.java:302) >>> at >>> org.apache.maven.plugin.eclipse.EclipsePlugin.extractResourceDirs(EclipsePlugin.java:1652) >>> at >>> org.apache.maven.plugin.eclipse.EclipsePlugin.buildDirectoryList(EclipsePlugin.java:1534) >>> at >>> org.apache.maven.plugin.eclipse.EclipsePlugin.createEclipseWriterConfig(EclipsePlugin.java:1222) >>> at >>> org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1085) >>> at >>> org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511) >>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >>> ... 19 more >>> [ERROR] >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> [ERROR] For more information about the errors and possible solutions, please >>> read the following articles: >>> [ERROR] [Help 1] >>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >>> [ERROR] >>> [ERROR] After correcting the problems, you can resume the build with the >>> command >>> [ERROR] mvn -rf :mcf-alfresco-war-test >>> >>> Erlend >>> >>> -- >>> Erlend Garåsen >>> Center for Information Technology Services >>> University of Oslo >>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway >>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050 > > > -- Erlend Garåsen Center for Information Technology Services University of Oslo P.O. Box 1086 Blindern, N-0317 OSLO, Norway Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050