Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366320 - [Xtend] maven plugin should use target/generated-classes
Summary: [Xtend] maven plugin should use target/generated-classes
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 02:40 EST by Mark Derricutt CLA
Modified: 2017-09-19 18:12 EDT (History)
1 user (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Derricutt CLA 2011-12-11 02:40:55 EST
Currently the maven plugin uses src/main/xtend-gen and src/test/xtend-gen as the default directory for generated .java files during compilation.

The standard behavior for Maven is to use target/generated-sources/xxxx for generated source files.

IntelliJ IDEA and (I believe) Netbeans automatically detect these directories as source directories and use them for auto-completion and static analysis of the rest of a project.

As it's often frowned upon to generate source code into version control managed directories, and it improves integration with non-eclipse development tools, it would be good to change the default configuration to use the following output directories:

  <configuration>
    <outputDirectory>${project.build.directory}/generated-sources/xtend</outputDirectory>
    <testOutputDirectory>${project.build.directory}/generated-sources/test-xtend</testOutputDirectory>
  </configuration>
Comment 1 Sven Efftinge CLA 2011-12-12 02:55:12 EST
pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 18:02:00 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 18:12:21 EDT
Closing all bugs that were set to RESOLVED before Neon.0