Bug 503309 - absolute paths in ._trace files when building with maven and xtext-maven-plugin
Summary: absolute paths in ._trace files when building with maven and xtext-maven-plugin
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.9.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-04 04:16 EDT by Peter Luthardt CLA
Modified: 2024-05-17 12:23 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 Peter Luthardt CLA 2016-10-04 04:16:56 EDT
When building a maven module which uses xtext-maven-plugin for code generation the created *java._trace files contains a String like
"Jenkins/workspace/emulator%20nightly%20build/emulator.topology/src/main/java/com/.."
When building it in eclipse the same *java._trace contains "com/.."
I have no idea how this trace thing works, but it seems to be the cause of my problem, that in some cases the F3 (Open Declaration) does not work. 
When I debug into org.eclipse.xtext.xbase.ui.editor.XbaseResourceForEditorInputFactory.createResource(IClassFile classFile) I get an uri
"C:/../maven/../emulator.topology-0.0.10-SNAPSHOT-sources.jar!/Jenkins/workspace/emulator%20nightly%20build/emulator.topology/src/main/java/com/.." which does not exists.

see: https://www.eclipse.org/forums/index.php/t/623973/
Comment 1 Lorenzo Bettini CLA 2016-10-04 06:00:59 EDT
I've answered in the forum: I was wondering whether the source of the problem is the use of an absolute path, e.g., 

<outputDirectory>${basedir}/src-gen</outputDirectory>

could you please check that?
Comment 2 Christian Dietrich CLA 2022-07-13 13:28:42 EDT
see also https://www.eclipse.org/forums/index.php/t/1111185/
Comment 4 Lorenzo Bettini CLA 2022-11-06 15:54:58 EST
And there's no way to specify any project configuration when executing xtext-maven-plugin, is there?
Comment 5 Lorenzo Bettini CLA 2024-05-17 12:23:23 EDT
Finally fixed in https://github.com/eclipse/xtext/pull/3044