Skip to content

Commit 05ca314

Browse files
committed
eclipse support is back
1 parent e4b83d0 commit 05ca314

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

pom.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,51 @@
395395
</executions>
396396
</plugin>
397397
-->
398+
399+
<!-- eclipse support -->
400+
<plugin>
401+
<groupId>org.apache.maven.plugins</groupId>
402+
<artifactId>maven-eclipse-plugin</artifactId>
403+
<version>2.10</version>
404+
<configuration>
405+
<downloadSources>true</downloadSources>
406+
<downloadJavadocs>true</downloadJavadocs>
407+
<additionalBuildcommands>
408+
<buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
409+
</additionalBuildcommands>
410+
<additionalProjectnatures>
411+
<projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
412+
</additionalProjectnatures>
413+
<useProjectReferences>false</useProjectReferences>
414+
<additionalConfig>
415+
<file>
416+
<name>.checkstyle</name>
417+
<content>
418+
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
419+
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
420+
<local-check-config name="HtmlUnit" location="checkstyle.xml" type="project" description="HtmlUnit">
421+
<property name="checkstyle.suppressions.file" value="$${project_loc}/checkstyle_suppressions.xml"/>
422+
<additional-data name="protect-config-file" value="false"/>
423+
</local-check-config>
424+
<fileset name="all" enabled="true" check-config-name="HtmlUnit" local="true">
425+
<file-match-pattern match-pattern="^src/.*\.java$" include-pattern="true"/>
426+
<file-match-pattern match-pattern="^src/.*general/huge/.*\.java$" include-pattern="false"/>
427+
</fileset>
428+
</fileset-config>
429+
]]>
430+
</content>
431+
</file>
432+
</additionalConfig>
433+
<additionalConfig>
434+
<file>
435+
<name>.settings/org.eclipse.core.resources.prefs</name>
436+
<content>
437+
<![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
438+
</content>
439+
</file>
440+
</additionalConfig>
441+
</configuration>
442+
</plugin>
398443
</plugins>
399444
</build>
400445
<profiles>

0 commit comments

Comments
 (0)