summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorLeif Åstrand <legioth@gmail.com>2017-02-01 11:09:04 +0200
committerIlia Motornyi <elmot@vaadin.com>2017-02-01 11:09:04 +0200
commit07d56a9ca050d976dec4f598ed39471ae369c588 (patch)
tree167982734c11fa76b39cfad226b8f601174da17a /pom.xml
parent601de7e3ba5af6146ab0342bf3a924c9aa08a1b4 (diff)
downloadvaadin-framework-07d56a9ca050d976dec4f598ed39471ae369c588.tar.gz
vaadin-framework-07d56a9ca050d976dec4f598ed39471ae369c588.zip
Add a maven plugin for formatting according to Eclipse settings
Running formatter:format will format all files in a submodule using an embedded Eclipse compiler (based on Neon SR1) according to the regular formatting settings file.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 9a52e31c3f..9639e6c95f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -486,6 +486,23 @@
<plugins>
<plugin>
+ <groupId>com.marvinformatics.formatter</groupId>
+ <artifactId>formatter-maven-plugin</artifactId>
+ <version>1.8.1</version>
+ <configuration>
+ <configFile>classpath:/eclipse/VaadinJavaConventions.xml</configFile>
+ <!-- Provide a dummy JS config file to avoid errors -->
+ <configJsFile>classpath:/eclipse/VaadinJavaConventions.xml</configJsFile>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>vaadin-buildhelpers</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<executions>