I had created a project (my-project-1) in SonarQube(http://localhost:9000/) and linked to Eclipse by
mvn sonar:sonar \
-Dsonar.projectKey=my-project-1 \
-Dsonar.host.url=http://localhost:9000 \
-Dsonar.login=9ccaa3df53e5261c5fc9a7e941d24a684c98c553
When I build the project in Eclipse, and then I can see the analysis in SonarQube with quality gate passed

But After two weeks, I had created a new project (my-project-2) in SonarQube(http://localhost:9000/). Now it has 2 projects in SonarQube.
my-project-1
my-project-2
New project is working fine means quality gate passed.
But when I try to build the old project (my-project-1),
But its quality gate failed.
Then I delete the project from SonarQube and added the same project (my-project-1) again and updated the token in eclipse. Now its working fine.
I am using sonarqube-7.6
Every time I have to delete the project and create it again. This is
the issue. Any solution for this?



