Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366320

Summary: [Xtend] maven plugin should use target/generated-classes
Product: [Modeling] TMF Reporter: Mark Derricutt <mark>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sven.efftinge
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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