Open fabio-franco opened 1 week ago
Code analyzer (codeanalyzer-1.0.1.jar) is running builds even when the --no-build option is passed. Below is a log from modresorts app (https://github.com/IBM/sample-app-mod/tree/main)
codeanalyzer-1.0.1.jar
--no-build
2024-10-30 14:10:15 - [wca4ej] - [DEBUG]: - java -jar codeanalyzer-1.0.1.jar -i /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod -o /Users/fabiofranco/.wca/sample-app-mod/codeAnalyzer -a 2 --no-build -v [36m2024-10-30T14:10:15.539587[0m[35m [INFO] [0mFound pom.xml in the project directory. Using Maven to download dependencies. [36m2024-10-30T14:10:15.544870[0m[35m [INFO] [0mBuilding the project using mvn. [36m2024-10-30T14:10:17.495430[0m[35m [INFO] [0m[INFO] Scanning for projects... [36m2024-10-30T14:10:17.880249[0m[35m [INFO] [0m[INFO] [36m2024-10-30T14:10:17.880553[0m[35m [INFO] [0m[INFO] ---------------------< com.acme.modres:modresorts >--------------------- [36m2024-10-30T14:10:17.880737[0m[35m [INFO] [0m[INFO] Building ModResorts 2.0.0 [36m2024-10-30T14:10:17.880849[0m[35m [INFO] [0m[INFO] from pom.xml [36m2024-10-30T14:10:17.880919[0m[35m [INFO] [0m[INFO] --------------------------------[ war ]--------------------------------- [36m2024-10-30T14:10:17.984453[0m[35m [INFO] [0m[INFO] [36m2024-10-30T14:10:17.985064[0m[35m [INFO] [0m[INFO] --- dependency:3.7.0:copy-dependencies (default-cli) @ modresorts --- [36m2024-10-30T14:10:18.844354[0m[35m [INFO] [0m[INFO] Copying artifact 'javax:javaee-api:jar:7.0:provided' (/Users/fabiofranco/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javaee-api-7.0.jar [36m2024-10-30T14:10:18.859405[0m[35m [INFO] [0m[INFO] Copying artifact 'com.sun.mail:javax.mail:jar:1.5.0:provided' (/Users/fabiofranco/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javax.mail-1.5.0.jar [36m2024-10-30T14:10:18.863173[0m[35m [INFO] [0m[INFO] Copying artifact 'javax.activation:activation:jar:1.1:provided' (/Users/fabiofranco/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/activation-1.1.jar [36m2024-10-30T14:10:18.865647[0m[35m [INFO] [0m[INFO] Copying artifact 'com.google.code.gson:gson:jar:2.10.1:compile' (/Users/fabiofranco/.m2/repository/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/gson-2.10.1.jar [36m2024-10-30T14:10:18.869351[0m[35m [INFO] [0m[INFO] Copying artifact 'org.junit.jupiter:junit-jupiter-api:jar:5.10.0:test' (/Users/fabiofranco/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.0/junit-jupiter-api-5.10.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-jupiter-api-5.10.0.jar [36m2024-10-30T14:10:18.872583[0m[35m [INFO] [0m[INFO] Copying artifact 'org.opentest4j:opentest4j:jar:1.3.0:test' (/Users/fabiofranco/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/opentest4j-1.3.0.jar [36m2024-10-30T14:10:18.873968[0m[35m [INFO] [0m[INFO] Copying artifact 'org.junit.platform:junit-platform-commons:jar:1.10.0:test' (/Users/fabiofranco/.m2/repository/org/junit/platform/junit-platform-commons/1.10.0/junit-platform-commons-1.10.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-platform-commons-1.10.0.jar [36m2024-10-30T14:10:18.875589[0m[35m [INFO] [0m[INFO] Copying artifact 'org.apiguardian:apiguardian-api:jar:1.1.2:test' (/Users/fabiofranco/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/apiguardian-api-1.1.2.jar [36m2024-10-30T14:10:18.876538[0m[35m [INFO] [0m[INFO] Copying artifact 'org.mockito:mockito-core:jar:5.12.0:test' (/Users/fabiofranco/.m2/repository/org/mockito/mockito-core/5.12.0/mockito-core-5.12.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-core-5.12.0.jar [36m2024-10-30T14:10:18.880110[0m[35m [INFO] [0m[INFO] Copying artifact 'net.bytebuddy:byte-buddy:jar:1.14.15:test' (/Users/fabiofranco/.m2/repository/net/bytebuddy/byte-buddy/1.14.15/byte-buddy-1.14.15.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-1.14.15.jar [36m2024-10-30T14:10:18.893919[0m[35m [INFO] [0m[INFO] Copying artifact 'net.bytebuddy:byte-buddy-agent:jar:1.14.15:test' (/Users/fabiofranco/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.15/byte-buddy-agent-1.14.15.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-agent-1.14.15.jar [36m2024-10-30T14:10:18.896388[0m[35m [INFO] [0m[INFO] Copying artifact 'org.objenesis:objenesis:jar:3.3:test' (/Users/fabiofranco/.m2/repository/org/objenesis/objenesis/3.3/objenesis-3.3.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/objenesis-3.3.jar [36m2024-10-30T14:10:18.898074[0m[35m [INFO] [0m[INFO] Copying artifact 'org.mockito:mockito-junit-jupiter:jar:5.12.0:test' (/Users/fabiofranco/.m2/repository/org/mockito/mockito-junit-jupiter/5.12.0/mockito-junit-jupiter-5.12.0.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-junit-jupiter-5.12.0.jar [36m2024-10-30T14:10:18.899107[0m[35m [INFO] [0m[INFO] Copying artifact 'org.springframework:spring-test:jar:5.3.36:test' (/Users/fabiofranco/.m2/repository/org/springframework/spring-test/5.3.36/spring-test-5.3.36.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-test-5.3.36.jar [36m2024-10-30T14:10:18.903620[0m[35m [INFO] [0m[INFO] Copying artifact 'org.springframework:spring-core:jar:5.3.36:test' (/Users/fabiofranco/.m2/repository/org/springframework/spring-core/5.3.36/spring-core-5.3.36.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-core-5.3.36.jar [36m2024-10-30T14:10:18.909432[0m[35m [INFO] [0m[INFO] Copying artifact 'org.springframework:spring-jcl:jar:5.3.36:test' (/Users/fabiofranco/.m2/repository/org/springframework/spring-jcl/5.3.36/spring-jcl-5.3.36.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-jcl-5.3.36.jar [36m2024-10-30T14:10:18.912384[0m[35m [INFO] [0m[INFO] Copying artifact 'org.springframework:spring-web:jar:6.1.6:test' (/Users/fabiofranco/.m2/repository/org/springframework/spring-web/6.1.6/spring-web-6.1.6.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-web-6.1.6.jar [36m2024-10-30T14:10:18.919208[0m[35m [INFO] [0m[INFO] Copying artifact 'org.springframework:spring-beans:jar:6.1.6:test' (/Users/fabiofranco/.m2/repository/org/springframework/spring-beans/6.1.6/spring-beans-6.1.6.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-beans-6.1.6.jar [36m2024-10-30T14:10:18.923106[0m[35m [INFO] [0m[INFO] Copying artifact 'io.micrometer:micrometer-observation:jar:1.12.5:test' (/Users/fabiofranco/.m2/repository/io/micrometer/micrometer-observation/1.12.5/micrometer-observation-1.12.5.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-observation-1.12.5.jar [36m2024-10-30T14:10:18.924888[0m[35m [INFO] [0m[INFO] Copying artifact 'io.micrometer:micrometer-commons:jar:1.12.5:test' (/Users/fabiofranco/.m2/repository/io/micrometer/micrometer-commons/1.12.5/micrometer-commons-1.12.5.jar) to /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-commons-1.12.5.jar [36m2024-10-30T14:10:18.926408[0m[35m [INFO] [0m[INFO] ------------------------------------------------------------------------ [36m2024-10-30T14:10:18.926521[0m[35m [INFO] [0m[INFO] BUILD SUCCESS [36m2024-10-30T14:10:18.926552[0m[35m [INFO] [0m[INFO] ------------------------------------------------------------------------ [36m2024-10-30T14:10:18.926690[0m[35m [INFO] [0m[INFO] Total time: 1.457 s [36m2024-10-30T14:10:18.926958[0m[35m [INFO] [0m[INFO] Finished at: 2024-10-30T14:10:18-04:00 [36m2024-10-30T14:10:18.927041[0m[35m [INFO] [0m[INFO] ------------------------------------------------------------------------ [36m2024-10-30T14:10:18.950125[0m[35m [INFO] [0mMVN build exited with code 0 2024-10-30 14:10:18 - [wca] - [DEBUG]: - No: of workspaceFolderSymbols in webview: 1904 [36m2024-10-30T14:10:21.197719[0m[33m [DEBUG] [0mCould not resolve expression: Mockito.when(request.getParameter("date")).thenReturn("2023-13-14"): Index: 1, Size: 1 [36m2024-10-30T14:10:21.207521[0m[33m [DEBUG] [0mCould not resolve expression: Mockito.when(response.getWriter()).thenReturn(Mockito.mock(PrintWriter.class)): Index: 1, Size: 1 [36m2024-10-30T14:10:21.230146[0m[33m [DEBUG] [0mCould not resolve expression: Mockito.when(request.getParameter("date")).thenReturn(null): Index: 1, Size: 1 [36m2024-10-30T14:10:21.255214[0m[33m [DEBUG] [0mCould not resolve expression: dataSource: Unsolved symbol in dataSource : Solving dataSource [36m2024-10-30T14:10:21.255973[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation(dataSource): Unsolved symbol in dataSource : Solving dataSource [36m2024-10-30T14:10:21.259985[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "user", "password"): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "user", "password") [36m2024-10-30T14:10:21.263159[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "root", "example"): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "root", "example") [36m2024-10-30T14:10:21.266874[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation(50): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation(50) [36m2024-10-30T14:10:21.271726[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation(dataSource): Unsolved symbol in dataSource : Solving dataSource [36m2024-10-30T14:10:21.275422[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "user", "password"): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "user", "password") [36m2024-10-30T14:10:21.280077[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "root", "example"): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation("jdbc:mysql://localhost/mod_resorts", "root", "example") [36m2024-10-30T14:10:21.291635[0m[33m [DEBUG] [0mCould not resolve constructor call: new ModResortsCustomerInformation(50, 132): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation(50, 132) [36m2024-10-30T14:10:21.334932[0m[35m [INFO] [0mCreate analysis scope. [36m2024-10-30T14:10:21.364308[0m[35m [INFO] [0mAdd exclusions to scope. [36m2024-10-30T14:10:21.364560[0m[35m [INFO] [0mLoading Java SE standard libs. [36m2024-10-30T14:10:21.441551[0m[35m [INFO] [0mLoading user specified extra libs. [36m2024-10-30T14:10:21.442462[0m[35m [INFO] [0mFinding *.jar files in /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies [36m2024-10-30T14:10:21.444384[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-core-5.3.36.jar to analysis scope. [36m2024-10-30T14:10:21.444756[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-jupiter-api-5.10.0.jar to analysis scope. [36m2024-10-30T14:10:21.444852[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/activation-1.1.jar to analysis scope. [36m2024-10-30T14:10:21.445072[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/objenesis-3.3.jar to analysis scope. [36m2024-10-30T14:10:21.445301[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-observation-1.12.5.jar to analysis scope. [36m2024-10-30T14:10:21.445459[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-beans-6.1.6.jar to analysis scope. [36m2024-10-30T14:10:21.445699[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/gson-2.10.1.jar to analysis scope. [36m2024-10-30T14:10:21.445874[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-jcl-5.3.36.jar to analysis scope. [36m2024-10-30T14:10:21.446058[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-test-5.3.36.jar to analysis scope. [36m2024-10-30T14:10:21.446322[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-1.14.15.jar to analysis scope. [36m2024-10-30T14:10:21.447572[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-agent-1.14.15.jar to analysis scope. [36m2024-10-30T14:10:21.447771[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-junit-jupiter-5.12.0.jar to analysis scope. [36m2024-10-30T14:10:21.447982[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-core-5.12.0.jar to analysis scope. [36m2024-10-30T14:10:21.448131[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-web-6.1.6.jar to analysis scope. [36m2024-10-30T14:10:21.448640[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-platform-commons-1.10.0.jar to analysis scope. [36m2024-10-30T14:10:21.448860[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javax.mail-1.5.0.jar to analysis scope. [36m2024-10-30T14:10:21.449097[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/apiguardian-api-1.1.2.jar to analysis scope. [36m2024-10-30T14:10:21.449249[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/opentest4j-1.3.0.jar to analysis scope. [36m2024-10-30T14:10:21.449441[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javaee-api-7.0.jar to analysis scope. [36m2024-10-30T14:10:21.449669[0m[35m [INFO] [0m-> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-commons-1.12.5.jar to analysis scope. [36m2024-10-30T14:10:21.458986[0m[35m [INFO] [0mFinding *.class files in /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod [36m2024-10-30T14:10:21.477712[0m[33m [DEBUG] [0mApplication class files: 52 [36m2024-10-30T14:10:21.477791[0m[35m [INFO] [0mAdding application classes to scope. 2024-10-30 14:10:22 - [wca] - [DEBUG]: - No: of workspaceFolderSymbols in webview: 1924 [36m2024-10-30T14:10:25.125978[0m[32m [DONE] [0mThere were a total of 38828 classes of which 26 are application classes. [36m2024-10-30T14:10:25.143927[0m[35m [INFO] [0mRegistered 102 entrypoints. [36m2024-10-30T14:10:25.150680[0m[35m [INFO] [0mBuilding call graph. [36m2024-10-30T14:10:45.406311[0m[32m [DONE] [0mFinished construction of call graph. Took 21.0 seconds. [36m2024-10-30T14:10:45.612338[0m[35m [INFO] [0mBuilding System Dependency Graph.
It's not doing compilation but it is calling the dependency:copy-dependencies goal.
dependency:copy-dependencies
Code analyzer (
codeanalyzer-1.0.1.jar
) is running builds even when the--no-build
option is passed. Below is a log from modresorts app (https://github.com/IBM/sample-app-mod/tree/main)