Currently I use MavenXpp3Reader to get the dependencies from maven file.
I wonder can I get the line num of the <groupId> for each dependency directly according to the dependency instance? My goal is to highlight the line of <groupId> so that is why I want to know the line number.
MavenXpp3Reader Xpp3Reader = new MavenXpp3Reader();
Model model = Xpp3Reader.read(new FileReader(path));
List<Dependency> dependencies = model.getDependencies();