Bug 448055 - error handling enhancement: missing affected file for error
Summary: error handling enhancement: missing affected file for error
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Jan Sievers CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, helpwanted
Depends on:
Blocks:
 
Reported: 2014-10-21 07:17 EDT by Felix Köhl CLA
Modified: 2021-04-28 16:51 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Köhl CLA 2014-10-21 07:17:31 EDT
Hi,

in case of a malformed pom.xml, Tycho shows in the error message the details (line, column), but doesn't provide information about the affected file.

Would be nice to receive as well this information in teh error message.

How to reproduce:
create malformed POM with missing whitespace between attributes:
<unzip src="target/abc.def.ghaik-1.0.0.zip"dest="${project.build.directory}/jars" />

leads to the following error message:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version (default-cli) on project parent: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version failed: Line 42, column 4711: Expected whitespace between attributes of element a but found Token (ATTRIBUTE, 22925:22963, "dest=\"${project.build.directory}/jars\"") -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version (default-cli) on project parent: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version failed: Line 42, column 4711: Expected whitespace between attributes of element a but found Token (ATTRIBUTE, 22925:22963, "dest=\"${project.build.directory}/jars\"")
Comment 1 Martin Schreiber CLA 2014-11-18 04:43:32 EST
Can you please provide an example pom.xml that is failing - Thanks!
Comment 2 Eclipse Genie CLA 2017-04-03 02:20:43 EDT
New Gerrit change created: https://git.eclipse.org/r/94278
Comment 3 Jan Sievers CLA 2017-04-03 03:38:28 EDT
@Guilaaume thanks for providing a patch! will review latest until end of this week
Comment 5 Jan Sievers CLA 2017-04-10 05:29:53 EDT
thanks for the patch!