ERROR: Could not find artifact com.sun:tools:jar

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ERROR: Could not find artifact com.sun:tools:jar

Andrew Pennebaker
I'm trying to use Cobertura in my Maven project, but I'm getting an error about a missing tools.jar dependency. Is my pom correct?

Quick Trace

$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.128s
[INFO] Finished at: Fri Oct 18 13:57:43 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
[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:

pom.xml

<project>
  ...
  <reporting>
    <plugins>
      ...
      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  ...
</project>

System

$ specs java os
Specs:

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

echo $CLASSPATH


echo $JAVA_HOME
/Library/Java/Home

java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.5 (12F45)

$ ls $JAVA_HOME 
bin bundle lib man
$ ls $JAVA_HOME/lib/*.jar
/Library/Java/Home/lib/deploy.jar /Library/Java/Home/lib/jconsole.jar
/Library/Java/Home/lib/dt.jar /Library/Java/Home/lib/management-agent.jar
/Library/Java/Home/lib/javaws.jar /Library/Java/Home/lib/plugin.jar
/Library/Java/Home/lib/jce.jar /Library/Java/Home/lib/sa-jdi.jar

Full Trace

$ mvn test -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/apennebaker/.m2/settings.xml
[DEBUG] Using local repository at /Users/apennebaker/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/apennebaker/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project commoncrawler:commoncrawler:jar:0.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: commoncrawler:commoncrawler:jar:0.0.0
[DEBUG] Tasks:   [test]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[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] 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] 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:       commoncrawler:commoncrawler:0.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG] Repositories (dependencies): [central (http://artifacts.org/artifactory/libs-release, releases), snapshots (http://artifacts.org/artifactory/libs-snapshot, releases+snapshots)]
[DEBUG] Repositories (plugins)     : [central (http://artifacts.org/artifactory/plugins-release, releases), snapshots (http://artifacts.org/artifactory/plugins-snapshot, releases+snapshots)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-sources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
  <project>${project}</project>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <tasks>
    <mkdir dir="target/generated-sources/"/>
    <apply parallel="false" executable="thrift">
      <arg value="--gen"/>
      <arg value="java"/>
      <arg value="-out"/>
      <arg value="target/generated-sources/"/>
      <fileset dir="src/main/thrift/">
        <include name="*.thrift"/>
      </fileset>
    </apply>${tasks}</tasks>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (add-source)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
  <sources>
    <source>target/generated-sources/</source>
  </sources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.code.maven-replacer-plugin:replacer:1.5.2:replace (default)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="."/>
  <commentsEnabled default-value="true"/>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <ignoreErrors default-value="false"/>
  <includes>
    <include>target/generated-sources/**/*.java</include>
  </includes>
  <preserveDir default-value="true"/>
  <quiet default-value="false"/>
  <regex>true</regex>
  <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
  </regexFlags>
  <replacements>
    <replacement>
      <token>^public class</token>
      <value>@SuppressWarnings(&quot;unchecked&quot;) public class</value>
    </replacement>
  </replacements>
  <skip default-value="false"/>
  <unescape default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2: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:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <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>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources>${project.testResources}</resources>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[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.testClasspathElements}"/>
  <compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
  <compilerArgument>-Xlint:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.testOutputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skip>${maven.test.skip}</skip>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <testSource>${maven.compiler.testSource}</testSource>
  <testTarget>${maven.compiler.testTarget}</testTarget>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <argLine>${argLine}</argLine>
  <basedir default-value="${basedir}"/>
  <childDelegation default-value="false">${childDelegation}</childDelegation>
  <classesDirectory default-value="${project.build.outputDirectory}"/>
  <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
  <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
  <enableAssertions default-value="true">${enableAssertions}</enableAssertions>
  <excludedGroups>${excludedGroups}</excludedGroups>
  <failIfNoTests>${failIfNoTests}</failIfNoTests>
  <forkMode default-value="once">${forkMode}</forkMode>
  <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
  <groups>${groups}</groups>
  <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
  <jvm>${jvm}</jvm>
  <localRepository>${localRepository}</localRepository>
  <objectFactory>${objectFactory}</objectFactory>
  <parallel>${parallel}</parallel>
  <parallelMavenExecution default-value="${session.parallel}"/>
  <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
  <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
  <printSummary default-value="true">${surefire.printSummary}</printSummary>
  <project default-value="${project}"/>
  <projectArtifactMap>${project.artifactMap}</projectArtifactMap>
  <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
  <remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
  <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
  <reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
  <runOrder default-value="filesystem"/>
  <session>${session}</session>
  <skip default-value="false">${maven.test.skip}</skip>
  <skipExec>${maven.test.skip.exec}</skipExec>
  <skipTests default-value="false">${skipTests}</skipTests>
  <test>${test}</test>
  <testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
  <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
  <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
  <testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
  <threadCount>${threadCount}</threadCount>
  <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
  <useFile default-value="true">false</useFile>
  <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
  <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
  <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
  <workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] commoncrawler:commoncrawler:jar:0.0.0
