OpenSoc-Common Compile Error:Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path

541 views
Skip to first unread message

bobl...@hotmail.com

unread,
Feb 12, 2015, 10:18:09 AM2/12/15
to opensoc...@googlegroups.com
Dear All,
Below is my environemt.
root@ubuntu:/root/opensoc-streaming-master/OpenSOC-Common# uname -a
Linux ubuntu 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

root@ubuntu:/root/opensoc-streaming-master/OpenSOC-Common# mvn -v
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/share/maven/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-12-generic", arch: "amd64", family: "unix"

root@ubuntu:/root/opensoc-streaming-master/OpenSOC-Common# java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.13.10.1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

When  compile OpenSoc-Common,below erroe hppened, please help to fix it.
root@ubuntu:/root/opensoc-streaming-master/OpenSOC-Common# mvn compile -X
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/share/maven/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-12-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /root/.m2/settings.xml
[DEBUG] Using local repository at /root/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /root/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.opensoc:OpenSOC-Common:jar:0.5BETA: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.opensoc:OpenSOC-Common:jar:0.5BETA
[WARNING] 'dependencies.dependency.systemPath' for jdk.tools:jdk.tools:jar refers to a non-existing file /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar @ line 104, column 37
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.opensoc:OpenSOC-Common:jar:0.5BETA
[DEBUG] Tasks:   [compile]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenSOC-Common 0.5BETA
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project:       com.opensoc:OpenSOC-Common:0.5BETA
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile]
[DEBUG] Repositories (dependencies): [OpenSOC-Kraken-Repo (https://raw.github.com/opensoc/kraken/mvn-repo, releases+snapshots), clojars.org (http://clojars.org/repo, releases+snapshots), central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins)     : [central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.3:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <filters>${project.build.filters}</filters>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project>${project}</project>
  <resources>${project.resources}</resources>
  <session>${session}</session>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="${basedir}"/>
  <buildDirectory default-value="${project.build.directory}"/>
  <classpathElements default-value="${project.compileClasspathElements}"/>
  <compileSourceRoots default-value="${project.compileSourceRoots}"/>
  <compilerArgument>-Xlint:unchecked</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerReuseStrategy}</compilerReuseStrategy>
  <compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
  <debug default-value="true">${maven.compiler.debug}</debug>
  <debuglevel>${maven.compiler.debuglevel}</debuglevel>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <executable>${maven.compiler.executable}</executable>
  <failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
  <forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerUse}</forceJavacCompilerUse>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <mojoExecution>${mojoExecution}</mojoExecution>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <projectArtifact default-value="${project.artifact}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skipMain>${maven.main.skip}</skipMain>
  <skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarning}</skipMultiThreadWarning>
  <source default-value="1.5">1.7</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">1.7</target>
  <useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompilation}</useIncrementalCompilation>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
  <mavenSession default-value="${session}"/>
  <session default-value="${session}"/>
