Skip to content

Instantly share code, notes, and snippets.

@itzg
Created October 12, 2012 20:01
Show Gist options
  • Save itzg/3881194 to your computer and use it in GitHub Desktop.
Save itzg/3881194 to your computer and use it in GitHub Desktop.
Resolving download error of maven-cli-plugin-parent while running atlas-* commands

While running

atlas-run-standalone --product jira

at work where OpenDNS is being used, I was getting this maven download error

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [com.atlassian.maven.plugins:maven-amps-plugin:4.0:run-standalone] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: https://m2proxy.atlassian.com/repository/public/org/twdata/maven/maven-cli-plugin/0.6.9/maven-cli-plugin-0.6.9.pom
7K downloaded  (maven-cli-plugin-0.6.9.pom)
Downloading: http://www.laughingpanda.org/maven2/org/twdata/maven/maven-cli-plugin-parent/0.6.9/maven-cli-plugin-parent-0.6.9.pom

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '8c3d2e84cdf40287705f9172f5f5c3995edf176c'; remote = '<html><head><meta' - RETRYING
Downloading: http://www.laughingpanda.org/maven2/org/twdata/maven/maven-cli-plugin-parent/0.6.9/maven-cli-plugin-parent-0.6.9.pom

[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '8c3d2e84cdf40287705f9172f5f5c3995edf176c'; remote = '<html><head><meta' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: null:maven-cli-plugin:maven-plugin:0.6.9

Reason: Cannot find parent: org.twdata.maven:maven-cli-plugin-parent for project: null:maven-cli-plugin:maven-plugin:0.6.9 for project null:maven-cli-plugin:maven-plugin:0.6.9

Thanks to this article I found I wasn't alone.

I fixed this somewhat closer to the root cause in the maven-cli-plugin's pom. I located the repository declaration below and commented it out from %HOME%\.m2\repository\org\twdata\maven\maven-cli-plugin\0.6.9\maven-cli-plugin-0.6.9.pom

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <artifactId>maven-cli-plugin-parent</artifactId>
    <groupId>org.twdata.maven</groupId>
    <version>0.6.9</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>maven-cli-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  <name>Maven CLI Plugin</name>
  <version>0.6.9</version>
...snip...
  <!--
  <repositories>
    <repository>
      <id>laughing panda</id>
      <url>http://www.laughingpanda.org/maven2</url>
    </repository>
  </repositories>
  -->
...snip...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment