Giovds / outdated-maven-plugin

MIT License
14 stars 3 forks source link

The Outdated Maven Plugin

Stay up-to-date and secure with The Outdated Maven Plugin!

The Outdated Maven Plugin is a tool designed to help developers identify outdated dependencies in their Maven projects. By scanning the dependencies of your project, this plugin determines if they are no longer actively maintained based on a user-defined threshold of inactivity in years. This ensures that your project remains up-to-date with the latest and most secure versions of its dependencies.

Usage

You can use the plugin as standalone for a quick check by simply running the following command in your favourite project:\ mvn com.giovds:outdated-maven-plugin:check -Dyears=<number_of_years>

Or plug it into your build:


<build>
    <plugins>
        <plugin>
            <groupId>com.giovds</groupId>
            <artifactId>outdated-maven-plugin</artifactId>
            <version>1.0.0</version>
            <configuration>
                <!-- The maximum amount of inactive years allowed -->
                <years>1</years>
                <!-- Whether to fail the build if an outdated dependency is found -->
                <shouldFailBuild>false</shouldFailBuild>
            </configuration>
            <executions>
                <execution>
                    <id>outdated-check</id>
                    <goals>
                        <goal>check</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Contributing

Contributions are welcome! \ Please verify if a similar issue is not reported already. If it is not create one, if it is.

License

This project is licensed under the MIT License - see the LICENSE file for details.