4/15/2023 0 Comments Textify crackedThen, I set up jenkins and sonar for this project. It seems maven does not have any issue with the root of source, it is compiling the project. In pom.xml the sourceDirectory property was initially set to point to src. The package structure is and source root was src/main/java. Dsonar.sources=/Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile Dsonar.sources=/Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/src/main/java I tried many combinations like: -Dsonar.sources=mobile/src/main/java In jenkins configuration Post Build Action I am trying to set the sonar.sources in Additional properties box (because when i googled for the error, people suggested to set the correct path for sources). LifecycleExecutionException: Failed to execute goal :sonar-maven-plugin:2.1:sonar (default-cli) on project Textify: Can not execute SonarQube analysis **'/Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/src/main/java/com/simpragma/apps/textify/db/BookmarkDao.java': The source directory does not correspond to the package declaration** .db -> Failed to execute goal :sonar-maven-plugin:2.1:sonar (default-cli) on project Textify: Can not execute SonarQube analysis: Sonar is unable to analyze file : ![]() Sonar is unable to analyze file : '/Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/src/main/java/com/simpragma/apps/textify/db/BookmarkDao.java' Source encoding: UTF-8, default locale: en_US Binary dirs: /Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/target/classes Source dirs: /Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/src Working dir: /Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile/target/sonar I am getting this error: Base dir: /Users/Shared/Jenkins/Home/jobs/Textify/workspace/mobile ![]() I am trying to build an Android java project branch: feature-Fprototype_app
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |