aliyun / kafka-connect-oss

Kafka Connect suite of connectors for OSS
Other
29 stars 13 forks source link

Repo URL outdated (conjars.org), Unable to generate jar file, connection timed out #9

Open MIST3R420 opened 1 year ago

MIST3R420 commented 1 year ago

Hello I am having an issue while following the steps to generate the jar file. The build fails because conjars.org is not a valid url anymore which needs to be switched to conjars.wensel.net, can you please direct me to where I can manually change this url and make a quick fix?

[INFO] ------------------< com.aliyun.oss:kafka-connect-oss >------------------
[INFO] Building Kafka Connect OSS 5.2.0
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from conjars: http://conjars.org/repo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:10 min
[INFO] Finished at: 2023-04-19T17:40:46+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project kafka-connect-oss: Could not resolve dependencies for project com.aliyun.oss:kafka-connect-oss:jar:5.2.0: Failed to collect dependencies at io.confluent:kafka-connect-storage-format:jar:5.2.0 -> io.confluent:kafka-connect-storage-hive:jar:5.2.0 -> org.apache.hive:hive-exec:jar:core:1.2.2 -> org.apache.calcite:calcite-core:jar:1.2.0-incubating -> org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde: Failed to read artifact descriptor for org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde: Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde from/to conjars (http://conjars.org/repo): Transfer failed for http://conjars.org/repo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom: Connect to conjars.org:80 [conjars.org/54.235.127.59] failed: Connection timed out -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
MIST3R420 commented 1 year ago

Add the lines where the repository URL is defined which will fix the build.

...
  <repositories>

    <repository>
      <id>confluent</id>
      <name>Confluent</name>
      <url>${confluent.maven.repo}</url>
    </repository>

    <repository>
      <id>conjars.org</id>
      <url>https://conjars.wensel.net/repo/</url>
    </repository>

  </repositories>
...