项目作者: ronnypolley

项目描述 :
Eclipse Ignore Helper Maven Plugin
高级语言: Java
项目地址: git://github.com/ronnypolley/ecliseignorehelper.git
创建时间: 2015-12-08T07:32:22Z
项目社区:https://github.com/ronnypolley/ecliseignorehelper

开源协议:

下载


Eclipse Ignore Helper Maven Plugin

This project is a Apache Maven plugin, which can be used to make the Eclipse IDE ignore some warnings on (generated) code.
Using the Eclipse IDE buildin functionality of ignore unwanted warnings on some folders in the classpath, this plugin adds the desired folders to the .classpath file.

Quality status

Displays the quality state of the main-branch from SonarQube.io:

Quality Gate Status
Security Rating
Vulnerabilities

Usage

Simply add the plugin to our pom.xml, like

  1. <plugin>
  2. <groupId>de.random-words</groupId>
  3. <artifactId>eclipse-ignore-helper-maven-plugin</artifactId>
  4. <version>1.0.5-SNAPSHOT</version>
  5. <executions>
  6. <execution>
  7. <id>ignore</id>
  8. <phase>process-resources</phase>
  9. <goals>
  10. <goal>ignorePaths</goal>
  11. </goals>
  12. <configuration>
  13. <ignorePaths>
  14. <ignorePath>relative_path_1</ignorePath>
  15. <ignorePath>relative_path_n</ignorePath>
  16. </ignorePaths>
  17. </configuration>
  18. </execution>
  19. </executions>
  20. </plugin>

This would add the attribute tag ignore_optional_problems to the path specified.

  1. <classpathentry kind="src" output="target/test-classes" path="relative_path_1">
  2. <attributes>
  3. <attribute name="optional" value="true"></attribute>
  4. <attribute name="maven.pomderived" value="true"></attribute>
  5. <attribute name="ignore_optional_problems" value="true">
  6. </attributes>
  7. </classpathentry>

Build Eclipse-Ignore-Helper

As this is a Apache Maven project, it is easy as

  1. mvn verify

to build the project.