Cannot find parent: org.twdata.maven:maven-cli-plugin-parent

Donal Murtagh March 7, 2012

When I run some atlas commands, e.g. atlas-create-jira-plugin or atlas-cli, they fail due to error:

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

The first time this happened it seems like the checksum of this dependency failed. I guess the failed checksum caused it to be blacklisted, because the failed checksum message only appeared the first time an attempt was made to download it:

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 = '84b834e596b11961f538cd317a1eeac4720744fd'; remote = '<!DOCTYPE' - 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 = '84b834e596b11961f538cd317a1eeac4720744fd'; remote = '<!DOCTYPE' - 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

10 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

7 votes
Answer accepted
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 28, 2013

We have identified the root of the problem and will be fixing it.

As Charles described:

  1. The maven-cli plugin has a repository defined in its pom.xml https://github.com/mrdon/maven-cli-plugin/blob/master/maven/pom.xml#L199</li<>>
  2. Therefore maven tries to download the pom file from www.laughingpanda.org which no longer resolves.
  3. Instead of receiving an actual 404 and trying the next repository, OpenDNS or your ISP's DNS intercepts it and returns a html page.
  4. Maven errors out at a corrupted pom.

There are a few ways to fix/workaround:

Firstly, delete the corrupted pom from your maven repository. If you using the source distribution, this should be located at product-x.x.x-source\localrepo\org\twdata\maven\maven-cli-plugin-parent\0.6.9\maven-cli-plugin-parent-0.6.9. (Replace 0.6.9 with the version that you require)

Then either:

  • Use a DNS that doesn't wrap 404 errors in a html page e.g. Google Public DNS as described by others in this thread
  • Or add
    &lt;mirror&gt;
        &lt;id&gt;laughing-panda-mirror&lt;/id&gt;
        &lt;name&gt;irror for laughing panda&lt;/name&gt;
        &lt;url&gt;https://m2proxy.atlassian.com/repository/public&lt;/url&gt;
        &lt;mirrorOf&gt;laughing panda&lt;/mirrorOf&gt;
    &lt;/mirror&gt;

    in the <mirror></mirrors> section of your settings.xml and rerun your build

5 votes
Charles Scott March 7, 2012

I have also noticed that if you use opendns (which I happened to be using), this nameserver will not respond favorably to maven. Instead of getting an address not found error, which is what should have happened with this laughingpanda address: http://www.laughingpanda.org/maven2/org/twdata/maven/maven-cli-plugin-parent/0.6.9/maven-cli-plugin-parent-0.6.9.pom, opendns responds with nasty redirect and javascript garbage which completely screws up the local maven artifact with a corrupted pom and leads to weird errors. I now use google public dns (8.8.8.8/8.8.4.4) which seems to make issues like this easier to resolve.

3layer (expert) November 12, 2012

Fine, solved too downloading the full POM file at http://goo.gl/76eUA and replacing my .m2 repository.

3 votes
Donal Murtagh March 7, 2012

I resolved this problem by manually copying the missing artifacts from http://twdata-m2-repository.googlecode.com/svn

Possibly, adding the following to pom.xml would also resolve it

        <repository>
            <id>twdata</id>
            <url>http://twdata-m2-repository.googlecode.com/svn</url>
        </repository>
Benton Lam March 13, 2012

Sorry, i'm a complete n00b on maven and such. What do you mean by manually copying the missing artifact?

Donal Murtagh March 13, 2012

copy thr files from the http:// remote repository into your local repository (usually in the .m2 directory under your home dir)

1 vote
Hamed Janzadeh August 7, 2012

I faced the below error message when I was trying to compile the confluence-4.2.3 from source codes.

I replaced the maven-cli-plugin-parent.pom, maven-cli-plugin-1.0.6.jar and maven-cli-plugin-1.0.6.pom in ~/.m2/repository/org/twdata/maven with those from http://twdata-m2-repository.googlecode.com/svn/org/twdata/maven (as suggested here) but it didn't work for me. Any idea?

[INFO] Installing confluence-4.2.3-source/confluence-project/confluence-plugins/confluence-misc-plugins/confluence-rest/target/pom-transformed.xml to ~/.m2/repository/com/atlassian/confluence/rest/confluence-rest/4.2.3/confluence-rest-4.2.3.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Confluence REST Plugin
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.twdata.maven:maven-cli-plugin-parent:pom:1.0.6

Reason: Cannot find parent: org.apache.maven.plugins:maven-plugins for project: org.twdata.maven:maven-cli-plugin-parent:pom:1.0.6 for project org.twdata.maven:maven-cli-plugin-parent:pom:1.0.6


1 vote
Johannes Schwarz
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2012

Another easy solution:

1) Install this jar file to your maven repository as described here

2) Replace the content of the following file in your local maven repository .../user/.m2/repository/org/twdata/maven/maven-cli-plugin-parent/0.6.9/maven-cli-plugin-parent-0.6.9.pom with the contents from this file

0 votes
Craig Noah February 25, 2013

I'm having the same problem ... my build can't find the maven-cli-plugin-parent-0.7 jar or metadata. When I browse the googlecode SVN I can find the maven-cli-plugin-0.7 jar, metadata, javadoc and sources, but the maven-cli-plugin-parent-0.7 only has the POM. Anyone know where I can find the maven-cli-plugin-parent-0.7 jar file?

0 votes
Bruce Garlock June 19, 2012

Interesting... Thanks for the OpenDNS tip - solved my issue too!

0 votes
Christopher Kaczmarek March 7, 2012

Thanks, for the info.

I also found the files the SDK repository directory and overwrote the ones in my ".m2" directory that were being pulled by maven. This will also fix the compiling issue.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events