Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D0A010ED3 for ; Thu, 1 Aug 2013 13:51:16 +0000 (UTC) Received: (qmail 57784 invoked by uid 500); 1 Aug 2013 13:51:15 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 57484 invoked by uid 500); 1 Aug 2013 13:51:10 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 57471 invoked by uid 99); 1 Aug 2013 13:51:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 13:51:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vladimiro.corsi@gmail.com designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-wi0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 13:51:03 +0000 Received: by mail-wi0-f180.google.com with SMTP id f14so1855057wiw.13 for ; Thu, 01 Aug 2013 06:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jrs9z89PZI7nQxGOXgk8mOMJfk36/nKAhcwtDYkrDis=; b=I0lMsZlz6/BrRX2lQcsrzuykS1+I4elKW6t+vPRKRP0vlAKQejWw8g+b/YUqKpeVjC Bmg/BXtf3Seer34Ao7/lMQOjOgMWft5/WbJY+iVNwc5i5LWXz+o6T4sDZ0Utm/kfGD/S BiGcCbf0hTxdB8SfSI1NpWq3wVvb0/d2yXkZWeHbVkB1i46P65fGcCOxR/xb7jLxTs8T O9Aatj0nzl2H++lPtZzyG3E+hp8qtrLbAyyw95VU3QaXI2lotOeDvLfwhjHIt8byuRjt +7oqtCMOyGE+XENYzAzZzIWhng7RGA28L8WTlDaZpOw2C22tiwZeR2qhXS41R85jLJeG y1cg== MIME-Version: 1.0 X-Received: by 10.180.75.16 with SMTP id y16mr8012197wiv.59.1375365043571; Thu, 01 Aug 2013 06:50:43 -0700 (PDT) Received: by 10.194.38.74 with HTTP; Thu, 1 Aug 2013 06:50:43 -0700 (PDT) Date: Thu, 1 Aug 2013 15:50:43 +0200 Message-ID: Subject: Cant canonicalize system path From: vladimiro To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=f46d043c7d22dbcf5d04e2e32068 X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7d22dbcf5d04e2e32068 Content-Type: text/plain; charset=ISO-8859-1 Hi, when building the CXF trunk (CXF 3.0.0-SNAPHSOT) with the following environment: Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-28 04:15:32+0200) Maven home: C:\apache-maven-3.1.0\bin\.. Java version: 1.7.0_25, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_25\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" I have the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (setup.eclipse.project) on project cxf-systests-databinding: Cant canonicalize system path: {0}: The filename, directory name, or volume label syntax is incorrect -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (setup.eclipse.project) on project cxf-systests-databinding: Cant canonicalize system path: {0} at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 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:318) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:414) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357) Caused by: org.apache.maven.plugin.MojoExecutionException: Cant canonicalize system path: {0} at org.apache.maven.plugin.ide.IdeUtils.getCanonicalPath(IdeUtils.java:147) at org.apache.maven.plugin.ide.IdeUtils.toRelativeAndFixSeparator(IdeUtils.java:591) at org.apache.maven.plugin.eclipse.EclipsePlugin.extractResourceDirs(EclipsePlugin.java:1787) at org.apache.maven.plugin.eclipse.EclipsePlugin.buildDirectoryList(EclipsePlugin.java:1684) at org.apache.maven.plugin.eclipse.EclipsePlugin.createEclipseWriterConfig(EclipsePlugin.java:1359) at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1178) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414) at java.io.File.getCanonicalPath(File.java:589) at org.apache.maven.plugin.ide.IdeUtils.getCanonicalPath(IdeUtils.java:143) ... 27 more After investigation it looks like cxf-codegen-plugin is setting absolute paths for maven resource's targetPaths and that makes the eclipse plugin crash. See also http://jira.codehaus.org/browse/MECLIPSE-269 for reference. I see at lines 359 and 375 of org.apache.cxf.maven_plugin.AbstractCodegenMoho: ... r2.setTargetPath(project.getBuild().getOutputDirectory()); ... r2.setTargetPath(project.getBuild().getTestOutputDirectory()); ... If I make the targetPaths relative I'm able to complete my build successfully. What do you think about it? Is that a bug? Is something wrong in my configuration? Best regards Vladimiro Corsi --f46d043c7d22dbcf5d04e2e32068--