[DEBUG]    org.slf4j:slf4j-simple:jar:1.7.5:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.mockito:mockito-all:jar:1.9.5:compile
[DEBUG]    org.codehaus.mojo:cobertura-maven-plugin:jar:2.6:compile
[DEBUG]       net.sourceforge.cobertura:cobertura:jar:2.0.3:compile
[DEBUG]          org.ow2.asm:asm:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-tree:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-commons:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-util:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-analysis:jar:4.1:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          jaxen:jaxen:jar:1.1-beta-8:compile
[DEBUG]             dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xom:xom:jar:1.0b3:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]                org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7:compile
[DEBUG]          org.apache.ant:ant:jar:1.8.3:compile
[DEBUG]             org.apache.ant:ant-launcher:jar:1.8.3:compile
[DEBUG]          org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.14:compile
[DEBUG]          com.sun:tools:jar:0:system
[DEBUG]          log4j:log4j:jar:1.2.9:compile
[DEBUG]       net.sourceforge.cobertura:cobertura-runtime:pom:2.0.3:compile
[DEBUG]       urbanophile:java-getopt:jar:1.0.9:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[DEBUG]                jtidy:jtidy:jar:4aug2000r7-dev:runtime
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG]          org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[DEBUG]             com.jcraft:jsch:jar:0.1.27:runtime
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.2:compile
[DEBUG]          commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]             commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]             commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]             org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.2:compile
[DEBUG]       org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    org.apache.thrift:libthrift:jar:0.9.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[DEBUG]       org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[DEBUG]    org.apache.directory.studio:org.apache.commons.io:jar:2.4:compile
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]    org.mod4j.org.apache.commons:lang:jar:2.1.0:compile
[DEBUG]    joda-time:joda-time:jar:2.3:compile
[DEBUG]    net.sourceforge.htmlunit:htmlunit:jar:2.13:compile
[DEBUG]       xalan:xalan:jar:2.7.1:compile
[DEBUG]          xalan:serializer:jar:2.7.1:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[DEBUG]       commons-codec:commons-codec:jar:1.8:compile
[DEBUG]       net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:compile
[DEBUG]       xerces:xercesImpl:jar:2.11.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]       net.sourceforge.nekohtml:nekohtml:jar:1.9.19:compile
[DEBUG]       net.sourceforge.cssparser:cssparser:jar:0.9.11:compile
[DEBUG]          org.w3c.css:sac:jar:1.3:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.3:compile
[DEBUG]       org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:compile
[DEBUG]    redis.clients:jedis:jar:2.2.1:compile
[DEBUG]       commons-pool:commons-pool:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148s
[INFO] Finished at: Fri Oct 18 13:55:35 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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 commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:

--
Cheers,

Andrew Pennebaker
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: Could not find artifact com.sun:tools:jar

David Hay
Welcome to life on a mac!

Apple decided to move tools.jar and encorporate into classes.jar, hence your error.

I finally got around it by doing the following:

add these profiles:

    <profiles>
        <profile>
            <id>standard-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../lib/tools.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../lib/tools.jar</tools-jar>
            </properties>
        </profile>
        <profile>
            <id>apple-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../Classes/classes.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../Classes/classes.jar</tools-jar>
            </properties>
        </profile>
    </profiles>

and the plugin:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
                <dependencies>
                    <dependency>
                        <groupId>com.sun</groupId>
                        <artifactId>tools</artifactId>
                        <version>1.6</version>
                        <scope>system</scope>
                        <systemPath>${tools-jar}</systemPath>
                    </dependency>
                </dependencies>
            </plugin>

and then add the dependency directly, excluding its tools jar:

        <dependency>
            <groupId>net.sourceforge.cobertura</groupId>
            <artifactId>cobertura</artifactId>
            <version>2.0.3</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

HTH.

cheers,

David



On Fri, Oct 18, 2013 at 2:15 PM, Andrew Pennebaker <[hidden email]> wrote:
I'm trying to use Cobertura in my Maven project, but I'm getting an error about a missing tools.jar dependency. Is my pom correct?

Quick Trace

$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.128s
[INFO] Finished at: Fri Oct 18 13:57:43 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
[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:

pom.xml

<project>
  ...
  <reporting>
    <plugins>
      ...
      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  ...
</project>

System

$ specs java os
Specs:

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

echo $CLASSPATH


echo $JAVA_HOME
/Library/Java/Home

java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.5 (12F45)

$ ls $JAVA_HOME 
bin bundle lib man
$ ls $JAVA_HOME/lib/*.jar
/Library/Java/Home/lib/deploy.jar /Library/Java/Home/lib/jconsole.jar
/Library/Java/Home/lib/dt.jar /Library/Java/Home/lib/management-agent.jar
/Library/Java/Home/lib/javaws.jar /Library/Java/Home/lib/plugin.jar
/Library/Java/Home/lib/jce.jar /Library/Java/Home/lib/sa-jdi.jar

Full Trace

$ mvn test -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/apennebaker/.m2/settings.xml
[DEBUG] Using local repository at /Users/apennebaker/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/apennebaker/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project commoncrawler:commoncrawler:jar:0.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: commoncrawler:commoncrawler:jar:0.0.0
[DEBUG] Tasks:   [test]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[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] 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] 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:       commoncrawler:commoncrawler:0.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG] Repositories (dependencies): [central (http://artifacts.org/artifactory/libs-release, releases), snapshots (http://artifacts.org/artifactory/libs-snapshot, releases+snapshots)]
[DEBUG] Repositories (plugins)     : [central (http://artifacts.org/artifactory/plugins-release, releases), snapshots (http://artifacts.org/artifactory/plugins-snapshot, releases+snapshots)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-sources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
  <project>${project}</project>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <tasks>
    <mkdir dir="target/generated-sources/"/>
    <apply parallel="false" executable="thrift">
      <arg value="--gen"/>
      <arg value="java"/>
      <arg value="-out"/>
      <arg value="target/generated-sources/"/>
      <fileset dir="src/main/thrift/">
        <include name="*.thrift"/>
      </fileset>
    </apply>${tasks}</tasks>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (add-source)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
  <sources>
    <source>target/generated-sources/</source>
  </sources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.code.maven-replacer-plugin:replacer:1.5.2:replace (default)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="."/>
  <commentsEnabled default-value="true"/>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <ignoreErrors default-value="false"/>
  <includes>
    <include>target/generated-sources/**/*.java</include>
  </includes>
  <preserveDir default-value="true"/>
  <quiet default-value="false"/>
  <regex>true</regex>
  <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
  </regexFlags>
  <replacements>
    <replacement>
      <token>^public class</token>
      <value>@SuppressWarnings(&quot;unchecked&quot;) public class</value>
    </replacement>
  </replacements>
  <skip default-value="false"/>
  <unescape default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2: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:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <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>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources>${project.testResources}</resources>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[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.testClasspathElements}"/>
  <compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
  <compilerArgument>-Xlint:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.testOutputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skip>${maven.test.skip}</skip>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <testSource>${maven.compiler.testSource}</testSource>
  <testTarget>${maven.compiler.testTarget}</testTarget>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <argLine>${argLine}</argLine>
  <basedir default-value="${basedir}"/>
  <childDelegation default-value="false">${childDelegation}</childDelegation>
  <classesDirectory default-value="${project.build.outputDirectory}"/>
  <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
  <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
  <enableAssertions default-value="true">${enableAssertions}</enableAssertions>
  <excludedGroups>${excludedGroups}</excludedGroups>
  <failIfNoTests>${failIfNoTests}</failIfNoTests>
  <forkMode default-value="once">${forkMode}</forkMode>
  <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
  <groups>${groups}</groups>
  <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
  <jvm>${jvm}</jvm>
  <localRepository>${localRepository}</localRepository>
  <objectFactory>${objectFactory}</objectFactory>
  <parallel>${parallel}</parallel>
  <parallelMavenExecution default-value="${session.parallel}"/>
  <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
  <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
  <printSummary default-value="true">${surefire.printSummary}</printSummary>
  <project default-value="${project}"/>
  <projectArtifactMap>${project.artifactMap}</projectArtifactMap>
  <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
  <remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
  <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
  <reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
  <runOrder default-value="filesystem"/>
  <session>${session}</session>
  <skip default-value="false">${maven.test.skip}</skip>
  <skipExec>${maven.test.skip.exec}</skipExec>
  <skipTests default-value="false">${skipTests}</skipTests>
  <test>${test}</test>
  <testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
  <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
  <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
  <testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
  <threadCount>${threadCount}</threadCount>
  <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
  <useFile default-value="true">false</useFile>
  <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
  <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
  <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
  <workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] commoncrawler:commoncrawler:jar:0.0.0