</configuration>
[DEBUG] =======================================================================
[DEBUG] com.opensoc:OpenSOC-Common:jar:0.5BETA
[DEBUG]    com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[DEBUG]    org.apache.storm:storm-core:jar:0.9.2-incubating:provided
[DEBUG]       org.clojure:clojure:jar:1.5.1:provided
[DEBUG]       clj-time:clj-time:jar:0.4.1:provided
[DEBUG]       compojure:compojure:jar:1.1.3:provided
[DEBUG]          org.clojure:core.incubator:jar:0.1.0:provided
[DEBUG]          org.clojure:tools.macro:jar:0.1.0:provided
[DEBUG]          clout:clout:jar:1.0.1:provided
[DEBUG]          ring:ring-core:jar:1.1.5:provided
[DEBUG]             commons-fileupload:commons-fileupload:jar:1.2.1:provided
[DEBUG]       hiccup:hiccup:jar:0.3.6:provided
[DEBUG]       ring:ring-devel:jar:0.3.11:provided
[DEBUG]          clj-stacktrace:clj-stacktrace:jar:0.2.2:provided
[DEBUG]       ring:ring-jetty-adapter:jar:0.3.11:provided
[DEBUG]          ring:ring-servlet:jar:0.3.11:provided
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.26:compile
[DEBUG]             org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.26:compile
[DEBUG]       org.clojure:tools.logging:jar:0.2.3:provided
[DEBUG]       org.clojure:math.numeric-tower:jar:0.0.1:provided
[DEBUG]       org.clojure:tools.cli:jar:0.2.4:provided
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]       org.apache.commons:commons-exec:jar:1.1:provided
[DEBUG]       commons-lang:commons-lang:jar:2.5:compile
[DEBUG]       org.apache.curator:curator-framework:jar:2.4.0:provided
[DEBUG]          org.apache.curator:curator-client:jar:2.4.0:provided
[DEBUG]       com.twitter:carbonite:jar:1.4.0:provided
[DEBUG]          com.esotericsoftware.kryo:kryo:jar:2.21:provided
[DEBUG]             com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07:provided
[DEBUG]                org.ow2.asm:asm:jar:4.0:provided
[DEBUG]             com.esotericsoftware.minlog:minlog:jar:1.2:provided
[DEBUG]             org.objenesis:objenesis:jar:1.2:provided
[DEBUG]          com.twitter:chill-java:jar:0.3.5:provided
[DEBUG]       org.yaml:snakeyaml:jar:1.11:provided
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.3.3:provided
[DEBUG]          org.apache.httpcomponents:httpcore:jar:4.3.2:provided
[DEBUG]       com.googlecode.disruptor:disruptor:jar:2.10.1:provided
[DEBUG]       org.jgrapht:jgrapht-core:jar:0.9.0:provided
[DEBUG]       com.google.guava:guava:jar:13.0:compile
[DEBUG]       ch.qos.logback:logback-classic:jar:1.0.6:provided
[DEBUG]          ch.qos.logback:logback-core:jar:1.0.6:provided
[DEBUG]       org.slf4j:log4j-over-slf4j:jar:1.6.6:provided
[DEBUG]       io.netty:netty:jar:3.6.3.Final:compile
[DEBUG]    org.apache.kafka:kafka_2.9.2:jar:0.8.0:provided
[DEBUG]       org.apache.zookeeper:zookeeper:jar:3.3.4:compile
[DEBUG]          jline:jline:jar:0.9.94:compile
[DEBUG]       org.scala-lang:scala-library:jar:2.9.2:provided
[DEBUG]       log4j:log4j:jar:1.2.15:compile
[DEBUG]          javax.mail:mail:jar:1.4:compile
[DEBUG]       net.sf.jopt-simple:jopt-simple:jar:3.2:compile
[DEBUG]       org.slf4j:slf4j-simple:jar:1.6.4:compile
[DEBUG]       org.scala-lang:scala-compiler:jar:2.9.2:provided
[DEBUG]       com.101tec:zkclient:jar:0.3:provided
[DEBUG]       org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
[DEBUG]       com.yammer.metrics:metrics-core:jar:2.2.0:provided
[DEBUG]       com.yammer.metrics:metrics-annotation:jar:2.2.0:provided
[DEBUG]    com.codahale.metrics:metrics-core:jar:3.0.2:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    com.codahale.metrics:metrics-graphite:jar:3.0.2:compile
[DEBUG]    commons-configuration:commons-configuration:jar:1.10:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG]    org.krakenapps:kraken-pcap:jar:1.7.1:compile
[DEBUG]       org.krakenapps:kraken-api:jar:2.1.1:compile
[DEBUG]    jdk.tools:jdk.tools:jar:1.7:system
[DEBUG]    junit:junit:jar:3.8.2:compile
[DEBUG]    org.apache.hbase:hbase-client:jar:0.98.5-hadoop2:compile
[DEBUG]       org.apache.hbase:hbase-common:jar:0.98.5-hadoop2:compile
[DEBUG]          commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.hbase:hbase-protocol:jar:0.98.5-hadoop2:compile
[DEBUG]       commons-codec:commons-codec:jar:1.7:compile
[DEBUG]       com.google.protobuf:protobuf-java:jar:2.5.0:compile
[DEBUG]       org.cloudera.htrace:htrace-core:jar:2.04:compile
[DEBUG]       org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8:compile
[DEBUG]          org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[DEBUG]       org.apache.hadoop:hadoop-common:jar:2.2.0:compile
[DEBUG]          commons-cli:commons-cli:jar:1.2:compile
[DEBUG]          org.apache.commons:commons-math:jar:2.1:compile
[DEBUG]          xmlenc:xmlenc:jar:0.52:compile
[DEBUG]          commons-httpclient:commons-httpclient:jar:3.1:compile
[DEBUG]          commons-net:commons-net:jar:3.1:compile
[DEBUG]          com.sun.jersey:jersey-core:jar:1.9:compile
[DEBUG]          com.sun.jersey:jersey-json:jar:1.9:compile
[DEBUG]             org.codehaus.jettison:jettison:jar:1.1:compile
[DEBUG]                stax:stax-api:jar:1.0.1:compile
[DEBUG]             com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[DEBUG]                javax.xml.bind:jaxb-api:jar:2.2.2:compile
[DEBUG]             org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[DEBUG]             org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[DEBUG]          commons-el:commons-el:jar:1.0:runtime
[DEBUG]          net.java.dev.jets3t:jets3t:jar:0.6.1:compile
[DEBUG]          org.apache.avro:avro:jar:1.7.4:compile
[DEBUG]             com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[DEBUG]          com.jcraft:jsch:jar:0.1.42:compile
[DEBUG]          org.apache.commons:commons-compress:jar:1.4.1:compile
[DEBUG]             org.tukaani:xz:jar:1.0:compile
[DEBUG]       org.apache.hadoop:hadoop-auth:jar:2.2.0:compile
[DEBUG]       org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.2.0:compile
[DEBUG]          org.apache.hadoop:hadoop-yarn-common:jar:2.2.0:compile
[DEBUG]             org.apache.hadoop:hadoop-yarn-api:jar:2.2.0:compile
[DEBUG]             com.google.inject:guice:jar:3.0:compile
[DEBUG]                javax.inject:javax.inject:jar:1:compile
[DEBUG]                aopalliance:aopalliance:jar:1.0:compile
[DEBUG]             com.sun.jersey:jersey-server:jar:1.9:compile
[DEBUG]                asm:asm:jar:3.1:compile
[DEBUG]             com.sun.jersey.contribs:jersey-guice:jar:1.9:compile
[DEBUG]          com.google.inject.extensions:guice-servlet:jar:3.0:compile
[DEBUG]       org.apache.hadoop:hadoop-annotations:jar:2.2.0:compile
[DEBUG]       com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[DEBUG]    com.github.fge:json-schema-validator:jar:2.2.5:compile
[DEBUG]       com.github.fge:json-schema-core:jar:1.2.4:compile
[DEBUG]          com.github.fge:uri-template:jar:0.9:compile
[DEBUG]             com.github.fge:msg-simple:jar:1.1:compile
[DEBUG]                com.github.fge:btf:jar:1.2:compile
[DEBUG]          com.github.fge:jackson-coreutils:jar:1.8:compile
[DEBUG]             com.fasterxml.jackson.core:jackson-databind:jar:2.2.3:compile
[DEBUG]                com.fasterxml.jackson.core:jackson-annotations:jar:2.2.3:compile
[DEBUG]                com.fasterxml.jackson.core:jackson-core:jar:2.2.3:compile
[DEBUG]          org.mozilla:rhino:jar:1.7R4:compile
[DEBUG]       joda-time:joda-time:jar:2.3:compile
[DEBUG]       com.googlecode.libphonenumber:libphonenumber:jar:6.0:compile
[DEBUG]       javax.mail:mailapi:jar:1.4.3:compile
[DEBUG]          javax.activation:activation:jar:1.1:compile
[DEBUG]       com.google.code.findbugs:jsr305:jar:2.0.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.013s
[INFO] Finished at: Thu Feb 12 07:16:10 PST 2015
[INFO] Final Memory: 7M/18M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project OpenSOC-Common: Could not resolve dependencies for project com.opensoc:OpenSOC-Common:jar:0.5BETA: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project OpenSOC-Common: Could not resolve dependencies for project com.opensoc:OpenSOC-Common:jar:0.5BETA: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
 at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.opensoc:OpenSOC-Common:jar:0.5BETA: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
 ... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
 ... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
 ... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path /usr/share/maven/java-7-openjdk-amd64/lib/tools.jar
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:256)
 ... 26 more
[ERROR]
[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/DependencyResolutionException
root@ubuntu:/root/opensoc-streaming-master/OpenSOC-Common#

Mark Bobl

unread,
Feb 13, 2015, 10:40:59 PM2/13/15
to opensoc...@googlegroups.com

Find the below way to fix this compile error.

The solution was to install the openjdk-7-jdk package as follows:
sudo apt-get install openjdk-6-jdk
Then manual install tools.jar through below command:
mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true

Then edit pom.xml:
<dependency>
    <groupId>jdk.tools</groupId>
    <artifactId>jdk.tools</artifactId>
    <version>1.6</version>
    <scope>system</scope>
    <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>



在 2015年2月12日星期四 UTC+8下午11:18:09,Mark Bobl写道:
Reply all
Reply to author
Forward
0 new messages