Permalink
Browse files

New config to Maven Eclipse Plugin. Include checkstyle configuration

  • Loading branch information...
recena
recena committed Apr 29, 2012
1 parent 6d462ad commit 4834a58173850458fc859291bc44b10ab8ffd7f1
Showing with 31 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +29 −1 pom.xml
View
@@ -7,10 +7,12 @@
/core/.classpath
/core/.project
/core/.settings
+/core/.checkstyle
/examples/target
/examples/.classpath
/examples/.project
/examples/.settings
+/examples/.checkstyle
pangool-flow/.classpath
pangool-flow/.project
pangool-flow/.settings
View
30 pom.xml
@@ -44,9 +44,37 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
- <version>2.8</version>
+ <version>2.9</version>
<configuration>
+ <projectNameTemplate>[artifactId]</projectNameTemplate>
+ <manifest />
<downloadSources>false</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <additionalBuildcommands>
+ <buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
+ </additionalBuildcommands>
+ <additionalProjectnatures>
+ <projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
+ </additionalProjectnatures>
+ <additionalConfig>
+ <file>
+ <name>.checkstyle</name>
+ <content>
+ <![CDATA[
+ <?xml version="1.0" encoding="UTF-8"?>
+ <fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="true">
+ <fileset name="all" enabled="true" check-config-name="pangool" local="false">
+ <file-match-pattern match-pattern="." include-pattern="true"/>
+ </fileset>
+ <filter name="FileTypesFilter" enabled="true">
+ <filter-data value="java"/>
+ </filter>
+ <filter name="NonSrcDirs" enabled="true"/>
+ </fileset-config>
+ ]]>
+ </content>
+ </file>
+ </additionalConfig>
</configuration>
</plugin>
<plugin>

0 comments on commit 4834a58

Please sign in to comment.