[DEBUG]    org.slf4j:slf4j-simple:jar:1.7.5:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.mockito:mockito-all:jar:1.9.5:compile
[DEBUG]    org.codehaus.mojo:cobertura-maven-plugin:jar:2.6:compile
[DEBUG]       net.sourceforge.cobertura:cobertura:jar:2.0.3:compile
[DEBUG]          org.ow2.asm:asm:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-tree:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-commons:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-util:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-analysis:jar:4.1:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          jaxen:jaxen:jar:1.1-beta-8:compile
[DEBUG]             dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xom:xom:jar:1.0b3:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]                org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7:compile
[DEBUG]          org.apache.ant:ant:jar:1.8.3:compile
[DEBUG]             org.apache.ant:ant-launcher:jar:1.8.3:compile
[DEBUG]          org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.14:compile
[DEBUG]          com.sun:tools:jar:0:system
[DEBUG]          log4j:log4j:jar:1.2.9:compile
[DEBUG]       net.sourceforge.cobertura:cobertura-runtime:pom:2.0.3:compile
[DEBUG]       urbanophile:java-getopt:jar:1.0.9:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[DEBUG]                jtidy:jtidy:jar:4aug2000r7-dev:runtime
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG]          org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[DEBUG]             com.jcraft:jsch:jar:0.1.27:runtime
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.2:compile
[DEBUG]          commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]             commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]             commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]             org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.2:compile
[DEBUG]       org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    org.apache.thrift:libthrift:jar:0.9.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[DEBUG]       org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[DEBUG]    org.apache.directory.studio:org.apache.commons.io:jar:2.4:compile
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]    org.mod4j.org.apache.commons:lang:jar:2.1.0:compile
[DEBUG]    joda-time:joda-time:jar:2.3:compile
[DEBUG]    net.sourceforge.htmlunit:htmlunit:jar:2.13:compile
[DEBUG]       xalan:xalan:jar:2.7.1:compile
[DEBUG]          xalan:serializer:jar:2.7.1:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[DEBUG]       commons-codec:commons-codec:jar:1.8:compile
[DEBUG]       net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:compile
[DEBUG]       xerces:xercesImpl:jar:2.11.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]       net.sourceforge.nekohtml:nekohtml:jar:1.9.19:compile
[DEBUG]       net.sourceforge.cssparser:cssparser:jar:0.9.11:compile
[DEBUG]          org.w3c.css:sac:jar:1.3:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.3:compile
[DEBUG]       org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:compile
[DEBUG]    redis.clients:jedis:jar:2.2.1:compile
[DEBUG]       commons-pool:commons-pool:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148s
[INFO] Finished at: Fri Oct 18 13:55:35 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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 commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:

--
Cheers,

Andrew Pennebaker

Reply | Threaded
Open this post in threaded view
|

Re: ERROR: Could not find artifact com.sun:tools:jar

Andrew Pennebaker
Maven doesn't allow <dependencies> in reporting plugins, throwing a syntax error. So I added this to my <build> plugins:

  <build>
    <plugins>
      ...

      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <dependencies>
          <dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.6</version>
            <scope>system</scope>
            <systemPath>${tools-jar}</systemPath>
          </dependency>
        </dependencies>
      </plugin>
      ...
    </plugins>
  </build>

Works for me! Now, `mvn cobertura:cobertura` produces .html code coverage reports in target/site/cobertura/.


On Fri, Oct 18, 2013 at 2:32 PM, David Hay <[hidden email]> wrote:
Welcome to life on a mac!

Apple decided to move tools.jar and encorporate into classes.jar, hence your error.

I finally got around it by doing the following:

add these profiles:

    <profiles>
        <profile>
            <id>standard-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../lib/tools.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../lib/tools.jar</tools-jar>
            </properties>
        </profile>
        <profile>
            <id>apple-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../Classes/classes.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../Classes/classes.jar</tools-jar>
            </properties>
        </profile>
    </profiles>

and the plugin:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
                <dependencies>
                    <dependency>
                        <groupId>com.sun</groupId>
                        <artifactId>tools</artifactId>
                        <version>1.6</version>
                        <scope>system</scope>
                        <systemPath>${tools-jar}</systemPath>
                    </dependency>
                </dependencies>
            </plugin>

and then add the dependency directly, excluding its tools jar:

        <dependency>
            <groupId>net.sourceforge.cobertura</groupId>
            <artifactId>cobertura</artifactId>
            <version>2.0.3</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

HTH.

cheers,

David



On Fri, Oct 18, 2013 at 2:15 PM, Andrew Pennebaker <[hidden email]> wrote:
I'm trying to use Cobertura in my Maven project, but I'm getting an error about a missing tools.jar dependency. Is my pom correct?

Quick Trace

