'Hive generate adapter could not generate outputs

I am having issue generating the hive type adapter. But no such out put generated by the command line codes

flutter packages pub run build_runner build --delete-conflicting-outputs

or

flutter packages pub run build_runner build

final output massage is appaired as Succeeded after 101ms with 0 outputs (0 actions)

please help me on this.

    '''
import 'package:hive/hive.dart';

part 'person2.g.dart';

@HiveType(typeId:1)
class Person {
  const Person({required this.age,required this.friends,required this.person});
  @HiveField(0)
  final String person;

  @HiveField(1)
  final int age;

  @HiveField(2)
  final List<Person> friends;
}'''

my pubspec.yamel file 

    dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2
  hive: ^2.1.0
  hive_flutter: ^1.1.0
  pdf: ^3.1.0
  path_provider: ^2.0.1
  open_file: ^3.1.0
  intl: ^0.17.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  hive_generator: ^1.1.2
  build_runner: ^2.1.10


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source