Ericsson / CodeCheckerEclipsePlugin

This is an Eclipse plugin that shows C/C++ static analysis results found by Clang Static Analyzer and Clang Tidy
Eclipse Public License 1.0
32 stars 13 forks source link

Build errors - missing pom.xml #160

Closed thomasarnbjerg closed 5 years ago

thomasarnbjerg commented 5 years ago

I'm trying to build the plugin on a Centos 7.4 system with the following result (error at bottom). Any ideas?

[tda@till018 development]$ cd CodeCheckerEclipsePlugin/ [tda@till018 CodeCheckerEclipsePlugin]$ mvn -f mavendeps/pom.xml p2:site && mvn clean verify [INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building codechecker-mavendeps-p2-site 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- p2-maven-plugin:1.3.0:site (default-cli) @ codechecker-mavendeps-p2-site --- [info] Resolving artifact=[javax.xml.parsers:jaxp-api:1.4.5] transitive=[true] source=[false] [info] [JAR] jaxp-api-1.4.5.jar [info] Resolving artifact=[com.google.code.gson:gson:2.3.1] transitive=[true] source=[false] [info] [JAR] gson-2.3.1.jar [info] Resolving artifact=[com.googlecode.plist:dd-plist:1.21] transitive=[true] source=[false] [info] [JAR] dd-plist-1.21.jar [info] Resolving artifact=[com.google.guava:guava:26.0-jre] transitive=[true] source=[false] [info] [JAR] guava-26.0-jre.jar [info] [JAR] jsr305-3.0.2.jar [info] [JAR] checker-qual-2.5.2.jar [info] [JAR] error_prone_annotations-2.1.3.jar [info] [JAR] j2objc-annotations-1.1.jar [info] [JAR] animal-sniffer-annotations-1.14.jar [info] Resolving artifact=[joda-time:joda-time:2.10.1] transitive=[true] source=[false] [info] [JAR] joda-time-2.10.1.jar [info] Resolving artifact=[log4j:log4j:1.2.17] transitive=[true] source=[false] [info] [JAR] log4j-1.2.17.jar [info] Resolving artifact=[org.apache.commons:commons-exec:1.3] transitive=[true] source=[false] [info] [JAR] commons-exec-1.3.jar [info] Resolving artifact=[org.apache.commons:commons-lang3:3.0] transitive=[true] source=[false] [info] [JAR] commons-lang3-3.0.jar [info] Bundling Artifact javax.xml.parsers:jaxp-api:1.4.5 [info] Executing Bundler: [info] [EXEC] jaxp-api-1.4.5.jar SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/tda/.m2/repository/biz/aQute/bnd/biz.aQute.bnd/3.3.0/biz.aQute.bnd-3.3.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/tda/.m2/repository/org/sonatype/gossip/gossip/1.3/gossip-1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory] [info] Bundling Artifact com.google.code.gson:gson:2.3.1 [info] Executing Bundler: [info] [SKIP] gson-2.3.1.jar [info] Bundling Artifact com.googlecode.plist:dd-plist:1.21 [info] Executing Bundler: [info] [SKIP] dd-plist-1.21.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [SKIP] guava-26.0-jre.jar [info] Bundling Artifact joda-time:joda-time:2.10.1 [info] Executing Bundler: [info] [SKIP] joda-time-2.10.1.jar [info] Bundling Artifact log4j:log4j:1.2.17 [info] Executing Bundler: [info] [SKIP] log4j-1.2.17.jar [info] Bundling Artifact org.apache.commons:commons-exec:1.3 [info] Executing Bundler: [info] [SKIP] commons-exec-1.3.jar [info] Bundling Artifact org.apache.commons:commons-lang3:3.0 [info] Executing Bundler: [info] [SKIP] commons-lang3-3.0.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [SKIP] jsr305-3.0.2.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [EXEC] checker-qual-2.5.2.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [EXEC] error_prone_annotations-2.1.3.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [EXEC] j2objc-annotations-1.1.jar [info] Bundling Artifact com.google.guava:guava:26.0-jre [info] Executing Bundler: [info] [EXEC] animal-sniffer-annotations-1.14.jar [info] Resolved 0 features [INFO] Command line: [/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java, -jar, /home/tda/.m2/repository/org/eclipse/tycho/tycho-bundles-external/1.0.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar, -configuration, /tmp/tycho-p2-runtime5953106314632214766.tmp/configuration, -nosplash, -application, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, -artifactRepository, file:/home/tda/development/CodeCheckerEclipsePlugin/mavendeps/target/repository, -metadataRepository, file:/home/tda/development/CodeCheckerEclipsePlugin/mavendeps/target/repository, -publishArtifacts, -compress, -source, /home/tda/development/CodeCheckerEclipsePlugin/mavendeps/target/source] Generating metadata for .. Generation completed with success [0 seconds]. [INFO] Command line: [/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java, -jar, /home/tda/.m2/repository/org/eclipse/tycho/tycho-bundles-external/1.0.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar, -configuration, /tmp/tycho-p2-runtime4615967673688254325.tmp/configuration, -nosplash, -application, org.eclipse.equinox.p2.publisher.CategoryPublisher, -categoryDefinition, file://home/tda/development/CodeCheckerEclipsePlugin/mavendeps/target/repository/category.xml, -metadataRepository, file://home/tda/development/CodeCheckerEclipsePlugin/mavendeps/target/repository] Generating metadata for .. Generation completed with success [0 seconds]. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.820s [INFO] Finished at: Thu Jun 06 14:16:26 CEST 2019 [INFO] Final Memory: 31M/248M [INFO] ------------------------------------------------------------------------ [INFO] Scanning for projects... [ERROR] The build could not read 3 projects -> [Help 1] [ERROR]
[ERROR] The project org.codechecker.eclipse:org.codechecker.eclipse.bundles:1.0.0-SNAPSHOT (/home/tda/development/CodeCheckerEclipsePlugin/bundles/pom.xml) has 1 error [ERROR] Child module /home/tda/development/CodeCheckerEclipsePlugin/bundles/org.codechecker.eclipse.plugin/pom.xml of /home/tda/development/CodeCheckerEclipsePlugin/bundles/pom.xml does not exist [ERROR]
[ERROR] The project org.codechecker.eclipse:org.codechecker.eclipse.features:1.0.0-SNAPSHOT (/home/tda/development/CodeCheckerEclipsePlugin/features/pom.xml) has 1 error [ERROR] Child module /home/tda/development/CodeCheckerEclipsePlugin/features/org.codechecker.eclipse.feature/pom.xml of /home/tda/development/CodeCheckerEclipsePlugin/features/pom.xml does not exist [ERROR]
[ERROR] The project org.codechecker.eclipse:org.codechecker.eclipse.tests:1.0.0-SNAPSHOT (/home/tda/development/CodeCheckerEclipsePlugin/tests/pom.xml) has 1 error [ERROR] Child module /home/tda/development/CodeCheckerEclipsePlugin/tests/org.codechecker.eclipse.rcp.unit.tests/pom.xml of /home/tda/development/CodeCheckerEclipsePlugin/tests/pom.xml does not exist [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

thomasarnbjerg commented 5 years ago

My maven installation was too old. Upgrading to 3.6 did the job.