This is not m2e-specific issue, but an issue in one of components used by maven core plugins, maven-jar-plugin in your case.
If the build works when invoked from command line but does not work from m2e, the easiest workaround is to configure external maven installation in Preferences->Maven->Installation. More permanent solution is to configure specific version of maven-jar-plugin in pom.xml. This will make your project work more reliably across different versions of maven. -- Regards, Igor On 12-09-22 8:57 AM, Christian Eugster wrote:
Hi, working on a macosx computer, I am repeatedly getting the following error while running maven within eclipse: Failed to read filesystem attributes for: /Users/ceugster/Projekte/Enterprise OSGi in Action/PDE-Workspace/com.fancyfoods/com.fancyfoods.api/pom.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlad '/Users/ceugster/Projekte/Enterprise OSGi in Action/PDE-Workspace/com.fancyfoods/com.fancyfoods.api/pom.xml' see below. Running mvn from the console executes with no errors. Running in Windows XP executes with no errors too. I am new to maven and m2e so I don't know how to solve this problem. Thanks [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project com.fancyfoods.api: Error assembling JAR: Failed to read filesystem attributes for: /Users/ceugster/Projekte/Enterprise OSGi in Action/PDE-Workspace/com.fancyfoods/com.fancyfoods.api/pom.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlad '/Users/ceugster/Projekte/Enterprise OSGi in Action/PDE-Workspace/com.fancyfoods/com.fancyfoods.api/pom.xml'' -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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 <goals> -rf :com.fancyfoods.api _______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/m2e-users