summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-04-19 15:14:53 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-04-19 15:14:53 +0300
commitd543e47becc77e5b18c69a416e6e84122ac10fe1 (patch)
tree49b4e4e245319b0e93a4b1d3739096eb2d082eea /pom.xml
parentbdbb0b4328a36a66bb492973ca72497bfd34f6ad (diff)
downloadvaadin-framework-d543e47becc77e5b18c69a416e6e84122ac10fe1.tar.gz
vaadin-framework-d543e47becc77e5b18c69a416e6e84122ac10fe1.zip
Enable Maven plugin for Eclipse formatting (#10829)
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml42
1 files changed, 32 insertions, 10 deletions
diff --git a/pom.xml b/pom.xml
index b5d196f7dd..1e0ee32b09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -454,6 +454,38 @@
<version>${vaadin.plugin.version}</version>
</plugin>
<plugin>
+ <groupId>net.revelc.code.formatter</groupId>
+ <artifactId>formatter-maven-plugin</artifactId>
+ <version>2.7.2</version>
+ <configuration>
+ <configFile>${project.basedir}/../eclipse/VaadinJavaConventions.xml</configFile>
+ <skipJsFormatting>true</skipJsFormatting>
+ </configuration>
+ <executions>
+ <execution>
+ <id>format-source</id>
+ <goals>
+ <goal>format</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
+ <artifactId>whitespace-maven-plugin</artifactId>
+ <version>1.0.4</version>
+ <executions>
+ <execution>
+ <id>trim-trailing-spaces-source</id>
+ <goals>
+ <goal>trim</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
@@ -541,16 +573,6 @@
<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>
- </plugin>
- <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<executions>