Netflix / CassJMeter

JMeter plugin to run cassandra tests.
Apache License 2.0
163 stars 66 forks source link

mvn install fails #16

Open jijojv opened 10 years ago

jijojv commented 10 years ago

mvn install fails at this stage

jijojv:$ mvn dependency:copy-dependencies install -DexcludeGroupIds=org.apache.jmeter
...
Downloading: http://oss.sonatype.org/content/groups/sourceforge//org/sonatype/oss/oss-parent/3/oss-parent-3.pom
178b downloaded  (oss-parent-3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remote = '<html>
<head><title>301' - RETRYING
Downloading: http://oss.sonatype.org/content/groups/sourceforge//org/sonatype/oss/oss-parent/3/oss-parent-3.pom
178b downloaded  (oss-parent-3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remote = '<html>
<head><title>301' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

After lots of googling i figured out a workaround.

jijojv:$  rm -rf ~/.m2/repository/org/sonatype
jijojv:$  cat > ~/.m2/settings.xml <<DONE
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <mirrors>
    <mirror>
      <id>HTTPSsourceforge</id>
      <name>HTTPSsourceforge</name>
      <url>https://oss.sonatype.org/content/groups/public/</url>
      <mirrorOf>sourceforge</mirrorOf>
    </mirror>
  </mirrors>
</settings>
DONE

jijojv:$  mvn dependency:copy-dependencies install -DexcludeGroupIds=org.apache.jmeter