$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.128s
[INFO] Finished at: Fri Oct 18 13:57:43 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
[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:

pom.xml

<project>
  ...
  <reporting>
    <plugins>
      ...
      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  ...
</project>

System

$ specs java os
Specs:

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

echo $CLASSPATH


echo $JAVA_HOME
/Library/Java/Home

java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.5 (12F45)

$ ls $JAVA_HOME 
bin bundle lib man
$ ls $JAVA_HOME/lib/*.jar
/Library/Java/Home/lib/deploy.jar /Library/Java/Home/lib/jconsole.jar
/Library/Java/Home/lib/dt.jar /Library/Java/Home/lib/management-agent.jar
/Library/Java/Home/lib/javaws.jar /Library/Java/Home/lib/plugin.jar
/Library/Java/Home/lib/jce.jar /Library/Java/Home/lib/sa-jdi.jar

Full Trace

$ mvn test -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/apennebaker/.m2/settings.xml
[DEBUG] Using local repository at /Users/apennebaker/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/apennebaker/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project commoncrawler:commoncrawler:jar:0.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: commoncrawler:commoncrawler:jar:0.0.0
[DEBUG] Tasks:   [test]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[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] 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] 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:       commoncrawler:commoncrawler:0.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG] Repositories (dependencies): [central (http://artifacts.org/artifactory/libs-release, releases), snapshots (http://artifacts.org/artifactory/libs-snapshot, releases+snapshots)]
[DEBUG] Repositories (plugins)     : [central (http://artifacts.org/artifactory/plugins-release, releases), snapshots (http://artifacts.org/artifactory/plugins-snapshot, releases+snapshots)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-sources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
  <project>${project}</project>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <tasks>
    <mkdir dir="target/generated-sources/"/>
    <apply parallel="false" executable="thrift">
      <arg value="--gen"/>
      <arg value="java"/>
      <arg value="-out"/>
      <arg value="target/generated-sources/"/>
      <fileset dir="src/main/thrift/">
        <include name="*.thrift"/>
      </fileset>
    </apply>${tasks}</tasks>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (add-source)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
  <sources>
    <source>target/generated-sources/</source>
  </sources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.code.maven-replacer-plugin:replacer:1.5.2:replace (default)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="."/>
  <commentsEnabled default-value="true"/>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <ignoreErrors default-value="false"/>
  <includes>
    <include>target/generated-sources/**/*.java</include>
  </includes>
  <preserveDir default-value="true"/>
  <quiet default-value="false"/>
  <regex>true</regex>
  <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
  </regexFlags>
  <replacements>
    <replacement>
      <token>^public class</token>
      <value>@SuppressWarnings(&quot;unchecked&quot;) public class</value>
    </replacement>
  </replacements>
  <skip default-value="false"/>
  <unescape default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2: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:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <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>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources>${project.testResources}</resources>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[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.testClasspathElements}"/>
  <compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
  <compilerArgument>-Xlint:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.testOutputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skip>${maven.test.skip}</skip>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <testSource>${maven.compiler.testSource}</testSource>
  <testTarget>${maven.compiler.testTarget}</testTarget>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <argLine>${argLine}</argLine>
  <basedir default-value="${basedir}"/>
  <childDelegation default-value="false">${childDelegation}</childDelegation>
  <classesDirectory default-value="${project.build.outputDirectory}"/>
  <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
  <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
  <enableAssertions default-value="true">${enableAssertions}</enableAssertions>
  <excludedGroups>${excludedGroups}</excludedGroups>
  <failIfNoTests>${failIfNoTests}</failIfNoTests>
  <forkMode default-value="once">${forkMode}</forkMode>
  <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
  <groups>${groups}</groups>
  <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
  <jvm>${jvm}</jvm>
  <localRepository>${localRepository}</localRepository>
  <objectFactory>${objectFactory}</objectFactory>
  <parallel>${parallel}</parallel>
  <parallelMavenExecution default-value="${session.parallel}"/>
  <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
  <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
  <printSummary default-value="true">${surefire.printSummary}</printSummary>
  <project default-value="${project}"/>
  <projectArtifactMap>${project.artifactMap}</projectArtifactMap>
  <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
  <remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
  <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
  <reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
  <runOrder default-value="filesystem"/>
  <session>${session}</session>
  <skip default-value="false">${maven.test.skip}</skip>
  <skipExec>${maven.test.skip.exec}</skipExec>
  <skipTests default-value="false">${skipTests}</skipTests>
  <test>${test}</test>
  <testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
  <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
  <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
  <testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
  <threadCount>${threadCount}</threadCount>
  <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
  <useFile default-value="true">false</useFile>
  <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
  <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
  <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
  <workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] commoncrawler:commoncrawler:jar:0.0.0
[DEBUG]    org.slf4j:slf4j-simple:jar:1.7.5:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.mockito:mockito-all:jar:1.9.5:compile
[DEBUG]    org.codehaus.mojo:cobertura-maven-plugin:jar:2.6:compile
[DEBUG]       net.sourceforge.cobertura:cobertura:jar:2.0.3:compile
[DEBUG]          org.ow2.asm:asm:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-tree:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-commons:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-util:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-analysis:jar:4.1:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          jaxen:jaxen:jar:1.1-beta-8:compile
[DEBUG]             dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xom:xom:jar:1.0b3:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]                org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7:compile
[DEBUG]          org.apache.ant:ant:jar:1.8.3:compile
[DEBUG]             org.apache.ant:ant-launcher:jar:1.8.3:compile
[DEBUG]          org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.14:compile
[DEBUG]          com.sun:tools:jar:0:system
[DEBUG]          log4j:log4j:jar:1.2.9:compile
[DEBUG]       net.sourceforge.cobertura:cobertura-runtime:pom:2.0.3:compile
[DEBUG]       urbanophile:java-getopt:jar:1.0.9:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[DEBUG]                jtidy:jtidy:jar:4aug2000r7-dev:runtime
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG]          org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[DEBUG]             com.jcraft:jsch:jar:0.1.27:runtime
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.2:compile
[DEBUG]          commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]             commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]             commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]             org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.2:compile
[DEBUG]       org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    org.apache.thrift:libthrift:jar:0.9.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[DEBUG]       org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[DEBUG]    org.apache.directory.studio:org.apache.commons.io:jar:2.4:compile
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]    org.mod4j.org.apache.commons:lang:jar:2.1.0:compile
[DEBUG]    joda-time:joda-time:jar:2.3:compile
[DEBUG]    net.sourceforge.htmlunit:htmlunit:jar:2.13:compile
[DEBUG]       xalan:xalan:jar:2.7.1:compile
[DEBUG]          xalan:serializer:jar:2.7.1:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[DEBUG]       commons-codec:commons-codec:jar:1.8:compile
[DEBUG]       net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:compile
[DEBUG]       xerces:xercesImpl:jar:2.11.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]       net.sourceforge.nekohtml:nekohtml:jar:1.9.19:compile
[DEBUG]       net.sourceforge.cssparser:cssparser:jar:0.9.11:compile
[DEBUG]          org.w3c.css:sac:jar:1.3:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.3:compile
[DEBUG]       org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:compile
[DEBUG]    redis.clients:jedis:jar:2.2.1:compile
[DEBUG]       commons-pool:commons-pool:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148s
[INFO] Finished at: Fri Oct 18 13:55:35 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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 commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:

