简体   繁体   English

vaadin Add On csvalidation 无法收集依赖项

[英]vaadin Add On csvalidation Failed to collect dependencies

I'm trying to understand how Add On on Vaadin works;我正在尝试了解 Add On on Vaadin 的工作原理; So in the following link:所以在下面的链接中:

https://github.com/magi42/csvalidation https://github.com/magi42/csvalidation

There is written that to see an example is enough to有文说看个例子就够了

$ git clone https://github.com/magi42/csvalidation
$ mvn clean install
$ cd demo
$ mvn jetty:run

But I get:但我得到:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project csvalidation-demo: Could not resolve dependencies for project org.vaadin.addons:csvalidation-demo:war:0.5.5: Failed to collect dependencies at org.vaadin.addons:csvalidation:jar:0.5.5: Failed to read artifact descriptor for org.vaadin.addons:csvalidation:jar:0.5.5: Could not transfer artifact org.vaadin.addons:csvalidation:pom:0.5.5 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [vaadin-addons (http://maven.vaadin.com/vaadin-addons, default, releases+snapshots)] -> [Help 1]
[ERROR]

There is something wrong.!!!有什么问题。!!! But I cannot figure out what.但我不知道是什么。

Try changing the artifact id in your pom.xml to just csvalidation, instead of csvalidation-demo.尝试将 pom.xml 中的工件 ID 更改为 csvalidation,而不是 csvalidation-demo。

the problem was on the newest version of maven that not allow to download if the repository is not the "standard";问题出在最新版本的 maven 上,如果存储库不是“标准”,则不允许下载; in settings.xml change from:在 settings.xml 更改为:

 <mirror>
      <id>maven-default-http-blocker</id>
       <mirrorOf>external:http:*</mirrorOf> 
      <name>Pseudo repository to mirror external repositories initially using HTTP.</name>
      <url>http://0.0.0.0/</url>
      <blocked>true</blocked>
    </mirror>

to

 <mirror>
            <id>releases-java-net-http-unblocker</id>
            <mirrorOf>releases.java.net</mirrorOf>
            <name>releases.java.net</name>
            <url>http://maven.java.net/content/repositories/releases/</url>
            <blocked>false</blocked>
        </mirror>

and it works!!!它有效! as indicated in Maven Build Failure -- DependencyResolutionExceptionMaven 中所示构建失败 -- DependencyResolutionException

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法解决 Vaadin 7.6.2 与 Ivy 的依赖关系 - Failed to resolve dependencies of Vaadin 7.6.2 with Ivy 无法收集依赖项/创建工件/读取工件描述符 - Failed to collect dependencies/create artifact/read artifact descriptor 部署到heroku时无法在Java HelloWorld中收集Maven依赖项 - Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku 无法解析项目的依赖关系:未能在 net.sourceforge:kabeja:jar:0.4 收集依赖关系 - Could not resolve dependencies for project: Failed to collect dependencies at net.sourceforge:kabeja:jar:0.4 无法收集依赖项 maven - Failing to collect dependencies maven 无法在org.kie:kie-api:jar:6.4.0上收集依赖项。 - Failed to collect dependencies at org.kie:kie-api:jar:6.4.0.Final: Maven构建失败,无法在org.springframework:spring-core:jar:4.0.2.4.2上收集依赖项 - Maven Build Failure, Failed to collect dependencies at org.springframework:spring-core:jar:4.0.2.RELEASE 无法在 org.apache.maven.plugins:maven-dependency-plugin:jar:2.10 收集依赖项 - Failed to collect dependencies at org.apache.maven.plugins:maven-dependency-plugin:jar:2.10 无法在 com.fasterxml 收集依赖项。 jackson.core:jackson-core:jar:2.11.0: - Failed to collect dependencies at com.fasterxml. jackson.core:jackson-core:jar:2.11.0: 如何解决此问题 - 无法在 org.postgresql:postgresql:jar:42.2.4 收集依赖项 - How to resolve this - Failed to collect dependencies at org.postgresql:postgresql:jar:42.2.4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM