How To Install scannotation on CentOS 7
Introduction
In this tutorial we learn how to install scannotation
on CentOS 7.
What is scannotation
Scannotation is a Java library that creates an annotation database from a set of .class files.This database is really just a set of maps that index what annotations are used and what classes are using them. Why do you need this? What if you are an annotation framework like an EJB 3.0 container and you want to automatically scan your classpath for EJB annotations so that you know what to deploy? Scannotation gives you apis that allow you to find archives in your classpath or WAR (web application) that you want to scan, then automatically scans them without loading each and every class within those archives
We can use yum
or dnf
to install scannotation
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install scannotation.
Install scannotation on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install scannotation
using yum
by running the following command:
Install scannotation on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install scannotation
using dnf
by running the following command:
How To Uninstall scannotation on CentOS 7
To uninstall only the scannotation
package we can use the following command:
References
Summary
In this tutorial we learn how to install scannotation
on CentOS 7 using yum
and dnf
.