简体   繁体   中英

vaadin Add On csvalidation Failed to collect dependencies

I'm trying to understand how Add On on Vaadin works; So in the following link:

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.

the problem was on the newest version of maven that not allow to download if the repository is not the "standard"; in settings.xml change from:

 <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 -- DependencyResolutionException

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM