deadcode4j Maven Plugin

Finds unused classes of a project

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

de.is24.mavenplugins
ArtifactId

ArtifactId

deadcode-maven-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

deadcode4j Maven Plugin
Finds unused classes of a project
Project URL

Project URL

https://github.com/ImmobilienScout24/deadcode4j
Project Organization

Project Organization

Immobilien Scout GmbH
Source Code Management

Source Code Management

https://github.com/ImmobilienScout24/deadcode4j.git

Download deadcode-maven-plugin

How to add to project

<plugin>
    <groupId>de.is24.mavenplugins</groupId>
    <artifactId>deadcode-maven-plugin</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.0.5
org.apache.maven : maven-core jar 3.0.5
org.javassist : javassist jar 3.18.0-GA

provided (1)

Group / Artifact Type Version
com.google.code.findbugs : jsr305 jar 2.0.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

deadcode4j Latest version Build Status Coverage Status

Join the chat at https://gitter.im/ImmobilienScout24/deadcode4j

deadcode4j helps you find code that is no longer used by your application. It is especially useful for cleaning up legacy code.

As deadcode4j is available via the Maven repository, you can simply run
mvn de.is24.mavenplugins:deadcode4j-maven-plugin:find -Dmaven.test.skip=true
to analyze your project.
deadcode4j will trigger the package phase to be executed for a project (and for all modules listed in a reactor project) before analyzing the output directories. The output will look something like this:

[INFO] --- deadcode4j-maven-plugin:2.1.0:find (default-cli) @ someProject ---
[INFO] Analyzed 42 class(es).
[WARNING] Found 2 unused class(es):
[WARNING]   de.is24.deadcode4j.Foo
[WARNING]   de.is24.deadcode4j.Bar

Have a look at the wiki to get to know the features, read about the available goals, understand the configuration or learn deadcode4j's history and principles.

deadcode4j is tested with Maven 3.0.5, 3.1.1, 3.2.5 & 3.3.9.

de.is24.mavenplugins

ImmobilienScout24

Versions

Version
1.0.0