--
Cheers,

Andrew Pennebaker




--
Cheers,

Andrew Pennebaker
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: Could not find artifact com.sun:tools:jar

Andrew Pennebaker
It would be nice if Cobertura worked out of the box for Mac users. Is there a way for cobertura-maven-plugin to include some of this configuration by default?


On Mon, Oct 21, 2013 at 9:51 AM, Andrew Pennebaker <[hidden email]> wrote:
Maven doesn't allow <dependencies> in reporting plugins, throwing a syntax error. So I added this to my <build> plugins:

  <build>
    <plugins>
      ...

      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <dependencies>
          <dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.6</version>
            <scope>system</scope>
            <systemPath>${tools-jar}</systemPath>
          </dependency>
        </dependencies>
      </plugin>
      ...
    </plugins>
  </build>

Works for me! Now, `mvn cobertura:cobertura` produces .html code coverage reports in target/site/cobertura/.


On Fri, Oct 18, 2013 at 2:32 PM, David Hay <[hidden email]> wrote:
Welcome to life on a mac!

Apple decided to move tools.jar and encorporate into classes.jar, hence your error.

I finally got around it by doing the following:

add these profiles:

    <profiles>
        <profile>
            <id>standard-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../lib/tools.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../lib/tools.jar</tools-jar>
            </properties>
        </profile>
        <profile>
            <id>apple-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../Classes/classes.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../Classes/classes.jar</tools-jar>
            </properties>
        </profile>
    </profiles>

and the plugin:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
                <dependencies>
                    <dependency>
                        <groupId>com.sun</groupId>
                        <artifactId>tools</artifactId>
                        <version>1.6</version>
                        <scope>system</scope>
                        <systemPath>${tools-jar}</systemPath>
                    </dependency>
                </dependencies>
            </plugin>

and then add the dependency directly, excluding its tools jar:

        <dependency>
            <groupId>net.sourceforge.cobertura</groupId>
            <artifactId>cobertura</artifactId>
            <version>2.0.3</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

HTH.

cheers,

David



On Fri, Oct 18, 2013 at 2:15 PM, Andrew Pennebaker <[hidden email]> wrote:
I'm trying to use Cobertura in my Maven project, but I'm getting an error about a missing tools.jar dependency. Is my pom correct?

Quick Trace

$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.128s
[INFO] Finished at: Fri Oct 18 13:57:43 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
[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:

pom.xml

<project>
  ...
  <reporting>
    <plugins>
      ...
      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  ...
</project>

System

$ specs java os
Specs:

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

echo $CLASSPATH


echo $JAVA_HOME
/Library/Java/Home

java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.5 (12F45)

$ ls $JAVA_HOME 
bin bundle lib man
$ ls $JAVA_HOME/lib/*.jar
/Library/Java/Home/lib/deploy.jar /Library/Java/Home/lib/jconsole.jar
/Library/Java/Home/lib/dt.jar /Library/Java/Home/lib/management-agent.jar
/Library/Java/Home/lib/javaws.jar /Library/Java/Home/lib/plugin.jar
/Library/Java/Home/lib/jce.jar /Library/Java/Home/lib/sa-jdi.jar

Full Trace

$ mvn test -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/apennebaker/.m2/settings.xml
[DEBUG] Using local repository at /Users/apennebaker/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/apennebaker/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project commoncrawler:commoncrawler:jar:0.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: commoncrawler:commoncrawler:jar:0.0.0
[DEBUG] Tasks:   [test]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[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] 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] 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:       commoncrawler:commoncrawler:0.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG] Repositories (dependencies): [central (http://artifacts.org/artifactory/libs-release, releases), snapshots (http://artifacts.org/artifactory/libs-snapshot, releases+snapshots)]
[DEBUG] Repositories (plugins)     : [central (http://artifacts.org/artifactory/plugins-release, releases), snapshots (http://artifacts.org/artifactory/plugins-snapshot, releases+snapshots)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-sources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
  <project>${project}</project>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <tasks>
    <mkdir dir="target/generated-sources/"/>
    <apply parallel="false" executable="thrift">
      <arg value="--gen"/>
      <arg value="java"/>
      <arg value="-out"/>
      <arg value="target/generated-sources/"/>
      <fileset dir="src/main/thrift/">
        <include name="*.thrift"/>
      </fileset>
    </apply>${tasks}</tasks>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (add-source)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
  <sources>
    <source>target/generated-sources/</source>
  </sources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.code.maven-replacer-plugin:replacer:1.5.2:replace (default)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="."/>
  <commentsEnabled default-value="true"/>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <ignoreErrors default-value="false"/>
  <includes>
    <include>target/generated-sources/**/*.java</include>
  </includes>
  <preserveDir default-value="true"/>
  <quiet default-value="false"/>
  <regex>true</regex>
  <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
  </regexFlags>
  <replacements>
    <replacement>
      <token>^public class</token>
      <value>@SuppressWarnings(&quot;unchecked&quot;) public class</value>
    </replacement>
  </replacements>
  <skip default-value="false"/>
  <unescape default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2: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:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <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>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources>${project.testResources}</resources>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[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.testClasspathElements}"/>
  <compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
  <compilerArgument>-Xlint:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.testOutputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skip>${maven.test.skip}</skip>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <testSource>${maven.compiler.testSource}</testSource>
  <testTarget>${maven.compiler.testTarget}</testTarget>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <argLine>${argLine}</argLine>
  <basedir default-value="${basedir}"/>
  <childDelegation default-value="false">${childDelegation}</childDelegation>
  <classesDirectory default-value="${project.build.outputDirectory}"/>
  <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
  <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
  <enableAssertions default-value="true">${enableAssertions}</enableAssertions>
  <excludedGroups>${excludedGroups}</excludedGroups>
  <failIfNoTests>${failIfNoTests}</failIfNoTests>
  <forkMode default-value="once">${forkMode}</forkMode>
  <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
  <groups>${groups}</groups>
  <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
  <jvm>${jvm}</jvm>
  <localRepository>${localRepository}</localRepository>
  <objectFactory>${objectFactory}</objectFactory>
  <parallel>${parallel}</parallel>
  <parallelMavenExecution default-value="${session.parallel}"/>
  <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
  <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
  <printSummary default-value="true">${surefire.printSummary}</printSummary>
  <project default-value="${project}"/>
  <projectArtifactMap>${project.artifactMap}</projectArtifactMap>
  <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
  <remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
  <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
  <reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
  <runOrder default-value="filesystem"/>
  <session>${session}</session>
  <skip default-value="false">${maven.test.skip}</skip>
  <skipExec>${maven.test.skip.exec}</skipExec>
  <skipTests default-value="false">${skipTests}</skipTests>
  <test>${test}</test>
  <testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
  <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
  <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
  <testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
  <threadCount>${threadCount}</threadCount>
  <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
  <useFile default-value="true">false</useFile>
  <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
  <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
  <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
  <workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] commoncrawler:commoncrawler:jar:0.0.0
