IBM / codenet-minerva-code-analyzer

Java source code (and/or binary) to JSON based system dependency graph generator.
Apache License 2.0
2 stars 5 forks source link

Code analyzer is running builds even when the `--no-build` option is used #62

Open fabio-franco opened 1 week ago

fabio-franco commented 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)

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
2024-10-30T14:10:15.539587    [INFO]  Found pom.xml in the project directory. Using Maven to download dependencies.
2024-10-30T14:10:15.544870    [INFO]  Building the project using mvn.
2024-10-30T14:10:17.495430    [INFO]  [INFO] Scanning for projects...
2024-10-30T14:10:17.880249    [INFO]  [INFO] 
2024-10-30T14:10:17.880553    [INFO]  [INFO] ---------------------< com.acme.modres:modresorts >---------------------
2024-10-30T14:10:17.880737    [INFO]  [INFO] Building ModResorts 2.0.0
2024-10-30T14:10:17.880849    [INFO]  [INFO]   from pom.xml
2024-10-30T14:10:17.880919    [INFO]  [INFO] --------------------------------[ war ]---------------------------------
2024-10-30T14:10:17.984453    [INFO]  [INFO] 
2024-10-30T14:10:17.985064    [INFO]  [INFO] --- dependency:3.7.0:copy-dependencies (default-cli) @ modresorts ---
2024-10-30T14:10:18.844354    [INFO]  [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
2024-10-30T14:10:18.859405    [INFO]  [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
2024-10-30T14:10:18.863173    [INFO]  [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
2024-10-30T14:10:18.865647    [INFO]  [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
2024-10-30T14:10:18.869351    [INFO]  [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
2024-10-30T14:10:18.872583    [INFO]  [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
2024-10-30T14:10:18.873968    [INFO]  [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
2024-10-30T14:10:18.875589    [INFO]  [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
2024-10-30T14:10:18.876538    [INFO]  [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
2024-10-30T14:10:18.880110    [INFO]  [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
2024-10-30T14:10:18.893919    [INFO]  [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
2024-10-30T14:10:18.896388    [INFO]  [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
2024-10-30T14:10:18.898074    [INFO]  [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
2024-10-30T14:10:18.899107    [INFO]  [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
2024-10-30T14:10:18.903620    [INFO]  [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
2024-10-30T14:10:18.909432    [INFO]  [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
2024-10-30T14:10:18.912384    [INFO]  [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
2024-10-30T14:10:18.919208    [INFO]  [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
2024-10-30T14:10:18.923106    [INFO]  [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
2024-10-30T14:10:18.924888    [INFO]  [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
2024-10-30T14:10:18.926408    [INFO]  [INFO] ------------------------------------------------------------------------
2024-10-30T14:10:18.926521    [INFO]  [INFO] BUILD SUCCESS
2024-10-30T14:10:18.926552    [INFO]  [INFO] ------------------------------------------------------------------------
2024-10-30T14:10:18.926690    [INFO]  [INFO] Total time:  1.457 s
2024-10-30T14:10:18.926958    [INFO]  [INFO] Finished at: 2024-10-30T14:10:18-04:00
2024-10-30T14:10:18.927041    [INFO]  [INFO] ------------------------------------------------------------------------
2024-10-30T14:10:18.950125    [INFO]  MVN build exited with code 0
2024-10-30 14:10:18 - [wca] - [DEBUG]: - No: of workspaceFolderSymbols in webview: 1904
2024-10-30T14:10:21.197719    [DEBUG] Could not resolve expression: Mockito.when(request.getParameter("date")).thenReturn("2023-13-14"): Index: 1, Size: 1
2024-10-30T14:10:21.207521    [DEBUG] Could not resolve expression: Mockito.when(response.getWriter()).thenReturn(Mockito.mock(PrintWriter.class)): Index: 1, Size: 1
2024-10-30T14:10:21.230146    [DEBUG] Could not resolve expression: Mockito.when(request.getParameter("date")).thenReturn(null): Index: 1, Size: 1
2024-10-30T14:10:21.255214    [DEBUG] Could not resolve expression: dataSource: Unsolved symbol in dataSource : Solving dataSource
2024-10-30T14:10:21.255973    [DEBUG] Could not resolve constructor call: new ModResortsCustomerInformation(dataSource): Unsolved symbol in dataSource : Solving dataSource
2024-10-30T14:10:21.259985    [DEBUG] Could 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")
2024-10-30T14:10:21.263159    [DEBUG] Could 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")
2024-10-30T14:10:21.266874    [DEBUG] Could not resolve constructor call: new ModResortsCustomerInformation(50): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation(50)
2024-10-30T14:10:21.271726    [DEBUG] Could not resolve constructor call: new ModResortsCustomerInformation(dataSource): Unsolved symbol in dataSource : Solving dataSource
2024-10-30T14:10:21.275422    [DEBUG] Could 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")
2024-10-30T14:10:21.280077    [DEBUG] Could 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")
2024-10-30T14:10:21.291635    [DEBUG] Could not resolve constructor call: new ModResortsCustomerInformation(50, 132): Unsolved symbol : We are unable to find the constructor declaration corresponding to new ModResortsCustomerInformation(50, 132)
2024-10-30T14:10:21.334932    [INFO]  Create analysis scope.
2024-10-30T14:10:21.364308    [INFO]  Add exclusions to scope.
2024-10-30T14:10:21.364560    [INFO]  Loading Java SE standard libs.
2024-10-30T14:10:21.441551    [INFO]  Loading user specified extra libs.
2024-10-30T14:10:21.442462    [INFO]  Finding *.jar files in /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies
2024-10-30T14:10:21.444384    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-core-5.3.36.jar to analysis scope.
2024-10-30T14:10:21.444756    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-jupiter-api-5.10.0.jar to analysis scope.
2024-10-30T14:10:21.444852    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/activation-1.1.jar to analysis scope.
2024-10-30T14:10:21.445072    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/objenesis-3.3.jar to analysis scope.
2024-10-30T14:10:21.445301    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-observation-1.12.5.jar to analysis scope.
2024-10-30T14:10:21.445459    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-beans-6.1.6.jar to analysis scope.
2024-10-30T14:10:21.445699    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/gson-2.10.1.jar to analysis scope.
2024-10-30T14:10:21.445874    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-jcl-5.3.36.jar to analysis scope.
2024-10-30T14:10:21.446058    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-test-5.3.36.jar to analysis scope.
2024-10-30T14:10:21.446322    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-1.14.15.jar to analysis scope.
2024-10-30T14:10:21.447572    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/byte-buddy-agent-1.14.15.jar to analysis scope.
2024-10-30T14:10:21.447771    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-junit-jupiter-5.12.0.jar to analysis scope.
2024-10-30T14:10:21.447982    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/mockito-core-5.12.0.jar to analysis scope.
2024-10-30T14:10:21.448131    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/spring-web-6.1.6.jar to analysis scope.
2024-10-30T14:10:21.448640    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/junit-platform-commons-1.10.0.jar to analysis scope.
2024-10-30T14:10:21.448860    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javax.mail-1.5.0.jar to analysis scope.
2024-10-30T14:10:21.449097    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/apiguardian-api-1.1.2.jar to analysis scope.
2024-10-30T14:10:21.449249    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/opentest4j-1.3.0.jar to analysis scope.
2024-10-30T14:10:21.449441    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/javaee-api-7.0.jar to analysis scope.
2024-10-30T14:10:21.449669    [INFO]  -> Adding dependency /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod/_library_dependencies/micrometer-commons-1.12.5.jar to analysis scope.
2024-10-30T14:10:21.458986    [INFO]  Finding *.class files in /Users/fabiofranco/Development/git/wca4j/svt/sample-app-mod
2024-10-30T14:10:21.477712    [DEBUG] Application class files: 52
2024-10-30T14:10:21.477791    [INFO]  Adding application classes to scope.
2024-10-30 14:10:22 - [wca] - [DEBUG]: - No: of workspaceFolderSymbols in webview: 1924
2024-10-30T14:10:25.125978    [DONE]  There were a total of 38828 classes of which 26 are application classes.
2024-10-30T14:10:25.143927    [INFO]  Registered 102 entrypoints.
2024-10-30T14:10:25.150680    [INFO]  Building call graph.
2024-10-30T14:10:45.406311    [DONE]  Finished construction of call graph. Took 21.0 seconds.
2024-10-30T14:10:45.612338    [INFO]  Building System Dependency Graph.
scottkurz commented 6 days ago

It's not doing compilation but it is calling the dependency:copy-dependencies goal.