I'm trying to follow the Developer's Guide to build and execute this application, but the build fails.
[INFO] Scanning for projects...
[INFO]
[INFO] [1m------------------------< [0;36medu.ncsu.csc:iTrust2[0;1m >------------------------[m
[INFO] [1mBuilding iTrust2 0.0.1-SNAPSHOT[m
[INFO] from pom.xml
[INFO] [1m--------------------------------[ jar ]---------------------------------[m
[INFO]
[INFO] [1m>>> [0;32mspring-boot:2.3.7.BUILD-SNAPSHOT:run[m [1m(default-cli)[0;1m > [0;1mtest-compile[m @ [36miTrust2[0;1m >>>[m
[WARNING] The artifact org.hibernate:hibernate-validator:jar:6.1.5.Final has been relocated to org.hibernate.validator:hibernate-validator:jar:6.1.5.Final
[INFO]
[INFO] [1m--- [0;32mjacoco:0.8.4:prepare-agent[m [1m(pre-unit-test)[m @ [36miTrust2[0;1m ---[m
[INFO] surefireArgLine set to -javaagent:/Users/woojunro/.m2/repository/org/jacoco/org.jacoco.agent/0.8.4/org.jacoco.agent-0.8.4-runtime.jar=destfile=/Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/target/coverage-reports/jacoco-ut.exec
[INFO]
[INFO] [1m--- [0;32mresources:3.1.0:resources[m [1m(default-resources)[m @ [36miTrust2[0;1m ---[m
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 29 resources
[INFO]
[INFO] [1m--- [0;32mbuild-helper:3.1.0:reserve-network-port[m [1m(reserve-container-port)[m @ [36miTrust2[0;1m ---[m
[INFO] Reserved port 50186 for 8080
[INFO]
[INFO] [1m--- [0;32mcompiler:3.8.1:compile[m [1m(default-compile)[m @ [36miTrust2[0;1m ---[m
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 102 source files to /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/target/classes
[INFO] /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/src/main/java/edu/ncsu/csc/itrust2/services/HospitalService.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/src/main/java/edu/ncsu/csc/itrust2/services/HospitalService.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] [1m--- [0;32mresources:3.1.0:testResources[m [1m(default-testResources)[m @ [36miTrust2[0;1m ---[m
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 40 resources
[INFO]
[INFO] [1m--- [0;32mcompiler:3.8.1:testCompile[m [1m(default-testCompile)[m @ [36miTrust2[0;1m ---[m
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 34 source files to /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/target/test-classes
[INFO] /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/src/test/java/edu/ncsu/csc/itrust2/api/APIAppointmentRequestTest.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/woojunro/Documents/yonsei/2023-2/software-engineering/team_project/itrust2/iTrust2/iTrust2/src/test/java/edu/ncsu/csc/itrust2/api/APIAppointmentRequestTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] [1m<<< [0;32mspring-boot:2.3.7.BUILD-SNAPSHOT:run[m [1m(default-cli)[0;1m < [0;1mtest-compile[m @ [36miTrust2[0;1m <<<[m
[INFO]
[INFO]
[INFO] [1m--- [0;32mspring-boot:2.3.7.BUILD-SNAPSHOT:run[m [1m(default-cli)[m @ [36miTrust2[0;1m ---[m
[INFO] Attaching agents: []
Error: Could not find or load main class edu.ncsu.csc.itrust2.ITrust2Application
Caused by: java.lang.NoClassDefFoundError: edu/ncsu/csc/iTrust2/ITrust2Application (wrong name: edu/ncsu/csc/itrust2/ITrust2Application)
[INFO] [1m------------------------------------------------------------------------[m
[INFO] [1;31mBUILD FAILURE[m
[INFO] [1m------------------------------------------------------------------------[m
[INFO] Total time: 2.137 s
[INFO] Finished at: 2023-10-22T12:43:09+09:00
[INFO] [1m------------------------------------------------------------------------[m
[ERROR] Failed to execute goal [32morg.springframework.boot:spring-boot-maven-plugin:2.3.7.BUILD-SNAPSHOT:run[m [1m(default-cli)[m on project [36miTrust2[m: [1;31mApplication finished with exit code: 1[m -> [1m[Help 1][m
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
[ERROR] Re-run Maven using the [1m-X[m switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Also, my Eclipse complains about the name of the packages.
The declared package "edu.ncsu.csc.iTrust2" does not match the expected package "edu.ncsu.csc.itrust2"
So I tried to close and re-open Eclipse(this did not work), and change every name of the package (from "iTrust2" to "itrust2") but Maven build still fails.
I'm trying to follow the Developer's Guide to build and execute this application, but the build fails.
Also, my Eclipse complains about the name of the packages.
So I tried to close and re-open Eclipse(this did not work), and change every name of the package (from "iTrust2" to "itrust2") but Maven build still fails.