Bug 481920 - Cannot control errors/warnings for maven-plugin as in IDE
Summary: Cannot control errors/warnings for maven-plugin as in IDE
Status: UNCONFIRMED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 06:18 EST by Tonny Madsen CLA
Modified: 2015-11-16 11:12 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tonny Madsen CLA 2015-11-11 06:18:32 EST
When compiling with xtend-maven-plugin where are no way to control the various errors/warnings for the compiler. This is possible in the IDE and means you can have different results when compiling with Maven and the IDE.

Please provide a way to specify the errors/warnings like used for the java compiler.
Comment 1 Thomas Fritsch CLA 2015-11-16 10:04:19 EST
Eclipse-IDE stores its compiler-settings in file ".settings/org.eclipse.jdt.core.prefs".
You can advise maven/tycho to use exactly these settings by adding the following
to your pom.xml (in section project/build/pluginManagement/plugins):

<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>tycho-compiler-plugin</artifactId>
  <version>${tycho-version}</version>
  <configuration>
    <compilerArguments>
      <properties>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</properties>
    </compilerArguments>
  </configuration>
</plugin>

See also https://wiki.eclipse.org/Tycho/FAQ#How_to_configure_warning.2Ferror_settings_of_the_OSGi_compiler.3F
Comment 2 Tonny Madsen CLA 2015-11-16 10:32:55 EST
(In reply to Thomas Fritsch from comment #1)
> Eclipse-IDE stores its compiler-settings in file
> ".settings/org.eclipse.jdt.core.prefs".
> You can advise maven/tycho to use exactly these settings by adding the
> following
> to your pom.xml

I have a way for JDT, but I need a similar way for Xtend...