[DEBUG]    org.slf4j:slf4j-simple:jar:1.7.5:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.mockito:mockito-all:jar:1.9.5:compile
[DEBUG]    org.codehaus.mojo:cobertura-maven-plugin:jar:2.6:compile
[DEBUG]       net.sourceforge.cobertura:cobertura:jar:2.0.3:compile
[DEBUG]          org.ow2.asm:asm:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-tree:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-commons:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-util:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-analysis:jar:4.1:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          jaxen:jaxen:jar:1.1-beta-8:compile
[DEBUG]             dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xom:xom:jar:1.0b3:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]                org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7:compile
[DEBUG]          org.apache.ant:ant:jar:1.8.3:compile
[DEBUG]             org.apache.ant:ant-launcher:jar:1.8.3:compile
[DEBUG]          org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.14:compile
[DEBUG]          com.sun:tools:jar:0:system
[DEBUG]          log4j:log4j:jar:1.2.9:compile
[DEBUG]       net.sourceforge.cobertura:cobertura-runtime:pom:2.0.3:compile
[DEBUG]       urbanophile:java-getopt:jar:1.0.9:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[DEBUG]                jtidy:jtidy:jar:4aug2000r7-dev:runtime
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG]          org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[DEBUG]             com.jcraft:jsch:jar:0.1.27:runtime
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.2:compile
[DEBUG]          commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]             commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]             commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]             org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.2:compile
[DEBUG]       org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    org.apache.thrift:libthrift:jar:0.9.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[DEBUG]       org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[DEBUG]    org.apache.directory.studio:org.apache.commons.io:jar:2.4:compile
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]    org.mod4j.org.apache.commons:lang:jar:2.1.0:compile
[DEBUG]    joda-time:joda-time:jar:2.3:compile
[DEBUG]    net.sourceforge.htmlunit:htmlunit:jar:2.13:compile
[DEBUG]       xalan:xalan:jar:2.7.1:compile
[DEBUG]          xalan:serializer:jar:2.7.1:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[DEBUG]       commons-codec:commons-codec:jar:1.8:compile
[DEBUG]       net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:compile
[DEBUG]       xerces:xercesImpl:jar:2.11.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]       net.sourceforge.nekohtml:nekohtml:jar:1.9.19:compile
[DEBUG]       net.sourceforge.cssparser:cssparser:jar:0.9.11:compile
[DEBUG]          org.w3c.css:sac:jar:1.3:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.3:compile
[DEBUG]       org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:compile
[DEBUG]    redis.clients:jedis:jar:2.2.1:compile
[DEBUG]       commons-pool:commons-pool:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148s
[INFO] Finished at: Fri Oct 18 13:55:35 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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 commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:

--
Cheers,

Andrew Pennebaker




--
Cheers,

Andrew Pennebaker



--
Cheers,

Andrew Pennebaker
Reply | Threaded
Open this post in threaded view
|

Re: ERROR: Could not find artifact com.sun:tools:jar

