walkmod / walkmod-core

walkmod: an open source tool to fix coding style issues
http://www.walkmod.com
GNU Lesser General Public License v3.0
154 stars 23 forks source link

SERVER ERROR: HTTPS Required url=http://repo1.maven.org #92

Open stanchovy opened 4 years ago

stanchovy commented 4 years ago

I did a vanilla installation of Walkmod on Mac via Homebrew and tried to run it on my existing project. The following seem to indicate that walkmod is doing the wrong thing in pulling dependencies. Can someone help me out? Thanks very much.

$ walkmod apply INFO [main] - Java version: 1.8.0_144 INFO [main] - Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre INFO [main] - OS: Mac OS X, Vesion: 10.14.3

                 _    _       _ _   ___  ___          _                     
                | |  | |     | | |  |  \/  |         | |                    
                | |  | | __ _| | | _| .  . | ___   __| |                    
                | |/\| |/ _` | | |/ / |\/| |/ _ \ / _` |                    
                \  /\  / (_| | |   <| |  | | (_) | (_| |                    
                 \/  \/ \__,_|_|_|\_\_|  |_/\___/ \__,_|                    

An open source tool to apply code conventions version 3.0 - February 2017 -

INFO [main] - /Users/me/work/proj/walkmod.xml [ok] :: loading settings :: url = file:/usr/local/Cellar/walkmod/3.0.0/libexec/config/ivysettings.xml :: loading settings :: url = jar:file:/usr/local/Cellar/walkmod/3.0.0/libexec/lib/ivy-2.4.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: org.walkmod#walkmod-gradle-plugin-caller;working confs: [default] found org.walkmod#walkmod-gradle-plugin;1.2.11 in maven2 [1.2.11] org.walkmod#walkmod-gradle-plugin;latest.integration found org.walkmod#javalang;4.8.8 in maven2 [4.8.8] org.walkmod#javalang;[2.0, 5.0) found org.walkmod#merger;1.0.1 in maven2 [1.0.1] org.walkmod#merger;[1.0.1, 2.0) found org.walkmod#model-checker;1.1 in maven2 [1.1] org.walkmod#model-checker;[1.0, 2.0) found org.gradle#gradle-tooling-api;2.10 in springio-release found org.slf4j#slf4j-api;1.7.10 in maven2 found org.walkmod#walkmod-javalang-plugin;3.0.6 in maven2 [3.0.6] org.walkmod#walkmod-javalang-plugin;[2.0, 4.0) found org.walkmod#javalang;4.8.8 in maven2 [4.8.8] org.walkmod#javalang;[3.1.0, 5.0.0) found com.squareup#javapoet;1.8.0 in maven2 found org.walkmod#javalang-compiler;2.3.10 in maven2 [2.3.10] org.walkmod#javalang-compiler;[2.0.0, 3.0.0) found log4j#log4j;1.2.16 in maven2 :: resolution report :: resolve 4263ms :: artifacts dl 18ms

|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      default     |   12  |   0   |   0   |   0   ||   14  |   0   |
---------------------------------------------------------------------

:: problems summary :: :::: WARNINGS module not found: org.walkmod#walkmod-sonar-plugin;latest.integration

==== maven2: tried

  http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-sonar-plugin;latest.integration!walkmod-sonar-plugin.jar:

  http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].jar

==== jboss: tried

  -- artifact org.walkmod#walkmod-sonar-plugin;latest.integration!walkmod-sonar-plugin.jar:

  http://repository.jboss.com/maven2/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].jar

==== springsource-external: tried

  http://repository.springsource.com/maven/bundles/external/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-sonar-plugin;latest.integration!walkmod-sonar-plugin.jar:

  http://repository.springsource.com/maven/bundles/external/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].jar

==== springsource-release: tried

  http://repository.springsource.com/maven/bundles/release/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-sonar-plugin;latest.integration!walkmod-sonar-plugin.jar:

  http://repository.springsource.com/maven/bundles/release/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].jar

==== springio-release: tried

  http://repo.spring.io/libs-release-remote/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-sonar-plugin;latest.integration!walkmod-sonar-plugin.jar:

  http://repo.spring.io/libs-release-remote/org/walkmod/walkmod-sonar-plugin/[revision]/walkmod-sonar-plugin-[revision].jar

    module not found: org.walkmod#walkmod-javalang-plugin;latest.integration

==== maven2: tried

  http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-javalang-plugin;latest.integration!walkmod-javalang-plugin.jar:

  http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].jar

==== jboss: tried

  -- artifact org.walkmod#walkmod-javalang-plugin;latest.integration!walkmod-javalang-plugin.jar:

  http://repository.jboss.com/maven2/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].jar

==== springsource-external: tried

  http://repository.springsource.com/maven/bundles/external/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-javalang-plugin;latest.integration!walkmod-javalang-plugin.jar:

  http://repository.springsource.com/maven/bundles/external/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].jar

==== springsource-release: tried

  http://repository.springsource.com/maven/bundles/release/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-javalang-plugin;latest.integration!walkmod-javalang-plugin.jar:

  http://repository.springsource.com/maven/bundles/release/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].jar

==== springio-release: tried

  http://repo.spring.io/libs-release-remote/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].pom

  -- artifact org.walkmod#walkmod-javalang-plugin;latest.integration!walkmod-javalang-plugin.jar:

  http://repo.spring.io/libs-release-remote/org/walkmod/walkmod-javalang-plugin/[revision]/walkmod-javalang-plugin-[revision].jar

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::          UNRESOLVED DEPENDENCIES         ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.walkmod#walkmod-sonar-plugin;latest.integration: not found

    :: org.walkmod#walkmod-javalang-plugin;latest.integration: not found

    ::::::::::::::::::::::::::::::::::::::::::::::

:::: ERRORS SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/maven-metadata.xml

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-sonar-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/maven-metadata.xml

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/

SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/walkmod/walkmod-javalang-plugin/
vladislav-knoll commented 4 years ago

I am struggling with the same problems and i found out that the root of this problem lies in maven no longer supporting a connection trough httpsince January 15, 2020.

https://blog.sonatype.com/central-repository-moving-to-https

Looks like u can fix this by upgrading to the newest version of Ivy. Just download and replace the jar in your walkmod-3.0.0/lib directory.