Find Questions…

Close ×
First time here? Check out the FAQ!

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

Donal asked this question · 66 karma ·

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

3883 views

9 Answers:

Xu-Heng Tjhin [Atlassian] · 206 karma ·

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>
  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
    <mirror>
        <id>laughing-panda-mirror</id>
        <name>irror for laughing panda</name>
        <url>https://m2proxy.atlassian.com/repository/public</url>
        <mirrorOf>laughing panda</mirrorOf>
    </mirror>
    

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

Charles Scott · 76 karma ·

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 Tecnologia (Atlass Expert) · 33 karma ·

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

Donal · 66 karma ·

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>

calyth · 1 karma ·

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

Donal · 66 karma ·

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

·1 user liked this

Jonero · 147 karma ·

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

Hamed · 16 karma ·

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


Alok kumar Singh · 290 karma ·

Copy the content from http://twdata-m2-repository.googlecode.com/svn/org/twdata/maven/maven-cli-plugin-parent/0.7/maven-cli-plugin-parent-0.7.pom in to .m2/repository/org/twdata/maven/maven-cli-plugin-parent/0.7/maven-cli-plugin-parent-0.7.pom.

Christopher Kaczmarek · 6 karma ·

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.

Bruce Garlock · 66 karma ·

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

Craig Noah · 31 karma ·

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?

Looking for something else?

Find Questions…

or Browse other questions tagged:

or Ask a Question