Baptiste MATHUS-3
Hi Andrew,
If you can provide the associated patch, I'm sure you'll find a committer to review a apply your patch (I'd do it happily by myself if I were on a Mac).
Please file or find the corresponding JIRA entry, and add the patch; 
Cheers


2013/10/21 Andrew Pennebaker <[hidden email]>
It would be nice if Cobertura worked out of the box for Mac users. Is there a way for cobertura-maven-plugin to include some of this configuration by default?


On Mon, Oct 21, 2013 at 9:51 AM, Andrew Pennebaker <[hidden email]> wrote:
Maven doesn't allow <dependencies> in reporting plugins, throwing a syntax error. So I added this to my <build> plugins:

  <build>
    <plugins>
      ...

      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <dependencies>
          <dependency>
            <groupId>com.sun</groupId>
            <artifactId>tools</artifactId>
            <version>1.6</version>
            <scope>system</scope>
            <systemPath>${tools-jar}</systemPath>
          </dependency>
        </dependencies>
      </plugin>
      ...
    </plugins>
  </build>

Works for me! Now, `mvn cobertura:cobertura` produces .html code coverage reports in target/site/cobertura/.


On Fri, Oct 18, 2013 at 2:32 PM, David Hay <[hidden email]> wrote:
Welcome to life on a mac!

Apple decided to move tools.jar and encorporate into classes.jar, hence your error.

I finally got around it by doing the following:

add these profiles:

    <profiles>
        <profile>
            <id>standard-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../lib/tools.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../lib/tools.jar</tools-jar>
            </properties>
        </profile>
        <profile>
            <id>apple-jdk</id>
            <activation>
                <file>
                    <exists>${java.home}/../Classes/classes.jar</exists>
                </file>
            </activation>
            <properties>
                <tools-jar>${java.home}/../Classes/classes.jar</tools-jar>
            </properties>
        </profile>
    </profiles>

and the plugin:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
                <dependencies>
                    <dependency>
                        <groupId>com.sun</groupId>
                        <artifactId>tools</artifactId>
                        <version>1.6</version>
                        <scope>system</scope>
                        <systemPath>${tools-jar}</systemPath>
                    </dependency>
                </dependencies>
            </plugin>

and then add the dependency directly, excluding its tools jar:

        <dependency>
            <groupId>net.sourceforge.cobertura</groupId>
            <artifactId>cobertura</artifactId>
            <version>2.0.3</version>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

HTH.

cheers,

David



On Fri, Oct 18, 2013 at 2:15 PM, Andrew Pennebaker <[hidden email]> wrote:
I'm trying to use Cobertura in my Maven project, but I'm getting an error about a missing tools.jar dependency. Is my pom correct?

Quick Trace

$ mvn test
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.128s
[INFO] Finished at: Fri Oct 18 13:57:43 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
[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:

pom.xml

<project>
  ...
  <reporting>
    <plugins>
      ...
      <!-- Code coverage -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  ...
</project>

System

$ specs java os
Specs:

specs 0.4

mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

echo $CLASSPATH


echo $JAVA_HOME
/Library/Java/Home

java -version
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-457, mixed mode)

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.5 (12F45)

$ ls $JAVA_HOME 
bin bundle lib man
$ ls $JAVA_HOME/lib/*.jar
/Library/Java/Home/lib/deploy.jar /Library/Java/Home/lib/jconsole.jar
/Library/Java/Home/lib/dt.jar /Library/Java/Home/lib/management-agent.jar
/Library/Java/Home/lib/javaws.jar /Library/Java/Home/lib/plugin.jar
/Library/Java/Home/lib/jce.jar /Library/Java/Home/lib/sa-jdi.jar

Full Trace

$ mvn test -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_51, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /Users/apennebaker/.m2/settings.xml
[DEBUG] Using local repository at /Users/apennebaker/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/apennebaker/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project commoncrawler:commoncrawler:jar:0.0.0: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: commoncrawler:commoncrawler:jar:0.0.0
[DEBUG] Tasks:   [test]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building commoncrawler 0.0.0
[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] 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] 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:       commoncrawler:commoncrawler:0.0.0
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG] Repositories (dependencies): [central (http://artifacts.org/artifactory/libs-release, releases), snapshots (http://artifacts.org/artifactory/libs-snapshot, releases+snapshots)]
[DEBUG] Repositories (plugins)     : [central (http://artifacts.org/artifactory/plugins-release, releases), snapshots (http://artifacts.org/artifactory/plugins-snapshot, releases+snapshots)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate-sources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
  <project>${project}</project>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <tasks>
    <mkdir dir="target/generated-sources/"/>
    <apply parallel="false" executable="thrift">
      <arg value="--gen"/>
      <arg value="java"/>
      <arg value="-out"/>
      <arg value="target/generated-sources/"/>
      <fileset dir="src/main/thrift/">
        <include name="*.thrift"/>
      </fileset>
    </apply>${tasks}</tasks>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (add-source)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <project>${project}</project>
  <sources>
    <source>target/generated-sources/</source>
  </sources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.google.code.maven-replacer-plugin:replacer:1.5.2:replace (default)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <basedir default-value="."/>
  <commentsEnabled default-value="true"/>
  <encoding default-value="${project.build.sourceEncoding}"/>
  <ignoreErrors default-value="false"/>
  <includes>
    <include>target/generated-sources/**/*.java</include>
  </includes>
  <preserveDir default-value="true"/>
  <quiet default-value="false"/>
  <regex>true</regex>
  <regexFlags>
    <regexFlag>MULTILINE</regexFlag>
  </regexFlags>
  <replacements>
    <replacement>
      <token>^public class</token>
      <value>@SuppressWarnings(&quot;unchecked&quot;) public class</value>
    </replacement>
  </replacements>
  <skip default-value="false"/>
  <unescape default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources default-value="${project.resources}"/>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2: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:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <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>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.outputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <projectArtifact default-value="${project.artifact}"/>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <buildFilters default-value="${project.build.filters}"/>
  <encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  <escapeString>${maven.resources.escapeString}</escapeString>
  <escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
  <includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
  <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
  <overwrite default-value="false">${maven.resources.overwrite}</overwrite>
  <project default-value="${project}"/>
  <resources>${project.testResources}</resources>
  <session default-value="${session}"/>
  <supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
  <useBuildFilters default-value="true"/>
  <useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[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.testClasspathElements}"/>
  <compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
  <compilerArgument>-Xlint:all</compilerArgument>
  <compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
  <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>
  <fork default-value="false">${maven.compiler.fork}</fork>
  <generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
  <maxmem>${maven.compiler.maxmem}</maxmem>
  <meminitial>${maven.compiler.meminitial}</meminitial>
  <optimize default-value="false">${maven.compiler.optimize}</optimize>
  <outputDirectory default-value="${project.build.testOutputDirectory}"/>
  <outputFileName>${project.build.finalName}</outputFileName>
  <session default-value="${session}"/>
  <showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  <showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
  <skip>${maven.test.skip}</skip>
  <source default-value="1.5">${jdk.version}</source>
  <staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
  <target default-value="1.5">${jdk.version}</target>
  <testSource>${maven.compiler.testSource}</testSource>
  <testTarget>${maven.compiler.testTarget}</testTarget>
  <verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <argLine>${argLine}</argLine>
  <basedir default-value="${basedir}"/>
  <childDelegation default-value="false">${childDelegation}</childDelegation>
  <classesDirectory default-value="${project.build.outputDirectory}"/>
  <debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
  <disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
  <enableAssertions default-value="true">${enableAssertions}</enableAssertions>
  <excludedGroups>${excludedGroups}</excludedGroups>
  <failIfNoTests>${failIfNoTests}</failIfNoTests>
  <forkMode default-value="once">${forkMode}</forkMode>
  <forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
  <groups>${groups}</groups>
  <junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
  <jvm>${jvm}</jvm>
  <localRepository>${localRepository}</localRepository>
  <objectFactory>${objectFactory}</objectFactory>
  <parallel>${parallel}</parallel>
  <parallelMavenExecution default-value="${session.parallel}"/>
  <perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
  <pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
  <printSummary default-value="true">${surefire.printSummary}</printSummary>
  <project default-value="${project}"/>
  <projectArtifactMap>${project.artifactMap}</projectArtifactMap>
  <redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
  <remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
  <reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
  <reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
  <runOrder default-value="filesystem"/>
  <session>${session}</session>
  <skip default-value="false">${maven.test.skip}</skip>
  <skipExec>${maven.test.skip.exec}</skipExec>
  <skipTests default-value="false">${skipTests}</skipTests>
  <test>${test}</test>
  <testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
  <testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
  <testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
  <testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
  <threadCount>${threadCount}</threadCount>
  <trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
  <useFile default-value="true">false</useFile>
  <useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
  <useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
  <useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
  <workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] =======================================================================
