Using MAVEN to compile storm source may run into a download-dependent jar problem

Source: Internet
Author: User

Many files on the web use Lein to compile storm source, but I downloaded the version apache-storm-0.9.2-incubating not lein project files, but there is pom.xml, you can use Maven compile.

Execution at the top of the Storm project: MVN package-dskiptests=true

Errors may be encountered as described below (jackson-core-2.0.6 is just an example ):

Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process (default) on Project Storm : Failed To resolve dependencies for one or more projects in the reactor. Reason:Unable to get dependency information for com.fasterxml.jackson.core:jackson-core:jar:2.0.6: Failed to Retrieve POM for com.fasterxml.jackson.core:jackson-core:jar:2.0.6:Could not transfer artifact Com.fasterxml.jackson.core: jackson-core:pom:2.0.6 from/to Central (http://repo1.maven.org/maven2/): Access deniedto: http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.0.6/ Jackson-core-2.0.6.pom, Reasonphrase:forbidden.

The reason may be network problems, do not know why the browser can access, but MVN is not able to download (the true reason is still unknown).

Solution: Delete file ~/repository/com/fasterxml/jackson/core/jackson-core/2.0.6/jackson-core-2.0.6.pom.lastupdated (path may be different, You can use Find find)

Then manually download: Jackson-core-2.0.6.jar and Jackson-core-2.0.6.pom placed in the original jackson-core-2.0.6.pom.lastupdated directory.

Execute the MVN command again when you are done.


Another option is to refer to:

http://blog.csdn.net/jonson123654/article/details/10364883



Using MAVEN to compile storm source may run into a download-dependent jar problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.