[DEBUG] commoncrawler:commoncrawler:jar:0.0.0
[DEBUG]    org.slf4j:slf4j-simple:jar:1.7.5:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG]    junit:junit:jar:4.11:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    org.mockito:mockito-all:jar:1.9.5:compile
[DEBUG]    org.codehaus.mojo:cobertura-maven-plugin:jar:2.6:compile
[DEBUG]       net.sourceforge.cobertura:cobertura:jar:2.0.3:compile
[DEBUG]          org.ow2.asm:asm:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-tree:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-commons:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-util:jar:4.1:compile
[DEBUG]          org.ow2.asm:asm-analysis:jar:4.1:compile
[DEBUG]          oro:oro:jar:2.0.8:compile
[DEBUG]          jaxen:jaxen:jar:1.1-beta-8:compile
[DEBUG]             dom4j:dom4j:jar:1.6.1:compile
[DEBUG]             jdom:jdom:jar:1.0:compile
[DEBUG]             xerces:xmlParserAPIs:jar:2.6.2:compile
[DEBUG]             xom:xom:jar:1.0b3:compile
[DEBUG]                com.ibm.icu:icu4j:jar:2.6.1:compile
[DEBUG]                org.ccil.cowan.tagsoup:tagsoup:jar:0.9.7:compile
[DEBUG]          org.apache.ant:ant:jar:1.8.3:compile
[DEBUG]             org.apache.ant:ant-launcher:jar:1.8.3:compile
[DEBUG]          org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty:jar:6.1.14:compile
[DEBUG]          org.mortbay.jetty:jetty-util:jar:6.1.14:compile
[DEBUG]          com.sun:tools:jar:0:system
[DEBUG]          log4j:log4j:jar:1.2.9:compile
[DEBUG]       net.sourceforge.cobertura:cobertura-runtime:pom:2.0.3:compile
[DEBUG]       urbanophile:java-getopt:jar:1.0.9:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2:runtime
[DEBUG]                jtidy:jtidy:jar:4aug2000r7-dev:runtime
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2:compile
[DEBUG]          org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG]          org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG]          commons-cli:commons-cli:jar:1.0:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2:runtime
[DEBUG]             org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2:runtime
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG]          org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG]          org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
[DEBUG]             com.jcraft:jsch:jar:0.1.27:runtime
[DEBUG]          classworlds:classworlds:jar:1.1:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG]       org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-api:jar:2.0.8:compile
[DEBUG]          org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-9:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG]       org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.2:compile
[DEBUG]          commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]             commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]             commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          org.apache.maven.doxia:doxia-core:jar:1.0:compile
[DEBUG]          org.apache.maven.doxia:doxia-site-renderer:jar:1.0:compile
[DEBUG]             org.codehaus.plexus:plexus-i18n:jar:1.0-beta-7:compile
[DEBUG]             org.codehaus.plexus:plexus-velocity:jar:1.1.7:compile
[DEBUG]             org.apache.velocity:velocity:jar:1.5:compile
[DEBUG]             org.apache.maven.doxia:doxia-decoration-model:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-apt:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-fml:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xdoc:jar:1.0:compile
[DEBUG]             org.apache.maven.doxia:doxia-module-xhtml:jar:1.0:compile
[DEBUG]       commons-lang:commons-lang:jar:2.4:compile
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:2.0.2:compile
[DEBUG]       org.apache.maven.shared:maven-invoker:jar:2.0.11:compile
[DEBUG]    org.apache.thrift:libthrift:jar:0.9.1:compile
[DEBUG]       org.apache.commons:commons-lang3:jar:3.1:compile
[DEBUG]       org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[DEBUG]       org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[DEBUG]    org.apache.directory.studio:org.apache.commons.io:jar:2.4:compile
[DEBUG]       commons-io:commons-io:jar:2.4:compile
[DEBUG]    org.mod4j.org.apache.commons:lang:jar:2.1.0:compile
[DEBUG]    joda-time:joda-time:jar:2.3:compile
[DEBUG]    net.sourceforge.htmlunit:htmlunit:jar:2.13:compile
[DEBUG]       xalan:xalan:jar:2.7.1:compile
[DEBUG]          xalan:serializer:jar:2.7.1:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2.1:compile
[DEBUG]       org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[DEBUG]       commons-codec:commons-codec:jar:1.8:compile
[DEBUG]       net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:compile
[DEBUG]       xerces:xercesImpl:jar:2.11.0:compile
[DEBUG]          xml-apis:xml-apis:jar:1.4.01:compile
[DEBUG]       net.sourceforge.nekohtml:nekohtml:jar:1.9.19:compile
[DEBUG]       net.sourceforge.cssparser:cssparser:jar:0.9.11:compile
[DEBUG]          org.w3c.css:sac:jar:1.3:compile
[DEBUG]       commons-logging:commons-logging:jar:1.1.3:compile
[DEBUG]       org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:compile
[DEBUG]          org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:compile
[DEBUG]    redis.clients:jedis:jar:2.2.1:compile
[DEBUG]       commons-pool:commons-pool:jar:1.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148s
[INFO] Finished at: Fri Oct 18 13:55:35 EDT 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project commoncrawler: Could not resolve dependencies for project commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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 commoncrawler:commoncrawler:jar:0.0.0: Could not find artifact com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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 com.sun:tools:jar:0 at specified path /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../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:

--
Cheers,

Andrew Pennebaker




--
Cheers,

Andrew Pennebaker



--
Cheers,

Andrew Pennebaker



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !